@@ -12,32 +12,30 @@ struct FreeloadView: View {
1212 @State var inProgress = false
1313 @State var success = false
1414 var body : some View {
15- NavigationView {
16- List {
17- Section {
18- Button ( action: {
19- inProgress = true
20- Haptic . shared. play ( . medium)
21- DispatchQueue . main. asyncAfter ( deadline: . now( ) + 0.1 ) {
22- success = patch_installd ( )
23-
24- if success {
25- UIApplication . shared. alert ( title: " Success " , body: " Successfully patched installd! " , withButton: true )
26- Haptic . shared. notify ( . success)
27- inProgress = false
28- } else {
29- UIApplication . shared. alert ( title: " Failure " , body: " Failed to patch installd! " , withButton: true )
30- Haptic . shared. notify ( . error)
31- inProgress = false
32- }
15+ List {
16+ Section {
17+ Button ( action: {
18+ inProgress = true
19+ Haptic . shared. play ( . medium)
20+ DispatchQueue . main. asyncAfter ( deadline: . now( ) + 0.1 ) {
21+ success = patch_installd ( )
22+
23+ if success {
24+ UIApplication . shared. alert ( title: " Success " , body: " Successfully patched installd! " , withButton: true )
25+ Haptic . shared. notify ( . success)
26+ inProgress = false
27+ } else {
28+ UIApplication . shared. alert ( title: " Failure " , body: " Failed to patch installd! " , withButton: true )
29+ Haptic . shared. notify ( . error)
30+ inProgress = false
3331 }
34- } , label: {
35- Label ( " Apply " , systemImage: " checkmark.seal " )
3632 }
37- )
33+ } , label: {
34+ Label ( " Apply " , systemImage: " checkmark.seal " )
3835 }
39- . navigationTitle ( " Remove three-app limit " )
36+ )
4037 }
38+ . navigationTitle ( " Remove three-app limit " )
4139 }
4240 . disabled ( inProgress)
4341 }
0 commit comments