diff --git a/IceCubesApp/App/Tabs/Settings/IconSelectorView.swift b/IceCubesApp/App/Tabs/Settings/IconSelectorView.swift index b3c57a75..e45213e4 100644 --- a/IceCubesApp/App/Tabs/Settings/IconSelectorView.swift +++ b/IceCubesApp/App/Tabs/Settings/IconSelectorView.swift @@ -88,7 +88,10 @@ struct IconSelectorView: View { if icon.rawValue == Icon.primary.rawValue { UIApplication.shared.setAlternateIconName(nil) } else { - UIApplication.shared.setAlternateIconName(icon.appIconName) + UIApplication.shared.setAlternateIconName(icon.appIconName) { err in + guard let err else { return } + assertionFailure("\(err.localizedDescription) - Icon name: \(icon.appIconName)") + } } } label: { ZStack(alignment: .bottomTrailing) { diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/100.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/100.png new file mode 100755 index 00000000..3be3b28c Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/100.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/1024.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/1024.png new file mode 100755 index 00000000..0a870c8b Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/1024.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/114.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/114.png new file mode 100755 index 00000000..83ddac16 Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/114.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/120.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/120.png new file mode 100755 index 00000000..47fa3c83 Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/120.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/128.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/128.png new file mode 100755 index 00000000..8ff599a7 Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/128.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/144.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/144.png new file mode 100755 index 00000000..8658c843 Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/144.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/152.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/152.png new file mode 100755 index 00000000..7308b2ab Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/152.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/16.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/16.png new file mode 100755 index 00000000..c9f41c69 Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/16.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/167.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/167.png new file mode 100755 index 00000000..fcfde5a7 Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/167.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/180.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/180.png new file mode 100755 index 00000000..e2741343 Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/180.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/20.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/20.png new file mode 100755 index 00000000..717c412f Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/20.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/256.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/256.png new file mode 100755 index 00000000..c5fdb987 Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/256.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/29.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/29.png new file mode 100755 index 00000000..4a770027 Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/29.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/32.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/32.png new file mode 100755 index 00000000..7d20ede1 Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/32.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/40.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/40.png new file mode 100755 index 00000000..b8e80e50 Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/40.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/50.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/50.png new file mode 100755 index 00000000..a374ec19 Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/50.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/512.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/512.png new file mode 100755 index 00000000..ca8a6bd7 Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/512.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/57.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/57.png new file mode 100755 index 00000000..60999ca4 Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/57.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/58.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/58.png new file mode 100755 index 00000000..f13261db Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/58.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/60.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/60.png new file mode 100755 index 00000000..380549a5 Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/60.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/64.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/64.png new file mode 100755 index 00000000..ec0d2cea Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/64.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/72.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/72.png new file mode 100755 index 00000000..ad140753 Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/72.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/76.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/76.png new file mode 100755 index 00000000..fb1139f4 Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/76.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/80.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/80.png new file mode 100755 index 00000000..4b4db446 Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/80.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/87.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/87.png new file mode 100755 index 00000000..0e729824 Binary files /dev/null and b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/87.png differ diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/Contents.json b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/Contents.json old mode 100644 new mode 100755 index 36cc4acb..5e8372b6 --- a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -1,64 +1,284 @@ { - "images" : [ - { - "filename" : "icon.png", - "idiom" : "universal", - "platform" : "ios", - "size" : "1024x1024" - }, - { - "idiom" : "mac", - "scale" : "1x", - "size" : "16x16" - }, - { - "idiom" : "mac", - "scale" : "2x", - "size" : "16x16" - }, - { - "idiom" : "mac", - "scale" : "1x", - "size" : "32x32" - }, - { - "idiom" : "mac", - "scale" : "2x", - "size" : "32x32" - }, - { - "idiom" : "mac", - "scale" : "1x", - "size" : "128x128" - }, - { - "idiom" : "mac", - "scale" : "2x", - "size" : "128x128" - }, - { - "idiom" : "mac", - "scale" : "1x", - "size" : "256x256" - }, - { - "idiom" : "mac", - "scale" : "2x", - "size" : "256x256" - }, - { - "idiom" : "mac", - "scale" : "1x", - "size" : "512x512" - }, - { - "idiom" : "mac", - "scale" : "2x", - "size" : "512x512" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} + "images": [ + { + "size": "60x60", + "expected-size": "180", + "filename": "180.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "iphone", + "scale": "3x" + }, + { + "size": "40x40", + "expected-size": "80", + "filename": "80.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "iphone", + "scale": "2x" + }, + { + "size": "40x40", + "expected-size": "120", + "filename": "120.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "iphone", + "scale": "3x" + }, + { + "size": "60x60", + "expected-size": "120", + "filename": "120.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "iphone", + "scale": "2x" + }, + { + "size": "57x57", + "expected-size": "57", + "filename": "57.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "iphone", + "scale": "1x" + }, + { + "size": "29x29", + "expected-size": "58", + "filename": "58.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "iphone", + "scale": "2x" + }, + { + "size": "29x29", + "expected-size": "29", + "filename": "29.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "iphone", + "scale": "1x" + }, + { + "size": "29x29", + "expected-size": "87", + "filename": "87.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "iphone", + "scale": "3x" + }, + { + "size": "57x57", + "expected-size": "114", + "filename": "114.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "iphone", + "scale": "2x" + }, + { + "size": "20x20", + "expected-size": "40", + "filename": "40.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "iphone", + "scale": "2x" + }, + { + "size": "20x20", + "expected-size": "60", + "filename": "60.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "iphone", + "scale": "3x" + }, + { + "size": "1024x1024", + "filename": "1024.png", + "expected-size": "1024", + "idiom": "ios-marketing", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "scale": "1x" + }, + { + "size": "40x40", + "expected-size": "80", + "filename": "80.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "ipad", + "scale": "2x" + }, + { + "size": "72x72", + "expected-size": "72", + "filename": "72.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "ipad", + "scale": "1x" + }, + { + "size": "76x76", + "expected-size": "152", + "filename": "152.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "ipad", + "scale": "2x" + }, + { + "size": "50x50", + "expected-size": "100", + "filename": "100.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "ipad", + "scale": "2x" + }, + { + "size": "29x29", + "expected-size": "58", + "filename": "58.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "ipad", + "scale": "2x" + }, + { + "size": "76x76", + "expected-size": "76", + "filename": "76.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "ipad", + "scale": "1x" + }, + { + "size": "29x29", + "expected-size": "29", + "filename": "29.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "ipad", + "scale": "1x" + }, + { + "size": "50x50", + "expected-size": "50", + "filename": "50.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "ipad", + "scale": "1x" + }, + { + "size": "72x72", + "expected-size": "144", + "filename": "144.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "ipad", + "scale": "2x" + }, + { + "size": "40x40", + "expected-size": "40", + "filename": "40.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "ipad", + "scale": "1x" + }, + { + "size": "83.5x83.5", + "expected-size": "167", + "filename": "167.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "ipad", + "scale": "2x" + }, + { + "size": "20x20", + "expected-size": "20", + "filename": "20.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "ipad", + "scale": "1x" + }, + { + "size": "20x20", + "expected-size": "40", + "filename": "40.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "ipad", + "scale": "2x" + }, + { + "size": "128x128", + "expected-size": "128", + "filename": "128.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "mac", + "scale": "1x" + }, + { + "size": "256x256", + "expected-size": "256", + "filename": "256.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "mac", + "scale": "1x" + }, + { + "size": "128x128", + "expected-size": "256", + "filename": "256.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "mac", + "scale": "2x" + }, + { + "size": "256x256", + "expected-size": "512", + "filename": "512.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "mac", + "scale": "2x" + }, + { + "size": "32x32", + "expected-size": "32", + "filename": "32.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "mac", + "scale": "1x" + }, + { + "size": "512x512", + "expected-size": "512", + "filename": "512.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "mac", + "scale": "1x" + }, + { + "size": "16x16", + "expected-size": "16", + "filename": "16.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "mac", + "scale": "1x" + }, + { + "size": "16x16", + "expected-size": "32", + "filename": "32.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "mac", + "scale": "2x" + }, + { + "size": "32x32", + "expected-size": "64", + "filename": "64.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "mac", + "scale": "2x" + }, + { + "size": "512x512", + "expected-size": "1024", + "filename": "1024.png", + "folder": "Assets.xcassets/AppIcon.appiconset/", + "idiom": "mac", + "scale": "2x" + } + ] +} \ No newline at end of file diff --git a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/icon.png b/IceCubesApp/Assets.xcassets/AppIcon.appiconset/icon.png deleted file mode 100644 index 6a5024f0..00000000 Binary files a/IceCubesApp/Assets.xcassets/AppIcon.appiconset/icon.png and /dev/null differ