File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -189,18 +189,16 @@ CountryManager.shared.country(withCode: "MY")
189
189
## Styling Options
190
190
There are few styling options provided by the library such auto-hiding or styling views.
191
191
``` swift
192
-
193
- let countryController = CountryPickerWithSectionViewController.presentController (on : self ) { ... }
194
-
195
- // Styling country flag image view
196
- countryController.flagStyle = .corner // E.g .corner, ,circular or .normal
197
-
198
- // Hide flag image view
199
- countryController.isCountryFlagHidden = true // False
200
-
201
- // Hide country dial code
202
- countryController.isCountryDialHidden = true // False
203
-
192
+ CountryPickerWithSectionViewController.presentController (on : self , configuration : { controller in
193
+ // Styling country flag image view
194
+ controller.configuration .flagStyle = .circular
195
+
196
+ // Hide flag image view
197
+ controller.configuration .isCountryFlagHidden = true
198
+
199
+ // Hide country dial code
200
+ controller.configuration .isCountryDialHidden = true
201
+ })
204
202
```
205
203
206
204
## Contributing
You can’t perform that action at this time.
0 commit comments