Skip to content

Releases: AvdLee/SwiftUIKitView

2.0.0 - Production Supporting Integration

23 Jul 19:11
56f2a1f
Compare
Choose a tag to compare

I initially built SwiftUIKitView to create previews for UIKit views quickly. Though, many started using this framework in production code, for which it was not optimized.

I'm happy to announce that this major update adds support to the use of the framework in production apps.

Using a UIKit view directly in SwiftUI for production code requires you to use:

UIViewContainer(<YOUR UIKit View>, layout: <YOUR LAYOUT PREFERENCE>)

Performance in Previews is less important, it's being redrawn either way.
Therefore, you can use the more convenient swiftUIView() modifier:

UILabel() // <- This is a `UIKit` view.
    .swiftUIView(layout: .intrinsic) // <- This is returning a SwiftUI `View`.

Fix build errors happening on archiving

20 Jul 13:29
296bf2c
Compare
Choose a tag to compare

Cannot find type 'View' in scope is no longer happening!

1.0.2 Release

07 Jan 15:49
Compare
Choose a tag to compare

Better support for intrinsic sizes

1.0.1 Release

06 Jan 13:47
Compare
Choose a tag to compare

Setting a width only now works correctly.

Initial Release

04 Jan 12:15
Compare
Choose a tag to compare

The initial release of this library, containing all the functionality needed to use UIView's in SwiftUI.