Skip to content

Commit

Permalink
fix button states
Browse files Browse the repository at this point in the history
  • Loading branch information
FranzBusch committed Apr 29, 2019
1 parent 49193dd commit 4a6ba55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Models/Views/Controls/Button.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
Expand Down

0 comments on commit 4a6ba55

Please sign in to comment.