Skip to content

Commit

Permalink
Add custom back button info to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzfr committed Oct 10, 2022
1 parent 5b18c02 commit 3dbb1b6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,25 @@ let config = XS2AiOS.Configuration(
)
```

#### Implementing Custom Back Button

For certain use cases it is necessary to not show the default back button inside the form, but instead use a different custom element as
the back button, which functionally should of course behave the same. This is possible by setting `enableBackButton` to `false` in the config:

```swift
let config = XS2AiOS.Configuration(
// ...
enableBackButton: false,
)
```

This will not show the back button in the XS2AViewController anymore. You should then built your own button which can then call
`goBack()` on the XS2AViewController:

```swift
self.xs2aViewController.goBack()
```

### Styling API

You can style the view according to your needs. Please note, that dark mode is overriden inside the module, but you can of course simply define another style provider for dark mode.
Expand Down

0 comments on commit 3dbb1b6

Please sign in to comment.