diff --git a/Sources/Models/Views/Controls/Button.swift b/Sources/Models/Views/Controls/Button.swift index 9a3bafa..4a333f1 100644 --- a/Sources/Models/Views/Controls/Button.swift +++ b/Sources/Models/Views/Controls/Button.swift @@ -51,7 +51,7 @@ public struct Button: IBDecodable, ViewProtocol, IBIdentifiable { let container = xml.container(keys: CodingKeys.self) return State.init( key: try container.attribute(of: .key), - title: try container.attribute(of: .title), + title: container.attributeIfPresent(of: .title), color: container.elementIfPresent(of: .color), image: container.attributeIfPresent(of: .image) )