You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is the same problem as SR-13896, and it's due to a limitation in property wrapper initialization. You can work around this by explicitly initializing the property wrapper `self._offset = State<CGFloat>(wrappedValue: 0)`.
Attachment: Download
Environment
Xcode 12.5 (12E262)
macOS 11.6
MacBook Pro (16-inch, 2019)
Additional Detail from JIRA
md5: 1f5055b3203ab7ae8c500f178b983b68
Issue Description:
Using the Time library, I've run into a compiler issue with SwiftUI and @State with initialization of View objects:
This only occurs when using the ClockChime type - if it's replaced with plain Swift types such as Bool or String it compiles just fine.
It also compiles just fine if the @State property definition is default initialized and ignored in the initializer
The text was updated successfully, but these errors were encountered: