mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-08 21:11:44 +01:00
Improve Icon rawValue parsing to better support multi digit values (#205)
This commit is contained in:
parent
0eaf2ebc60
commit
eb1925b5d5
@ -11,7 +11,7 @@ struct IconSelectorView: View {
|
||||
if string == Icon.primary.appIconName {
|
||||
self = .primary
|
||||
} else {
|
||||
self = .init(rawValue: Int(String(string.last!))!)!
|
||||
self = .init(rawValue: Int(String(string.replacing("AppIconAlternate", with: "")))!)!
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user