Skip to content

Instantly share code, notes, and snippets.

@igorzhukov
igorzhukov / UIKitWrapper.swift
Last active February 22, 2023 11:34
Wrapper for embedding UIKit UIView in SwiftUI
import Foundation
import SwiftUI
struct UIKitWrapper<Type: UIView>: UIViewRepresentable {
let configuration: ((Type) -> Void)
func makeUIView(context: UIViewRepresentableContext<Self>) -> Type {
return Type()
}