Tag: SwiftUI

  • Render and Test UIKit UIView Realtime On Xcode 11 With SwiftUI Integration

    Render and Test UIKit UIView Realtime On Xcode 11 With SwiftUI Integration

    How to integrate UIKit UIView in few line of code.   // // SampleV.swift // UIExp // // Created by dejaWorks on 14/01/2020. // Copyright © 2020 dejaWorks. All rights reserved. // #if canImport(SwiftUI) && DEBUG import SwiftUI #endif import UIKit // MARK: – An ordinary UIView class SampleV: UIView{ override init(frame: CGRect) { super.init(frame:…

  • Render and Test UIKit UIViewController Realtime On Xcode 11 With SwiftUI Integration

    Render and Test UIKit UIViewController Realtime On Xcode 11 With SwiftUI Integration

    How to integrate UIKit UIViewController  in few line of code.   // // RedVC.swift // SwiftUIOne // // Created by dejaWorks on 14/01/2020. // Copyright © 2020 dejaWorks. All rights reserved. // #if canImport(SwiftUI) && DEBUG import SwiftUI #endif import UIKit // MARK: – An ordinary VC /// VC (UIKit UIViewController) class RedVC: UIViewController {…