Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit e99b834

Browse files
committed
format code
1 parent c3c1205 commit e99b834

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

shell/platform/darwin/ios/framework/Source/FlutterPlatformPlugin.mm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,14 @@ - (void)vibrateHapticFeedback:(NSString*)feedbackType {
108108

109109
if (@available(iOS 10, *)) {
110110
if ([@"HapticFeedbackType.lightImpact" isEqualToString:feedbackType]) {
111-
[[[[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleLight] autorelease] impactOccurred];
111+
[[[[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleLight] autorelease]
112+
impactOccurred];
112113
} else if ([@"HapticFeedbackType.mediumImpact" isEqualToString:feedbackType]) {
113114
[[[[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium] autorelease]
114115
impactOccurred];
115116
} else if ([@"HapticFeedbackType.heavyImpact" isEqualToString:feedbackType]) {
116-
[[[[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleHeavy] autorelease] impactOccurred];
117+
[[[[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleHeavy] autorelease]
118+
impactOccurred];
117119
} else if ([@"HapticFeedbackType.selectionClick" isEqualToString:feedbackType]) {
118120
[[[[UISelectionFeedbackGenerator alloc] init] autorelease] selectionChanged];
119121
}

0 commit comments

Comments
 (0)