-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
164 additions
and
30 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
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
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,13 @@ | ||
// | ||
// Shared+Extension.swift | ||
// OPass | ||
// | ||
// Created by Brian Chang on 2024/9/2. | ||
// 2024 OPass. | ||
// | ||
|
||
import Shared | ||
|
||
extension Shared.PortalHelper { | ||
static let shared = PortalHelper() | ||
} |
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
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,31 @@ | ||
// | ||
// GeneralSettingsView.swift | ||
// OPass | ||
// | ||
// Created by Brian Chang on 2024/9/7. | ||
// 2024 OPass. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct GeneralSettingsView: View { | ||
// MARK: - Variable | ||
@AppStorage("HapticFeedback") private var hapticFeedback = true | ||
|
||
// MARK: - View | ||
var body: some View { | ||
Form { | ||
Section { | ||
Toggle("Haptic Feedback", systemImage: "hand.tap", isOn: $hapticFeedback) | ||
} | ||
} | ||
.analyticsScreen(name: "GeneralSettingsView") | ||
.navigationBarTitleDisplayMode(.large) | ||
.navigationTitle("General") | ||
.listSectionSpacing(.compact) | ||
} | ||
} | ||
|
||
#Preview { | ||
GeneralSettingsView() | ||
} |
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
Oops, something went wrong.