Best practices and restrictions for NXNavigationExtension
mainTo avoid conflicts with the framework and ensure stability, follow these usage rules:
✅ Recommended
- Use a subclass of
UINavigationControllerand register that subclass. - Register controllers in
AppDelegatebefore modifying appearances. - Use the framework's methods to handle all navigation bar modifications.
❌ Do Not Use (Avoid these)
- Do not register
UINavigationController.selfdirectly. - Do not use system methods like
setNavigationBarHidden:,setNavigationBarHidden:animated:, orsetHidden:to show/hide the bar. - Do not use system properties to modify transparency or
appearancerelated properties. - Do not use
<UIGestureRecognizerDelegate>methods to disable swipe-back gestures; use the framework's provided features instead. - Do not use
edgesForExtendedLayout = UIRectEdge(rawValue: 0)unless specifically instructed by the framework's issue discussions.