make all app icons smiley faces

This commit is contained in:
Trey t
2022-03-05 13:13:46 -06:00
parent 30cabe649b
commit ba5cb9c6d5
95 changed files with 70 additions and 30 deletions

View File

@@ -28,7 +28,6 @@ struct CustomizeView: View {
@StateObject private var selectedWidget = StupidAssCustomWidgetObservableObject()
let iconSets: [(String,String)] = [
("AppIconImage", "AppIcon"),
("AppIconGoodImage", "AppIconGood"),
("AppIconAverageImage", "AppIconAverage"),
("AppIconBadImage", "AppIconBad"),
@@ -67,6 +66,16 @@ struct CustomizeView: View {
VStack {
ScrollView(.horizontal) {
HStack {
Button(action: {
UIApplication.shared.setAlternateIconName(nil)
}, label: {
Image("AppIconImage", bundle: .main)
.resizable()
.frame(width: 50, height:50)
.cornerRadius(10)
})
ForEach(iconSets, id: \.self.0){ iconSet in
Button(action: {
UIApplication.shared.setAlternateIconName(iconSet.1) { (error) in