haptic feedback

parent b09c04df
......@@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key>
<string>1.2</string>
<key>CFBundleVersion</key>
<string>44</string>
<string>49</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionAttributes</key>
......
......@@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key>
<string>1.2</string>
<key>CFBundleVersion</key>
<string>44</string>
<string>49</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionAttributes</key>
......
......@@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key>
<string>1.2</string>
<key>CFBundleVersion</key>
<string>44</string>
<string>49</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionMainStoryboard</key>
......
......@@ -19,6 +19,20 @@ class PullingViewController: UIViewController {
return .lightContent
}
override func viewDidAppear(_ animated: Bool) {
if animated {
let haptics = UIImpactFeedbackGenerator(style: .heavy)
haptics.impactOccurred()
}
}
override func viewWillDisappear(_ animated: Bool) {
if animated {
let haptics = UIImpactFeedbackGenerator(style: .medium)
haptics.impactOccurred()
}
}
override func viewDidLoad() {
modalPresentationCapturesStatusBarAppearance = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment