Skip to content

Latest commit

 

History

History
59 lines (36 loc) · 1.17 KB

File metadata and controls

59 lines (36 loc) · 1.17 KB

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