diff --git a/Eatery Blue/Assets.xcassets/AppIcon-Preview.imageset/1024.png b/Eatery Blue/Assets.xcassets/AppIcon-Preview.imageset/1024.png new file mode 100644 index 0000000..206c3ca Binary files /dev/null and b/Eatery Blue/Assets.xcassets/AppIcon-Preview.imageset/1024.png differ diff --git a/Eatery Blue/Assets.xcassets/AppIcon-Preview.imageset/Contents.json b/Eatery Blue/Assets.xcassets/AppIcon-Preview.imageset/Contents.json new file mode 100644 index 0000000..94202f5 --- /dev/null +++ b/Eatery Blue/Assets.xcassets/AppIcon-Preview.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "1024.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Eatery Blue/UI/SettingsAppIcon/SettingsAppIconSheetViewController.swift b/Eatery Blue/UI/SettingsAppIcon/SettingsAppIconSheetViewController.swift index 2d70e86..8dbeaff 100644 --- a/Eatery Blue/UI/SettingsAppIcon/SettingsAppIconSheetViewController.swift +++ b/Eatery Blue/UI/SettingsAppIcon/SettingsAppIconSheetViewController.swift @@ -18,7 +18,7 @@ class SettingsAppIconSheetViewController: SheetViewController { // MARK: - Properties (data) private var icons = [ - AppIcon(name: "Default", icon: UIImage(named: "AppIcon")), + AppIcon(name: "Default", icon: UIImage(named: "AppIcon-Preview")), AppIcon(name: "Inverted", icon: UIImage(named: "AppIcon-Preview-White")), AppIcon(name: "OG", icon: UIImage(named: "AppIcon-Preview-OG")), AppIcon(name: "StPaddy", icon: UIImage(named: "AppIcon-Preview-StPaddy")), @@ -60,6 +60,8 @@ class SettingsAppIconSheetViewController: SheetViewController { private func setupSelectedIcon() { let iconName = UserDefaults.standard.string(forKey: UserDefaultsKeys.activeIcon) ?? "Default" + + setIcon(named: iconName) } private func setupIconCollectionView() {