Skip to content

Instantly share code, notes, and snippets.

@colinta
Forked from jamonholmgren/promotion-teacup.rb
Created May 16, 2013 00:35
Show Gist options
  • Save colinta/5588578 to your computer and use it in GitHub Desktop.
Save colinta/5588578 to your computer and use it in GitHub Desktop.
Teacup::Stylesheet.new :main do
style :my_style,
constraints: [
constrain_left(0),
constrain_width(100),
constrain_top(0),
constrain(:bottom).equals(:superview, :bottom),
]
end
class HomeScreen < PM::Screen
stylesheet :main
layout do
add UIView, :my_style
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment