Saturday, October 14, 2023
HomeiOS Developmentxcode - information passing in IOS between swiftui to UIViewRepresentable

xcode – information passing in IOS between swiftui to UIViewRepresentable


I’ve a perform calling in a view:

ProgressView(myinfo :"Particulars goes right here")

Beneath is my ProgressView perform

struct ProgressView: UIViewRepresentable {
   
    func makeUIView(context: UIViewRepresentableContext<ProgressView>) -> CustomProgressView {
        CustomProgressView()
    }
  
    func updateUIView(_ uiView: CustomProgressView, context: UIViewRepresentableContext<ProgressView>) {}
}

which is once more calling a unique perform

 CustomProgressView()

My requirement is to move a knowledge of myinfo from perform ProgressView to until CustomProgressView().
Is it attainable to realize this, please let me understand how I could make it attainable



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments