Skip to content

Instantly share code, notes, and snippets.

@igmyung
igmyung / UIParentView.swift
Created May 3, 2023 11:41
SwiftUI UIViewRepresentable nested view example
import SwiftUI
struct ContentView: View {
@State private var toggle = false
var body: some View {
CustomParentView {
Button {
toggle.toggle()
} label: {