Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SURYAKANTSHARMA committed Feb 14, 2022
2 parents 059b199 + 9aa0a67 commit e2efa6f
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,18 +189,16 @@ CountryManager.shared.country(withCode: "MY")
## Styling Options
There are few styling options provided by the library such auto-hiding or styling views.
```swift

let countryController = CountryPickerWithSectionViewController.presentController(on: self) { ... }

// Styling country flag image view
countryController.flagStyle = .corner // E.g .corner, ,circular or .normal

// Hide flag image view
countryController.isCountryFlagHidden = true // False

// Hide country dial code
countryController.isCountryDialHidden = true // False

CountryPickerWithSectionViewController.presentController(on: self, configuration: { controller in
// Styling country flag image view
controller.configuration.flagStyle = .circular

// Hide flag image view
controller.configuration.isCountryFlagHidden = true

// Hide country dial code
controller.configuration.isCountryDialHidden = true
})
```

## Contributing
Expand Down

0 comments on commit e2efa6f

Please sign in to comment.