Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation Controller #185

Open
osmar106 opened this issue Aug 8, 2022 · 1 comment
Open

Navigation Controller #185

osmar106 opened this issue Aug 8, 2022 · 1 comment

Comments

@osmar106
Copy link

osmar106 commented Aug 8, 2022

Hi,

I am trying to present a sheet with a NavigationController but for some reason my VC is added to the SheetViewController starting at the top margin and not below the pullView.

image

IMG_0102BCCB3A44-1

This is my code:

let areaSettings = container.resolve(AreaSettingsViewController.self, arguments: chat, locationCase, from.overlaysAvailable)!
areaSettings.delegate = self

let nav = UINavigationController(rootViewController: areaSettings)
nav.removeBottomLine()

sheetController = SheetViewController(controller: nav, sizes: [.percent(0.4)], options: SheetOptions(pullBarHeight: 0, setIntrinsicHeightOnNavigationControllers: true, useFullScreenMode: true, useInlineMode: true))

guard let sheetController = sheetController, let presentedView = navigationController.presentedViewController else {
    return
}

sheetController.pullBarBackgroundColor = .clear
sheetController.treatPullBarAsClear = true
sheetController.allowGestureThroughOverlay = false
sheetController.overlayColor = .black.withAlphaComponent(0.4)
sheetController.gripColor = .clear
sheetController.gripSize = CGSize(width: 0, height: 0)
sheetController.dismissOnOverlayTap = false
sheetController.dismissOnPull = false

sheetController.animateIn(to: presentedView.view, in: presentedView)
@sanketHyperlink
Copy link

@osmar106 did you find the solution??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants