-
Notifications
You must be signed in to change notification settings - Fork 17
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
Constantin Clerc
committed
Feb 22, 2024
1 parent
4de4b23
commit 5639788
Showing
4 changed files
with
380 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// | ||
// NotifHelp.swift | ||
// Geranium | ||
// | ||
// Created by Constantin Clerc on 22.02.2024. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct NotifHelp: View { | ||
var body: some View { | ||
NavigationView { | ||
List { | ||
Section(header: Text("Issue"), footer: Text("You might lose some unimportant data, such as WiFi passwords and preferences.")) { | ||
Text("Lost your notifications because of the cleaner ? Don't panic, here is the solution !") | ||
} | ||
Section(header: Text("The procedure")) { | ||
Text("First, you need to open Settings. The app can do it for you if you want. Then, go in **General**, scroll down, and go in **Reset**.") | ||
Button("Open Settings") { | ||
if let url = URL(string:UIApplication.openSettingsURLString) { | ||
if UIApplication.shared.canOpenURL(url) { | ||
UIApplication.shared.open(url, options: [:], completionHandler: nil) | ||
} | ||
} | ||
} | ||
} | ||
Section() { | ||
Text("Then, you need to press the **Reset** button (NOT the erase all contents and settings)") | ||
} | ||
Section() { | ||
Text("Press **Reset All Settings**, follow what's on your screen and you are done !") | ||
} | ||
} | ||
.toolbar { | ||
ToolbarItem(placement: .principal) { | ||
Text("Additional Help") | ||
.font(.title2) | ||
.bold() | ||
.padding(.top, 10) | ||
} | ||
} | ||
|
||
} | ||
.environment(\.defaultMinListRowHeight, 50) | ||
} | ||
} | ||
|
||
#Preview { | ||
NotifHelp() | ||
} |
Oops, something went wrong.
5639788
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semi-fixes #10