Releases: AvdLee/SwiftUIKitView
Releases · AvdLee/SwiftUIKitView
2.0.0 - Production Supporting Integration
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
Cannot find type 'View' in scope
is no longer happening!
1.0.2 Release
Better support for intrinsic sizes
1.0.1 Release
Setting a width only now works correctly.
Initial Release
The initial release of this library, containing all the functionality needed to use UIView's in SwiftUI.