SwiftUIKitView
SwiftUIKitView copied to clipboard
Added dynamicMemberLookup support
This PR leverages dynamicMemberLookup to allow setting properties in the same style as SwiftUI.
Unfortunately DML cannot be implemented by a protocol so the implementation needs to be duplicated between the conforming types (UIViewContainer and ModifiedUIViewContainer)
The one downside of this approach is that any UIKit properties that have the same name as a View modifier won't be available via DML, but you can still fall back to set(_:to:)
(for example with a wrapped UILabel you cannot set the font as it tries to use View.font(_:Font))