Skip to content

Commit e2efa6f

Browse files
2 parents 059b199 + 9aa0a67 commit e2efa6f

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

README.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -189,18 +189,16 @@ CountryManager.shared.country(withCode: "MY")
189189
## Styling Options
190190
There are few styling options provided by the library such auto-hiding or styling views.
191191
```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+
})
204202
```
205203

206204
## Contributing

0 commit comments

Comments
 (0)