iMinichrispy / UISheetPresentationControllerCustomDetent

Custom detents in UISheetPresentationController
MIT License
10 stars 3 forks source link

Any risk to be rejected by Apple because of private method #1

Open skywalkerlw opened 1 year ago

skywalkerlw commented 1 year ago

Private method

+ (instancetype)_detentWithIdentifier:(UISheetPresentationControllerDetentIdentifier)identifier constant:(CGFloat)constant;
iMinichrispy commented 1 year ago

Unfortunately, this is always a risk when using private methods so if at all possible, I'd highly recommend targeting iOS 16 or later so you can use Apple's built-in method for custom detents instead: https://developer.apple.com/documentation/uikit/uisheetpresentationcontroller/detent/3976719-custom