Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit 774799c

Browse files
author
leminlimez
committed
fix forehead on 3 app limit :trollface:
1 parent a7075a8 commit 774799c

File tree

1 file changed

+20
-22
lines changed

1 file changed

+20
-22
lines changed

Cowabunga/Views/UniqueToolsViews/FreeloadView.swift

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)