Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UILabel Preview Example not working #9

Open
MarcoEidinger opened this issue Oct 4, 2022 · 1 comment
Open

UILabel Preview Example not working #9

MarcoEidinger opened this issue Oct 4, 2022 · 1 comment

Comments

@MarcoEidinger
Copy link

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

@gcohen-dev
Copy link

I think it's working on Xcode 14.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants