The accentColor(_:) modifier is marked as being deprecated with a message saying this:
Use the asset catalog’s accent color or tint(_:) instead.
Using either of these methods will result in a sheet using this accent colour.
If you still want to use accentColor(_:), just reapply this modifier to the sheet content, as a workaround.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: