Skip to content

Commit 99a5a8f

Browse files
committed
🧩 :: 햅틱 재추가
1 parent aa493ec commit 99a5a8f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Projects/Presentation/Sources/Base/BaseTabBarController.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public class BaseTabBarController: UITabBarController,
99
private let stroke = UIView().then {
1010
$0.backgroundColor = .GrayScale.gray30
1111
}
12+
private let impactFeedbackGenerator = UIImpactFeedbackGenerator(style: .light)
1213

1314
public override func viewDidLoad() {
1415
super.viewDidLoad()
@@ -32,6 +33,10 @@ public class BaseTabBarController: UITabBarController,
3233
$0.height.equalTo(1)
3334
}
3435
}
36+
37+
public override func tabBar(_ tabBar: UITabBar, didSelect item: UITabBarItem) {
38+
self.impactFeedbackGenerator.impactOccurred()
39+
}
3540
}
3641

3742
extension BaseTabBarController: UITabBarControllerDelegate {

0 commit comments

Comments
 (0)