Class: Loco::UI::View

Inherits:
UIView
  • Object
show all
Includes:
Resizable
Defined in:
lib/motion-loco/views.rb

Instance Attribute Summary

Attributes included from Resizable

#bottom, #height, #left, #parentView, #parent_view, #right, #top, #width

Instance Method Summary collapse

Methods included from Resizable

included, #initWithFrame, #refresh_layout, #viewSetup, #view_setup, #willMoveToSuperview

Methods included from Observable

#init, #initialize, #method_missing, #register_observer, #remove_all_observers, #remove_observer, #set_properties, #update_attributes

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Loco::Observable

Instance Method Details

#border_radiusObject Also known as: borderRadius



78
79
80
# File 'lib/motion-loco/views.rb', line 78

def border_radius
  self.layer.cornerRadius
end

#border_radius=(radius) ⇒ Object Also known as: borderRadius=



83
84
85
# File 'lib/motion-loco/views.rb', line 83

def border_radius=(radius)
  self.layer.cornerRadius = radius
end