-
-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
UILabel Preview Example in project SwiftUIKitExample.xcodeproj does not work.
UILabel() // <- This is a `UIKit` view.
.swiftUIView(layout: .intrinsic) // <- This is a SwiftUI `View`.
.set(\.text, to: "Hello, UIKit!") // <- Use key paths for updates.
.fixedSize() // <- Make sure the size is set
.previewLayout(.sizeThatFits)
.previewDisplayName("UILabel Preview Example")
}Expected to see the text "Hello, UIKit!" but that text is not visible in the preview :(
Screen.Recording.2022-10-04.at.11.43.59.AM.mov
Tested with Xcode 14.0.1 and iPhone 13 (iOS 16) simulator
Metadata
Metadata
Assignees
Labels
No labels