Closed hcancelik closed 2 years ago
Thanks for feedback @hcancelik . We'll include SwiftUI implementation on the readme.
With swiftui, how you will get the selected country details back? @hcancelik @Rashidium
With swiftui, how you will get the selected country details back? @hcancelik @Rashidium
From the example above, it will be set to country
property.
Button {
showCountryPicker = true
} label: {
Text("Select Country \(country?.localizedName ?? "Not Selected")")
}.sheet(isPresented: $showCountryPicker) {
CountryPicker(country: $country)
}
Here is an example of UIViewControllerRepresentable that works with SwiftUI.
Please feel free to add this to docs.
Example Usage: