-
Notifications
You must be signed in to change notification settings - Fork 28
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
7 changed files
with
160 additions
and
11 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
Binary file modified
BIN
+16.8 KB
(100%)
...codeproj/project.xcworkspace/xcuserdata/cclerc.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
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,43 @@ | ||
// | ||
// DaemonWelcomeView.swift | ||
// Geranium | ||
// | ||
// Created by cclerc on 21.12.23. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct DaemonWelcomeView: View { | ||
@Environment(\.dismiss) var dismiss | ||
var body: some View { | ||
List { | ||
|
||
Section(header: Text("Purpose")) { | ||
Text("By adding some rules to iOS internals, we prevent the daemon from launching when you boot your phone. The app list every running daemon, and you can swipe left to remove them.") | ||
} | ||
|
||
Section(header: Text("WARNING")) { | ||
Text("DISABLING SYSTEM DAEMONS IS NOT RECOMMENDED. YOU COULD BOOTLOOP YOUR DEVICE. PROCEED WITH CAUTION. I AM NOT RESPONSIBLE FOR ANY PROBLEM ON YOUR DEVICE.") | ||
.foregroundStyle(.red) | ||
} | ||
Section(header: Text("Please note")) { | ||
Text("If you missclick and accidently remove a daemon, you can still re-enable it by swipping again (should still be Delete). Edit won't be applied until you hit the apply button top left.") | ||
.foregroundStyle(.green) | ||
} | ||
} | ||
.navigationTitle("Notice") | ||
.navigationBarItems(trailing: Button("Understood") { | ||
close() | ||
}) | ||
.environment(\.defaultMinListRowHeight, 50) | ||
.interactiveDismissDisabled() | ||
} | ||
|
||
func close() { | ||
dismiss() | ||
} | ||
} | ||
|
||
#Preview { | ||
DaemonWelcomeView() | ||
} |
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