Skip to content

[Test App] How to remove top space of UINavigationController #253

Answered by mickael-menu
winterdl asked this question in Q&A
Discussion options

You must be logged in to vote

You can empty out the contentInset of the EPUBNavigatorController.Configuration:

var config = EPUBNavigatorViewController.Configuration(contentInset: [:])
let navigator = EPUBNavigatorViewController(..., config: config)

For reference, the default values are:

contentInset: [UIUserInterfaceSizeClass: EPUBContentInsets] = [
    .compact: (top: 20, bottom: 20),
    .regular: (top: 44, bottom: 44)
]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@winterdl
Comment options

Answer selected by winterdl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants