Latest 1.0.2
Homepage https://github.com/KogiMobileSAS/RoundedViews
License MIT
Platforms ios 8.0

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.

Latest podspec

{
    "name": "RoundedViews",
    "version": "1.0.2",
    "license": "MIT",
    "summary": "Library that contains a collection of IBDesignable UIKit views subclases with rounded corners",
    "homepage": "https://github.com/KogiMobileSAS/RoundedViews",
    "social_media_url": "https://twitter.com/kogimobile",
    "authors": "Kogi Mobile",
    "source": {
        "git": "https://github.com/KogiMobileSAS/RoundedViews.git",
        "tag": "1.0.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "Source/*.swift"
}

Pin It on Pinterest

Share This