One Quickie


Wrapping a UIView (SwiftUI->Random)
Given a UIView, add it to SwiftUI via UIViewRepresentable.
struct PlaceholderContainerView: UIViewRepresentable {

    func makeUIView(context: Context) -> PlaceholderUIView {
        return PlaceholderUIView()
    }

    func updateUIView(_ uIView: PlaceholderUIView, context: Context) {
        print("update ui view (context)")
    }
}



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com