This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyCustomView < UIView | |
def top_title=(value) | |
@top_title = value | |
#Custom code here | |
end | |
end | |
class MyCustomLayout < MK::Layout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder