It appears I’ve found a bug in Xcode 11. It’s easily reproducible as outlined in the UPDATE above. I’ve filed the bug with Apple.
I’m still looking for a workaround now, since I use quite a few structs containing Date variables. If anybody can find one, please comment below.
More Related Contents:
- Programmatically detect Tab Bar or TabView height in SwiftUI
- Migrating Swift code to Swift 3.0 LOADS of errors
- How can I deal with @objc inference deprecation with #selector() in Swift 4?
- #ifdef replacement in the Swift language
- How to convert a date string with optional fractional seconds using Codable in Swift?
- Do Swift-based applications work on OS X 10.9/iOS 7 and lower?
- SwiftUI HStack with wrap and dynamic height
- SwiftUI – Half modal?
- What are the new “for”, “at”, “in” keywords in Swift3 function declarations?
- Xcode 11 & iOS13, using UIKIT can’t change background colour of UIViewController
- Opt out of UISceneDelegate/SwiftUI on iOS
- Understanding SpriteKit CollisionBitMask
- Module compiled with Swift 5.1 cannot be imported by the Swift 5.1.2 compiler
- How to update the constant height constraint of a UIView programmatically?
- Swift: how to use PREPROCESSOR Flags (like `#if DEBUG`) to implement API keys?
- Value of type ‘StorageMetadata’ has no member ‘downloadURL’
- Printing a variable memory address in swift
- Xcode Canvas for SwiftUI previews does not show up
- How can I display my App documents in the Files app for iPhone
- Command failed due to signal: Abort trap: 6
- Swap rootViewController with animation?
- Use Binding with a TextField SwiftUI
- Getting “file not found” in Bridging Header when importing Objective-C frameworks into Swift project
- How do I see which version of Swift I’m using?
- SwiftUI how to prevent view to reload whole body
- Where is Info.plist in Xcode 13? (missing, not inside project navigator)
- After upgrading to Xcode 11.2 from Xcode 11.1, app crashes due to _UITextLayoutView
- Could not find module for target ‘x86_64-apple-ios-simulator’
- iOS app testing. App installation failed. No code signature found [closed]
- Weird behaviour of Xcode 11 Debugger – Showing values as nil when there’s a value