Skip to content

A container view to layout subviews in a circular fashion.

License

Notifications You must be signed in to change notification settings

ahmedk92/CircularLayoutView

Repository files navigation

CircularLayoutView

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

CircleLayoutView

Usage

Can be used from Iterface Builder and code.

Interface Builder

  1. Drag a UIView from the IB object library.
  2. Set the class of the view to CircularLayoutView.
  3. Adjust the shift and radiusFactor, if desired, from the attributes inspector.
  4. Drag subviews into it.

Code

circularLayoutView.shift = -60 // 60 Degrees counter-clockwise.
circularLayoutView.radiusFactor = 0.5 // leave half of the available width as padding.
circularLayoutView.addSubview(aView)

Requirements

Installation

CircularLayoutView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'CircularLayoutView'

Author

ahmedk92, [email protected]

License

CircularLayoutView is available under the MIT license. See the LICENSE file for more info.

A container view to layout subviews in a circular fashion.

About

A container view to layout subviews in a circular fashion.

Resources

License

Stars

Watchers

Forks

Packages

No packages published