-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reconnection Issue Fix to Prevent App from Being Stuck in a Waiting s…
…tatus (#54) * Adds waiting as a retriable state * Hides the chat bubble for this hotfix * Refactors Settings Screens to clean up navigation * Handles case where the server sends back multiple O or OU entries * Spelling correction for logger
- Loading branch information
Showing
10 changed files
with
110 additions
and
39 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
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,27 @@ | ||
// | ||
// AdvancedOptions.swift | ||
// TAKTracker | ||
// | ||
// Created by Cory Foy on 3/25/24. | ||
// | ||
|
||
import Foundation | ||
import SwiftUI | ||
|
||
struct AdvancedOptions: View { | ||
var body: some View { | ||
NavigationLink(destination: AdvancedOptionsScreen()) { | ||
Text("Advanced Options") | ||
} | ||
.navigationBarTitleDisplayMode(.inline) | ||
} | ||
} | ||
|
||
struct AdvancedOptionsScreen: View { | ||
var body: some View { | ||
List { | ||
DeviceOptions() | ||
TAKOptions() | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
TAKTracker/Screens/SettingsScreens/SituationalAwarenessOptions.swift
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,32 @@ | ||
// | ||
// SituationalAwarenessOptions.swift | ||
// TAKTracker | ||
// | ||
// Created by Cory Foy on 3/25/24. | ||
// | ||
|
||
import Foundation | ||
import SwiftUI | ||
|
||
struct SituationalAwarenessOptions: View { | ||
var body: some View { | ||
NavigationLink(destination: SituationalAwarenessScreen()) { | ||
Text("Situational Awareness") | ||
} | ||
.navigationBarTitleDisplayMode(.inline) | ||
} | ||
} | ||
|
||
struct SituationalAwarenessScreen: View { | ||
@Environment(\.dismiss) var dismiss | ||
@StateObject var settingsStore: SettingsStore = SettingsStore.global | ||
|
||
var body: some View { | ||
List { | ||
AdvancedModeToggle() | ||
if(settingsStore.enableAdvancedMode) { | ||
MapOptions() | ||
} | ||
} | ||
} | ||
} |
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