We have designed some custom controls for our app like CustomButton, CustomTexView, etc. for our application. These controls defines theme of application and have standard size. Now we are planning to use SwiftUI in our project. How to use these custom controls in SwiftUI structure?
i.e.
struct ContentView: View {
var body: some View {
HStack {
Text("SwiftUI from ContentView2")
Rectangle() //Here we need to add custom button. i.e. CustomButton defined in our project which is written in UIKit`enter code here`
}
}
}