getbouncer / cardscan-ios

A library for scanning credit and debit cards
MIT License
203 stars 67 forks source link

Enhancement: right bar button item #226

Closed nickjf89 closed 3 years ago

nickjf89 commented 3 years ago

We are using CardScan in our app, and we are presenting the ScanViewController modally, embedded in a navigation controller. The navigation controller is hidden by ScanViewController, which is understandable, but our app has rules around modally presented view controllers whereby we always show an X button to close in the top right. Obviously, you provide a back button (outside of a navigation item) on the left side of the view controller, and it would be great to have the flexibility to choose where this is positioned (left or right), and an image for the button.

kingst commented 3 years ago

Check out our UI Customization docs, you may want to consider using the SimpleScanViewController which we designed for full UI customization.

Do you think this will work for you?

nickjf89 commented 3 years ago

Thank, I'll take a look. Does this allow us to set an image on the torch button, or just text? And also, will the back button chevron still be visible if we provide no string for that button?

kingst commented 3 years ago

You should be able to change everything to customize it for your needs. Let us know in Slack if you have any questions.

kingst commented 3 years ago

Closing this issue, please let us know if you still have questions on UI customization -- happy to help