Skip to content

Commit 1fda7cc

Browse files
committed
chore: run tidy
1 parent 7e9b56a commit 1fda7cc

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

ios/TrueSheetViewController.mm

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ - (instancetype)init {
6666
_pendingContentSizeChange = NO;
6767
_activeDetentIndex = -1;
6868
_pendingDetentIndex = -1;
69-
69+
7070
_isTransitioning = NO;
7171
_transitionFakeView = [UIView new];
7272
_isTrackingPositionFromLayout = NO;
@@ -205,7 +205,7 @@ - (void)viewDidAppear:(BOOL)animated {
205205
if ([self.delegate respondsToSelector:@selector(viewControllerDidFocus)]) {
206206
[self.delegate viewControllerDidFocus];
207207
}
208-
208+
209209
// Emit correct position after presentation
210210
[self emitChangePositionDelegateWithPosition:self.currentPosition realtime:NO debug:@"did present"];
211211
});
@@ -274,25 +274,25 @@ - (void)viewDidDisappear:(BOOL)animated {
274274

275275
- (void)viewWillLayoutSubviews {
276276
[super viewWillLayoutSubviews];
277-
277+
278278
if (!_isTransitioning) {
279279
_isTrackingPositionFromLayout = YES;
280-
280+
281281
UIViewController *presented = self.presentedViewController;
282-
282+
283283
// Not realtime when another controller is presented that triggers our layout
284284
BOOL hasPresentedController = presented != nil && !presented.isBeingPresented && !presented.isBeingDismissed;
285-
285+
286286
BOOL realtime = !hasPresentedController;
287-
287+
288288
if (_pendingContentSizeChange) {
289289
_pendingContentSizeChange = NO;
290290
realtime = NO;
291-
291+
292292
// Store resolved position after content size changes
293293
[self storeResolvedPositionForIndex:self.currentDetentIndex];
294294
}
295-
295+
296296
[self emitChangePositionDelegateWithPosition:self.currentPosition realtime:realtime debug:@"layout"];
297297
}
298298
}
@@ -313,13 +313,13 @@ - (void)viewDidLayoutSubviews {
313313
if ([self.delegate respondsToSelector:@selector(viewControllerDidChangeDetent:position:detent:)]) {
314314
CGFloat detent = [self detentValueForIndex:pendingIndex];
315315
[self.delegate viewControllerDidChangeDetent:pendingIndex position:self.currentPosition detent:detent];
316-
316+
317317
// Emit position for the final position
318318
[self emitChangePositionDelegateWithPosition:self.currentPosition realtime:NO debug:@"pending detent change"];
319319
}
320320
});
321321
}
322-
322+
323323
_isTrackingPositionFromLayout = NO;
324324
}
325325

@@ -471,12 +471,12 @@ - (void)handlePanGesture:(UIPanGestureRecognizer *)gesture {
471471
dispatch_async(dispatch_get_main_queue(), ^{
472472
// Store resolved position when drag ends
473473
[self storeResolvedPositionForIndex:self.currentDetentIndex];
474-
474+
475475
// Emit the correct position after dragging
476476
[self emitChangePositionDelegateWithPosition:self.currentPosition realtime:NO debug:@"drag end"];
477477
});
478478
}
479-
479+
480480
_isDragging = NO;
481481
break;
482482
}
@@ -548,7 +548,7 @@ - (void)emitChangePositionDelegateWithPosition:(CGFloat)position realtime:(BOOL)
548548
if ([self.delegate respondsToSelector:@selector(viewControllerDidChangePosition:position:detent:realtime:)]) {
549549
[self.delegate viewControllerDidChangePosition:index position:position detent:detent realtime:realtime];
550550
}
551-
551+
552552
// Debug position tracking
553553
// NSLog(@"position from %@: %f, realtime: %i", debug, position, realtime);
554554
}

src/reanimated/ReanimatedTrueSheetProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const ReanimatedTrueSheetProvider = ({ children }: ReanimatedTrueSheetPro
5252
animatedPosition,
5353
animatedIndex,
5454
animatedDetent,
55-
}
55+
};
5656

5757
return (
5858
<ReanimatedTrueSheetContext.Provider value={value}>

0 commit comments

Comments
 (0)