lib/ios/sugarcube-uikit/nsattributedstring.rb in sugarcube-2.11.0 vs lib/ios/sugarcube-uikit/nsattributedstring.rb in sugarcube-2.11.1
- old
+ new
@@ -4,9 +4,10 @@
def uilabel
UILabel.alloc.initWithFrame([[0, 0], [0, 0]]).tap do |label|
label.attributedText = self
label.backgroundColor = :clear.uicolor
label.sizeToFit
+ label
end
end
end