Skip to content

Commit

Permalink
Toggle hinzugefügt
Browse files Browse the repository at this point in the history
Es wurde ein Tabsound switch hinzugefügt, für’s deaktivieren des Navigationstabsound
  • Loading branch information
androidseb25 committed Nov 1, 2023
1 parent 33eda9e commit ad97914
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 10 deletions.
8 changes: 4 additions & 4 deletions IPv64.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = IPv64/IPv64.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 26;
CURRENT_PROJECT_VERSION = 27;
DEVELOPMENT_ASSET_PATHS = "\"IPv64/Preview Content\"";
DEVELOPMENT_TEAM = 3V2L6G4Y5X;
ENABLE_PREVIEWS = YES;
Expand All @@ -1041,7 +1041,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.2.1;
MARKETING_VERSION = 1.2.2;
PRODUCT_BUNDLE_IDENTIFIER = de.rpicloud.IPv64;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
Expand All @@ -1058,7 +1058,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = IPv64/IPv64.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 26;
CURRENT_PROJECT_VERSION = 27;
DEVELOPMENT_ASSET_PATHS = "\"IPv64/Preview Content\"";
DEVELOPMENT_TEAM = 3V2L6G4Y5X;
ENABLE_PREVIEWS = YES;
Expand All @@ -1079,7 +1079,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.2.1;
MARKETING_VERSION = 1.2.2;
PRODUCT_BUNDLE_IDENTIFIER = de.rpicloud.IPv64;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>HealthcheckIntents.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>2</integer>
<integer>3</integer>
</dict>
<key>HealthcheckWidgetExtension.xcscheme_^#shared#^_</key>
<dict>
Expand All @@ -22,7 +22,7 @@
<key>NotificationService.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>3</integer>
<integer>2</integer>
</dict>
<key>Promises (Playground) 1.xcscheme</key>
<dict>
Expand Down
18 changes: 18 additions & 0 deletions IPv64/Main/Account/ProfilView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ struct ProfilView: View {
@AppStorage("AccountInfos") var accountInfos: String = ""
@AppStorage("DomainResult") var listOfDomainsString: String = ""
@AppStorage("BIOMETRIC_ENABLED") var isBiometricEnabled: Bool = false
@AppStorage("ENABLE_NAV_SOUND") var enableNavSound: Bool = true
@AppStorage("IntegrationList") var integrationListS: String = ""
@AppStorage("HealthcheckList") var healthCheckList: String = ""
@AppStorage("current_Tab") var selectedTab: Tab = .domains
Expand All @@ -24,6 +25,7 @@ struct ProfilView: View {
@Binding var popToRootTab: Tab
@State var showLoginView = false
@State var enableBio = false
@State var enableNavSou = true
@State var accountList: [Account] = []
@State var activeAccount: Account = Account()

Expand Down Expand Up @@ -75,6 +77,21 @@ struct ProfilView: View {
NavigationLink("Account Status", destination: AccountView())
NavigationLink("Logs", destination: LogView())
NavigationLink("Meine IP", destination: IPView())
Button(action: { withAnimation { enableNavSou.toggle() } }) {
HStack {
Text("Tabsound")
Spacer()
Toggle("", isOn: $enableNavSou)
.labelsHidden()
.tint(Color("ip64_color"))
.onChange(of: enableNavSou) { isSoundEnabled in
withAnimation {
enableNavSound = isSoundEnabled
}
}
}
}
.tint(Color("primaryText"))
}
Section("Sicherheit") {
Button(action: { withAnimation { enableBio.toggle() } }) {
Expand Down Expand Up @@ -136,6 +153,7 @@ struct ProfilView: View {
.onAppear {
newAccount = false
enableBio = isBiometricEnabled
enableNavSou = enableNavSound
loadUser = true
if (!accountListJson.isEmpty) {
do {
Expand Down
8 changes: 5 additions & 3 deletions IPv64/Main/TabbView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ struct TabbView: View {
@AppStorage("BIOMETRIC_ENABLED") var isBiometricEnabled: Bool = false
@AppStorage("AccountInfos") var accountInfosJson: String = ""
@AppStorage("AccountList") var accountListJson: String = ""
@AppStorage("ENABLE_NAV_SOUND") var enableNavSound: Bool = true
@AppStorage("DomainResult") var listOfDomainsString: String = ""
@AppStorage("current_Tab") var selectedTab: Tab = .domains

Expand Down Expand Up @@ -83,9 +84,10 @@ struct TabbView: View {
}

selectedTab = newTab

await HapticManager.shared.fireHaptic(of: .tabSelection)
await SoundEffectManager.shared.playSound(of: .tabSelection)
if (enableNavSound) {
await HapticManager.shared.fireHaptic(of: .tabSelection)
await SoundEffectManager.shared.playSound(of: .tabSelection)
}
}

})) {
Expand Down
3 changes: 2 additions & 1 deletion IPv64/Main/WhatsNew/WhatsNewView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ struct WhatsNewView: View {

var whatsNewList = [
WhatsNewObj(imageName: "ant.circle", title: "Fehlerbehebung", subtitle: "Es wurden in diesem Update ein Paar Fehler behoben, die zur Steigerung der Performance und der Nutzbarkeit dienen"),
WhatsNewObj(imageName: "person.circle", title: "Multi-User Support", subtitle: "Ihr könnt jetzt mehr als 1 Account in der App hinterlegen um Private & Firmenaccount über ein Gerät zuverwalten!")
WhatsNewObj(imageName: "person.circle", title: "Multi-User Support", subtitle: "Ihr könnt jetzt mehr als 1 Account in der App hinterlegen um Private & Firmenaccount über ein Gerät zuverwalten!"),
WhatsNewObj(imageName: "switch.2", title: "Toggle hinzugefügt", subtitle: "Es wurde ein neuer Toggle Switch hinzugefügt der den Tabsound in der Navigationleiste steuert!")
]

var body: some View {
Expand Down

0 comments on commit ad97914

Please sign in to comment.