I have an issue when applying to the none SwiftUI project using subclass the UIHostingController.
file SettingsNodesView.swift
fileprivate func nodeCellFor(_ node: Node) -> some View {
return NavigationLink(destination: SettingsNodesView(nodes: node.children)) {
HStack {
IfLet (node.image) { image in
Image(uiImage: image).renderingMode(.template)
}
Text(node.name)
Spacer()
Text(node.children.count == 0 ? "Leaf node" : "\(node.children.count) child nodes").foregroundColor(Color.secondary)
}
}
}
I have an issue when applying to the none SwiftUI project using subclass the UIHostingController.
file SettingsNodesView.swift