Skip to content

gtokman/Viewtilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Viewtilities

Viewtilities is a collection of UIView utilities. It provides useful extensions that will speed up your workflow when building your UI.

Version License Platform

Contents

View Examples

Round Corners

myView.add(
    .cornerRadius(.custom(corners: [.all], radius: 10))
)

round

Shadow

myView.add(
    .shadow(.custom(offset: .init(width: 0, height: 2), radius: 5, opacity: 0.25, color: .black))
)

shadow

Border

myView.add(
    .border(.custom(color: .black, width: 1))
)

border

Chaining

myView.add(
    .cornerRadius(.custom(corners: [.all], radius: 10)),
    .shadow(.custom(offset: .init(width: 0, height: 2), radius: 5, opacity: 0.25, color: .black)),
    .border(.default)
)

all

View Controller Examples

Coming soon

Custom View Examples

BaseView - Coming Soon

ModifiableView - Coming Soon

Installation

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

pod 'Viewtilities'

Then run pod install.

Don't forget to import Viewtilities in every file you'd like to use Viewtilities.

Author

Twitter Follow

Twitter Follow

License

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