Skip to content

Instantly share code, notes, and snippets.

@dmoss18
dmoss18 / gist:badb89c7f6228bc1a0ad
Last active August 29, 2015 14:05
Custom motionkit view and layout
class MyCustomView < UIView
def top_title=(value)
@top_title = value
#Custom code here
end
end
class MyCustomLayout < MK::Layout
def layout
root :my_root do
add UIButton, :button_1 do
constraints do
top.equals(:superview)
left.equals(:superview)
width 30
height 144
end
end