Skip to content

geoleo751/Swift_Round_View

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Swift_Round_View

4.0 MIT

Easy way to implement Round UIViews in your iOS Apps


Description

Change needed UIView attributes directly from the Identity Inspector

  • Border Color
  • Border Width
  • Corner Radius

Installation

Manual:

  • drag 'n drop SwiftRoundView.swift file into your project.

How to use

Storyboard:

  • Drag & drop a UIView to your Storyboard.
  • Change its Class to SwiftRoundView
  • Modify its values in the Attributes Inspector and watch your view change!!!!

Code:

  • Initialize it in your ViewController
    let roundView = SwiftRoundView(x: 0.0, y: 0.0, width: 100.0, height: 100.0, cornerRadius: 50.0, borderWidth: 10.0, borderColor: .orange)
    self.view.addSubview(roundView)

Authors

  • George Leonidas

License

This project is licensed under the MIT License - see the LICENSE.md file for details


About

Easy way to implement Round UIViews in your iOS Apps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages