Skip to content

Commit

Permalink
Get text from element.content
Browse files Browse the repository at this point in the history
  • Loading branch information
onmyway133 committed Nov 26, 2016
1 parent 7c07884 commit 71bf8bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/iOS/Shape/Text.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Text: Shape {
required init(element: Element) {
self.point = CGPoint(x: element.attributes.number(key: "x") ?? 0,
y: element.attributes.number(key: "y") ?? 0)
self.text = element.attributes.string(key: "text") ?? ""
self.text = element.content ?? ""

super.init(element: element)
}
Expand Down

0 comments on commit 71bf8bf

Please sign in to comment.