New icons come with random appearance

This commit is contained in:
Milan Stute
2021-03-10 22:35:05 +01:00
parent c57b4c9545
commit 599b604fa9
5 changed files with 17 additions and 22 deletions

View File

@@ -79,8 +79,8 @@ class AccessoryController: ObservableObject {
}
}
func addAccessory(with name: String, color: Color, icon: String) throws -> Accessory {
let accessory = try Accessory(name: name, color: color, iconName: icon)
func addAccessory() throws -> Accessory {
let accessory = try Accessory()
withAnimation {
self.accessories.append(accessory)
}