Skip to content

Library that contains a collection of IBDesignable UIKit views subclases with rounded corners

License

Notifications You must be signed in to change notification settings

KogiMobileSAS/RoundedViews

Repository files navigation

RoundedViews

Version License Platform

RoundedViews is a library that contains a collection of IBDesignable UIKit views subclases with rounded corners.

screen

Installation

pod 'RoundedViews', '~> 1.0'

Usage

Interface Builder

  • In the identity inspector of Interface Builder, set the class of your view to the rounded subclass i.e. RoundedView, RoundedButton, RoundedImage, RoundedLabel.
  • In the attributes inspector set the Radius Multiplier.

Programatically

To use it programatically just instantiate the subclass that you need and set the radiusMultiplier property.

NOTE: When the Radius Multiplier value is 2 in a view that has the same with and height then the view will be a circle. The greater the number, the corners will be less rounded.

NOTE: You may need to check Clip Subviews in the attributes inspector or set clipsToBounds to true programatically.

License

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

About

Library that contains a collection of IBDesignable UIKit views subclases with rounded corners

Resources

License

Stars

Watchers

Forks

Packages

No packages published