accessibleText not required
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
97d7e1dba1
commit
062a1cfe64
@ -43,7 +43,7 @@ extension Tilelet.DescriptiveIcon: Codable {
|
||||
let name = try container.decode(Icon.Name.self, forKey: .name)
|
||||
let size = try container.decodeIfPresent(Icon.Size.self, forKey: .size) ?? .medium
|
||||
let color = try container.decodeIfPresent(Color.self, forKey: .color)
|
||||
let accessibleText = try? container.decode(String.self, forKey: .accessibleText)
|
||||
let accessibleText = try container.decodeIfPresent(String.self, forKey: .accessibleText)
|
||||
if let uiColor = color?.uiColor {
|
||||
self.init(name: name,
|
||||
colorConfiguration: .init(uiColor, uiColor),
|
||||
@ -78,7 +78,7 @@ extension Tilelet.DirectionalIcon: Codable {
|
||||
let iconType = try container.decodeIfPresent(IconType.self, forKey: .name) ?? .rightArrow
|
||||
let size = try container.decodeIfPresent(IconSize.self, forKey: .size) ?? .medium
|
||||
let color = try container.decodeIfPresent(Color.self, forKey: .color)
|
||||
let accessibleText = try? container.decode(String.self, forKey: .accessibleText)
|
||||
let accessibleText = try container.decodeIfPresent(String.self, forKey: .accessibleText)
|
||||
if let uiColor = color?.uiColor {
|
||||
self.init(iconType: iconType,
|
||||
colorConfiguration: .init(uiColor, uiColor),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user