-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
6 changed files
with
125 additions
and
71 deletions.
There are no files selected for viewing
24 changes: 0 additions & 24 deletions
24
apps/mobile/metro-now/metro-now/pages/settings/components/settings-page-footer.view.swift
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
...le/metro-now/metro-now/pages/settings/components/settings-page-general-section.view.swift
This file was deleted.
Oops, something went wrong.
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
apps/mobile/metro-now/metro-now/pages/settings/settings-app-changelog.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,14 @@ | ||
|
||
|
||
// metro-now | ||
// https://github.com/krystxf/metro-now | ||
|
||
import SwiftUI | ||
|
||
struct SettingsChangelogPageView: View { | ||
|
||
var body: some View { | ||
Text("Lorem ipsum") | ||
.navigationTitle("What's new") | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
apps/mobile/metro-now/metro-now/pages/settings/settings-app-icon.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,52 @@ | ||
|
||
// metro-now | ||
// https://github.com/krystxf/metro-now | ||
|
||
import SwiftUI | ||
|
||
struct SettingsAppIconPageView: View { | ||
private let application = UIApplication.shared | ||
|
||
|
||
var body: some View { | ||
|
||
List{ | ||
Section(header: Text("Choose your app icon")){ | ||
// if application.supportsAlternateIcons { | ||
HStack{ | ||
Text("Prague metro") | ||
} | ||
.onTapGesture { | ||
Task { @MainActor in | ||
do { | ||
try await application.setAlternateIconName("AppIconPragueMetro") | ||
} catch { | ||
print("error: \(error)") | ||
} | ||
} | ||
} | ||
// } | ||
HStack{ | ||
Text("metro-now") | ||
} | ||
.onTapGesture { | ||
Task { @MainActor in | ||
do { | ||
try await application.setAlternateIconName("AppIcon") | ||
} catch { | ||
print("error: \(error)") | ||
} | ||
} | ||
} | ||
|
||
} | ||
} | ||
.navigationTitle("App icon") | ||
|
||
} | ||
} | ||
|
||
|
||
#Preview { | ||
SettingsAppIconPageView() | ||
} |
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