Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
/ UIViewInspectable Public archive

UIView extension for setting cornerRadius, borderWidth or borderColor in Interface Builder as IBInspectable

License

Notifications You must be signed in to change notification settings

apploft/UIViewInspectable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UIViewInspectable

UIView extension for setting cornerRadius, borderWidth or borderColor in Interface Builder as IBInspectable. Inspired by Nate Cook's NSHipster article "IBInspectable / IBDesignable".

Installation

Install via cocoapods by adding this to your Podfile:

pod "UIViewInspectable"

Or copy UIViewInspectable.swift to your project in case you need to support iOS 7.

Usage

Interface Builder now displays new inspectable attributes for every UIView and derived objects in the Attributes Inspector. Corner is Circle is shorthand for setting the corner radius to half of the view's height or width.

About

UIView extension for setting cornerRadius, borderWidth or borderColor in Interface Builder as IBInspectable

Resources

License

Stars

Watchers

Forks

Packages

No packages published