-
-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move updates settings from their own settings pane to the "About" set…
…tings pane
- Loading branch information
1 parent
2ebe9e0
commit 258549f
Showing
7 changed files
with
56 additions
and
29 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
26 changes: 26 additions & 0 deletions
26
Ice/Settings/SettingsPanes/AboutSettingsPane/AboutSettingsPane.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,26 @@ | ||
// | ||
// AboutSettingsPane.swift | ||
// Ice | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct AboutSettingsPane: View { | ||
@AppStorage(Defaults.aboutSettingsPaneSelectedTab) var selection: Int = 0 | ||
|
||
var body: some View { | ||
CustomTabView(selection: $selection) { | ||
CustomTab("About") { | ||
AboutTab() | ||
} | ||
CustomTab("Updates") { | ||
UpdatesTab() | ||
} | ||
} | ||
} | ||
} | ||
|
||
#Preview { | ||
AboutSettingsPane() | ||
.buttonStyle(.custom) | ||
} |
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