Sha256: afb1ef49703b0a783a1893501a875875ae49b16d24c5163e9a0c8d64adf2bab1
Contents?: true
Size: 374 Bytes
Versions: 31
Compression:
Stored size: 374 Bytes
Contents
Teacup::Stylesheet.new :custom do style :container, frame: [[0, 0], [100, 20]] style :label, text: 'custom label', frame: [[0, 0], [100, 20]] end class CustomTeacupClass include Teacup::Layout def initialize self.stylesheet = :custom end def create_container layout(UIView, :container) do subview(UILabel, :label) end end end
Version data entries
31 entries across 31 versions & 1 rubygems