Latest 0.1.4
License MIT
Platforms ios 7.0, requires ARC

Build Status
An UIView category for rounded views !
Create rounded or circular views that will keep their look upon resizing.


With CocoaPods

Add this to your Podfile:

pod 'UIView-Rounded'

Run a pod install and import the header where you need it:

#import <UIView+Rounded.h>


Drop UIView+Rounded.h and .m in your project, then

#import "UIView+Rounded.h"


You can use this category in two ways:

Create a rounded view with a custom border radius

UIView *myRoundedView = [[UIView alloc] init];  
[myRoundedView roundWithCornerRadius:0.5f andBorderWidth:2.0f andBorderColor:[UIColor whiteColor]];

Create a perfect circle view

UIView *myRoundedView = [[UIView alloc] init]; 
[myRoundView circleWithBorderWidth:2.0f andBorderColor:[UIColor whiteColor]];  
// If the view doesn't have a 1:1 ratio, the result will not look good.

// You are responsible to create and remove the following observer
// if you want the circle view to stay a circle on resizing
[myRoundView addObserver:myRoundView forKeyPath:@"bounds" options:0 context:nil];
[myRoundView removeObserver:myRoundView forKeyPath:@"bounds"];

Latest podspec

    "name": "UIView+Rounded",
    "version": "0.1.4",
    "summary": "UIView category that adds a rounded effect to its bounds.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Quentin Hayot": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.4"
    "platforms": {
        "ios": "7.0"
    "source_files": [
    "requires_arc": true

Pin It on Pinterest

Share This