This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import SwiftUI | |
// Credits to: https://www.avanderlee.com/swiftui/integrating-swiftui-with-uikit/ | |
extension UIViewController { | |
/// Add a SwiftUI `View` as a child of the input `UIView`. | |
/// - Parameters: | |
/// - swiftUIView: The SwiftUI `View` to add as a child. |