diff --git a/Shared/AppIcons/AppIcons.swift b/Shared/AppIcons/AppIcons.swift index 9652391a..743fc987 100644 --- a/Shared/AppIcons/AppIcons.swift +++ b/Shared/AppIcons/AppIcons.swift @@ -11,7 +11,6 @@ import UIKit protocol AppIcon: CaseIterable, Identifiable, Displayable, RawRepresentable { var iconName: String { get } - var iconPreview: UIImage { get } static var tag: String { get } static func createCase(iconName: String) -> Self? @@ -23,17 +22,13 @@ extension AppIcon where ID == String, RawValue == String { "AppIcon-\(Self.tag)-\(rawValue)" } - var iconPreview: UIImage { - UIImage(named: iconName) ?? UIImage() - } - var id: String { iconName } static func createCase(iconName: String) -> Self? { let split = iconName.split(separator: "-") - guard split.count == 3, split[1] == Self.tag else { return nil } + guard split.count == 3, split[1] == tag else { return nil } return Self(rawValue: String(split[2])) } diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-blue.imageset/AppIcon-dark-blue.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-blue.imageset/AppIcon-dark-blue.svg new file mode 100644 index 00000000..0359f76d --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-blue.imageset/AppIcon-dark-blue.svg @@ -0,0 +1,16 @@ + + + AppIcon-dark-blue + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-blue.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-blue.imageset/Contents.json new file mode 100644 index 00000000..5803f45d --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-blue.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-dark-blue.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-green.imageset/AppIcon-dark-green.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-green.imageset/AppIcon-dark-green.svg new file mode 100644 index 00000000..fd482fa9 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-green.imageset/AppIcon-dark-green.svg @@ -0,0 +1,16 @@ + + + AppIcon-dark-green + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-green.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-green.imageset/Contents.json new file mode 100644 index 00000000..b776279d --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-green.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-dark-green.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-jellyfin.imageset/AppIcon-dark-jellyfin.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-jellyfin.imageset/AppIcon-dark-jellyfin.svg new file mode 100644 index 00000000..df67de89 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-jellyfin.imageset/AppIcon-dark-jellyfin.svg @@ -0,0 +1,16 @@ + + + AppIcon-dark-jellyfin + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-jellyfin.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-jellyfin.imageset/Contents.json new file mode 100644 index 00000000..15bd7ccd --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-jellyfin.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-dark-jellyfin.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-orange.imageset/AppIcon-dark-orange.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-orange.imageset/AppIcon-dark-orange.svg new file mode 100644 index 00000000..62a768a5 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-orange.imageset/AppIcon-dark-orange.svg @@ -0,0 +1,16 @@ + + + AppIcon-dark-orange + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-orange.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-orange.imageset/Contents.json new file mode 100644 index 00000000..1c585c4a --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-orange.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-dark-orange.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-red.imageset/AppIcon-dark-red.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-red.imageset/AppIcon-dark-red.svg new file mode 100644 index 00000000..6c848265 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-red.imageset/AppIcon-dark-red.svg @@ -0,0 +1,16 @@ + + + AppIcon-dark-red + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-red.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-red.imageset/Contents.json new file mode 100644 index 00000000..6916e896 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-red.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-dark-red.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-yellow.imageset/AppIcon-dark-yellow.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-yellow.imageset/AppIcon-dark-yellow.svg new file mode 100644 index 00000000..9787edce --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-yellow.imageset/AppIcon-dark-yellow.svg @@ -0,0 +1,16 @@ + + + AppIcon-dark-yellow + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-yellow.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-yellow.imageset/Contents.json new file mode 100644 index 00000000..5bf7b2f1 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-dark-yellow.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-dark-yellow.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-blue.imageset/AppIcon-invertedDark-blue.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-blue.imageset/AppIcon-invertedDark-blue.svg new file mode 100644 index 00000000..5183ef54 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-blue.imageset/AppIcon-invertedDark-blue.svg @@ -0,0 +1,16 @@ + + + AppIcon-invertedDark-blue + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-blue.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-blue.imageset/Contents.json new file mode 100644 index 00000000..8a19f9df --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-blue.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-invertedDark-blue.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-green.imageset/AppIcon-invertedDark-green.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-green.imageset/AppIcon-invertedDark-green.svg new file mode 100644 index 00000000..d0438c88 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-green.imageset/AppIcon-invertedDark-green.svg @@ -0,0 +1,16 @@ + + + AppIcon-invertedDark-green + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-green.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-green.imageset/Contents.json new file mode 100644 index 00000000..ecfd0fea --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-green.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-invertedDark-green.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-jellyfin.imageset/AppIcon-invertedDark-jellyfin.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-jellyfin.imageset/AppIcon-invertedDark-jellyfin.svg new file mode 100644 index 00000000..f551bcb8 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-jellyfin.imageset/AppIcon-invertedDark-jellyfin.svg @@ -0,0 +1,16 @@ + + + AppIcon-invertedDark-jellyfin + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-jellyfin.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-jellyfin.imageset/Contents.json new file mode 100644 index 00000000..7f901d58 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-jellyfin.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-invertedDark-jellyfin.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-orange.imageset/AppIcon-invertedDark-orange.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-orange.imageset/AppIcon-invertedDark-orange.svg new file mode 100644 index 00000000..855ae608 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-orange.imageset/AppIcon-invertedDark-orange.svg @@ -0,0 +1,16 @@ + + + AppIcon-invertedDark-orange + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-orange.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-orange.imageset/Contents.json new file mode 100644 index 00000000..1710cf4c --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-orange.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-invertedDark-orange.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-red.imageset/AppIcon-invertedDark-red.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-red.imageset/AppIcon-invertedDark-red.svg new file mode 100644 index 00000000..6d6f5085 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-red.imageset/AppIcon-invertedDark-red.svg @@ -0,0 +1,16 @@ + + + AppIcon-invertedDark-red + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-red.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-red.imageset/Contents.json new file mode 100644 index 00000000..8fc943bf --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-red.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-invertedDark-red.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-yellow.imageset/AppIcon-invertedDark-yellow.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-yellow.imageset/AppIcon-invertedDark-yellow.svg new file mode 100644 index 00000000..9935c5cd --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-yellow.imageset/AppIcon-invertedDark-yellow.svg @@ -0,0 +1,16 @@ + + + AppIcon-invertedDark-yellow + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-yellow.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-yellow.imageset/Contents.json new file mode 100644 index 00000000..134e4872 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedDark-yellow.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-invertedDark-yellow.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-blue.imageset/AppIcon-invertedLight-blue.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-blue.imageset/AppIcon-invertedLight-blue.svg new file mode 100644 index 00000000..7fe53b01 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-blue.imageset/AppIcon-invertedLight-blue.svg @@ -0,0 +1,16 @@ + + + AppIcon-invertedLight-blue + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-blue.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-blue.imageset/Contents.json new file mode 100644 index 00000000..ab190532 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-blue.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-invertedLight-blue.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-green.imageset/AppIcon-invertedLight-green.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-green.imageset/AppIcon-invertedLight-green.svg new file mode 100644 index 00000000..1b434671 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-green.imageset/AppIcon-invertedLight-green.svg @@ -0,0 +1,16 @@ + + + AppIcon-invertedLight-green + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-green.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-green.imageset/Contents.json new file mode 100644 index 00000000..10804a91 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-green.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-invertedLight-green.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-jellyfin.imageset/AppIcon-invertedLight-jellyfin.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-jellyfin.imageset/AppIcon-invertedLight-jellyfin.svg new file mode 100644 index 00000000..03df4bb1 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-jellyfin.imageset/AppIcon-invertedLight-jellyfin.svg @@ -0,0 +1,16 @@ + + + AppIcon-invertedLight-jellyfin + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-jellyfin.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-jellyfin.imageset/Contents.json new file mode 100644 index 00000000..b9a3df2d --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-jellyfin.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-invertedLight-jellyfin.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-orange.imageset/AppIcon-invertedLight-orange.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-orange.imageset/AppIcon-invertedLight-orange.svg new file mode 100644 index 00000000..46a6c39b --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-orange.imageset/AppIcon-invertedLight-orange.svg @@ -0,0 +1,16 @@ + + + AppIcon-invertedLight-orange + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-orange.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-orange.imageset/Contents.json new file mode 100644 index 00000000..fe8a8354 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-orange.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-invertedLight-orange.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-red.imageset/AppIcon-invertedLight-red.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-red.imageset/AppIcon-invertedLight-red.svg new file mode 100644 index 00000000..9f251a13 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-red.imageset/AppIcon-invertedLight-red.svg @@ -0,0 +1,16 @@ + + + AppIcon-invertedLight-red + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-red.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-red.imageset/Contents.json new file mode 100644 index 00000000..99b6120d --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-red.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-invertedLight-red.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-yellow.imageset/AppIcon-invertedLight-yellow.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-yellow.imageset/AppIcon-invertedLight-yellow.svg new file mode 100644 index 00000000..72209c33 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-yellow.imageset/AppIcon-invertedLight-yellow.svg @@ -0,0 +1,16 @@ + + + AppIcon-invertedLight-yellow + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-yellow.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-yellow.imageset/Contents.json new file mode 100644 index 00000000..665d61e9 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-invertedLight-yellow.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-invertedLight-yellow.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-light-blue.imageset/AppIcon-light-blue.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-blue.imageset/AppIcon-light-blue.svg new file mode 100644 index 00000000..bc41f6e1 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-blue.imageset/AppIcon-light-blue.svg @@ -0,0 +1,16 @@ + + + AppIcon-light-blue + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-light-blue.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-blue.imageset/Contents.json new file mode 100644 index 00000000..1b4dbd44 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-blue.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-light-blue.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-light-green.imageset/AppIcon-light-green.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-green.imageset/AppIcon-light-green.svg new file mode 100644 index 00000000..b48a3ce1 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-green.imageset/AppIcon-light-green.svg @@ -0,0 +1,16 @@ + + + AppIcon-light-green + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-light-green.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-green.imageset/Contents.json new file mode 100644 index 00000000..31d162e0 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-green.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-light-green.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-light-jellyfin.imageset/AppIcon-light-jellyfin.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-jellyfin.imageset/AppIcon-light-jellyfin.svg new file mode 100644 index 00000000..d23e85d5 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-jellyfin.imageset/AppIcon-light-jellyfin.svg @@ -0,0 +1,16 @@ + + + AppIcon-light-jellyfin + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-light-jellyfin.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-jellyfin.imageset/Contents.json new file mode 100644 index 00000000..33e2f2ad --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-jellyfin.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-light-jellyfin.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-light-orange.imageset/AppIcon-light-orange.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-orange.imageset/AppIcon-light-orange.svg new file mode 100644 index 00000000..bb1a78ef --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-orange.imageset/AppIcon-light-orange.svg @@ -0,0 +1,16 @@ + + + AppIcon-light-orange + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-light-orange.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-orange.imageset/Contents.json new file mode 100644 index 00000000..b574264b --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-orange.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-light-orange.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-light-red.imageset/AppIcon-light-red.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-red.imageset/AppIcon-light-red.svg new file mode 100644 index 00000000..9101ca42 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-red.imageset/AppIcon-light-red.svg @@ -0,0 +1,16 @@ + + + AppIcon-light-red + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-light-red.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-red.imageset/Contents.json new file mode 100644 index 00000000..3f76e149 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-red.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-light-red.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-light-yellow.imageset/AppIcon-light-yellow.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-yellow.imageset/AppIcon-light-yellow.svg new file mode 100644 index 00000000..08b69104 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-yellow.imageset/AppIcon-light-yellow.svg @@ -0,0 +1,16 @@ + + + AppIcon-light-yellow + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-light-yellow.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-yellow.imageset/Contents.json new file mode 100644 index 00000000..2ea5618c --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-light-yellow.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-light-yellow.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-primary-primary.imageset/AppIcon-primary-primary.svg b/Swiftfin/Resources/Assets.xcassets/AppIcon-primary-primary.imageset/AppIcon-primary-primary.svg new file mode 100644 index 00000000..b9734257 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-primary-primary.imageset/AppIcon-primary-primary.svg @@ -0,0 +1,16 @@ + + + primary + + + + + + + + + + + + + \ No newline at end of file diff --git a/Swiftfin/Resources/Assets.xcassets/AppIcon-primary-primary.imageset/Contents.json b/Swiftfin/Resources/Assets.xcassets/AppIcon-primary-primary.imageset/Contents.json new file mode 100644 index 00000000..597eb1e5 --- /dev/null +++ b/Swiftfin/Resources/Assets.xcassets/AppIcon-primary-primary.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "AppIcon-primary-primary.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Swiftfin/Views/AppIconSelectorView.swift b/Swiftfin/Views/AppIconSelectorView.swift index 6b77918f..228e4734 100644 --- a/Swiftfin/Views/AppIconSelectorView.swift +++ b/Swiftfin/Views/AppIconSelectorView.swift @@ -69,7 +69,7 @@ extension AppIconSelectorView { } label: { HStack { - Image(uiImage: icon.iconPreview) + Image(icon.iconName) .resizable() .aspectRatio(contentMode: .fit) .frame(width: 60, height: 60)