mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-23 15:40:37 +00:00
Improve Icon rawValue parsing to better support multi digit values (#205)
This commit is contained in:
parent
0eaf2ebc60
commit
eb1925b5d5
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ struct IconSelectorView: View {
|
||||||
if string == Icon.primary.appIconName {
|
if string == Icon.primary.appIconName {
|
||||||
self = .primary
|
self = .primary
|
||||||
} else {
|
} else {
|
||||||
self = .init(rawValue: Int(String(string.last!))!)!
|
self = .init(rawValue: Int(String(string.replacing("AppIconAlternate", with: "")))!)!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue