-
Notifications
You must be signed in to change notification settings - Fork 788
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(defaults to warm colors, but preference is saved) all changes: - dopamine-style zoom effect on popups - switch between warm and cool colors for fluidgradient (also changes accent) - fixes credits scrolling being wonky - make popup close button look good https://github.com/roothide/Bootstrap/assets/87151697/158ca827-9122-4d18-af6a-bce43329d9d5
- Loading branch information
Showing
6 changed files
with
166 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
Bootstrap.xcodeproj/xcuserdata/hariz.xcuserdatad/xcschemes/xcschememanagement.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>SchemeUserState</key> | ||
<dict> | ||
<key>Bootstrap.xcscheme_^#shared#^_</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>0</integer> | ||
</dict> | ||
</dict> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// Haptic++.swift | ||
// PsychicPaper | ||
// | ||
// Created by Hariz Shirazi on 2023-02-04. | ||
// | ||
|
||
import Foundation | ||
import UIKit | ||
|
||
/// Wrapper around UIKit haptics | ||
class Haptic { | ||
static let shared = Haptic() | ||
private init() { } | ||
/// Play haptic feedback | ||
func play(_ feedbackStyle: UIImpactFeedbackGenerator.FeedbackStyle) { | ||
UIImpactFeedbackGenerator(style: feedbackStyle).impactOccurred() | ||
} | ||
|
||
/// Provide haptic user feedback for an action | ||
func notify(_ feedbackType: UINotificationFeedbackGenerator.FeedbackType) { | ||
UINotificationFeedbackGenerator().notificationOccurred(feedbackType) | ||
} | ||
|
||
/// Play feedback for a selection | ||
func selection() { | ||
UISelectionFeedbackGenerator().selectionChanged() | ||
} | ||
} |
Oops, something went wrong.