File tree Expand file tree Collapse file tree
ios/gamma/modals/form-sheet Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -261,9 +261,9 @@ - (void)updateConfiguration
261261 return @[ [UISheetPresentationControllerDetent largeDetent ] ];
262262 }
263263
264- if (![self areDetentsSorted ]) {
264+ if (![self areDetentsStrictlyAscending ]) {
265265 RCTLogError (
266- @" [RNScreens] The values in the detents array must be sorted in ascending order. Falling back to large detent." );
266+ @" [RNScreens] The values in the detents array must be in strictly ascending order. Falling back to large detent." );
267267
268268 return @[ [UISheetPresentationControllerDetent largeDetent ] ];
269269 }
@@ -320,7 +320,7 @@ - (BOOL)areDetentsValid
320320 return YES ;
321321}
322322
323- - (BOOL )areDetentsSorted
323+ - (BOOL )areDetentsStrictlyAscending
324324{
325325 for (size_t i = 1 ; i < _detents.size (); i++) {
326326 if (_detents[i - 1 ] >= _detents[i]) {
You can’t perform that action at this time.
0 commit comments