newsmemory-ios-sdk/Frameworks/RNScreens.xcframework/ios-arm64/Headers/UINavigationBar+RNSUtility.h

38 lines
1.3 KiB
Objective-C

#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface UINavigationBar (RNSUtility)
/**
* Aims to find main content view of the `UINavigationBar`.
*
* This method relies on internal iOS implementation details (see the implementation)
* and might need patches specific to future iOS versions, in case the view hierarchy inside
* the navigation bar changes.
*
* Tested to work reliably on iOS 18.0, 17.5, 15.5.
*
* @returns `_UINavigationBarContentView` view mounted directly under the navigation bar itself
*/
- (nullable UIView *)rnscreens_findContentView;
/**
* Aims to find the back button wrapper view of the `UINavigationBar`. This is the view that contains
* the back button itself alongside all the margin / padding used to position the back button by the system.
*
* This method relies on internal iOS implementation details (see the implementation)
* and might need patches specific to future iOS versions, in case the view hierarchy inside
* the navigation bar changes.
*
* Tested to work reliably on iOS 18.0, 17.5, 15.5.
*
* @returns `_UIButtonBarButton` view, if present and mounted in anticipated place;
* if the back button is not present, this method returns `nil`.
*/
- (nullable UIView *)rnscreens_findBackButtonWrapperView;
@end
NS_ASSUME_NONNULL_END