To run the example project, clone the repo, and run pod install
from the Example directory first.
Can be used from Iterface Builder and code.
- Drag a
UIView
from the IB object library. - Set the class of the view to
CircularLayoutView
. - Adjust the
shift
andradiusFactor
, if desired, from the attributes inspector. - Drag subviews into it.
circularLayoutView.shift = -60 // 60 Degrees counter-clockwise.
circularLayoutView.radiusFactor = 0.5 // leave half of the available width as padding.
circularLayoutView.addSubview(aView)
CircularLayoutView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'CircularLayoutView'
ahmedk92, [email protected]
A container view to layout subviews in a circular fashion.