1

I have converted my existing Xib UI in SwiftUI.

Is it possible to use SwiftUI in existing UITableView and UICollectionView?

Here is the code i have done in SwiftUI

struct LandmarkList: View {
    @EnvironmentObject var userData: UserData

    var body: some View {
        VStack(alignment: .leading) {
            Text("Pinkesh Gjr")
                .font(.title)
            HStack(alignment: .top) {
                Text("iOS Developer")
                    .font(.subheadline)
                Spacer()
                Text("California")
                    .font(.subheadline)
            }
        }
    }
}

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.