mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-06-10 09:19:22 +00:00
9ebe0b314c
* Change arrows icon to rocket for boosts * Fixing case (part 1) * Fixing Case (part 2) * Clean up after merge * Fix for disabled boost * Fixes --------- Co-authored-by: Thomas Ricouard <ricouard77@gmail.com>
22 lines
464 B
Swift
22 lines
464 B
Swift
|
|
|
|
import Foundation
|
|
import SwiftUI
|
|
|
|
// Functions to cope with extending SF symbols
|
|
// images named in lower case are Apple's symbols
|
|
// images inamed in CamelCase are custom
|
|
|
|
extension Label where Title == Text, Icon == Image {
|
|
|
|
public init (_ title: LocalizedStringKey, imageNamed: String) {
|
|
if imageNamed.lowercased() == imageNamed {
|
|
self.init(title, systemImage: imageNamed)
|
|
}
|
|
else {
|
|
self.init(title, image: imageNamed)
|
|
}
|
|
}
|
|
}
|
|
|