Skip to content

An extension to add separator views to UIStackView, written in Swift 4.0

License

Notifications You must be signed in to change notification settings

barisatamer/StackViewSeparator

Repository files navigation

StackViewSeparator

CI Status Version License Platform

demo

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

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

pod 'StackViewSeparator'

Storyboard

Thickness, Corner Radius, Percent, Color can be set

Code

import StackViewSeparator

let stackView = UIStackView(frame: CGRect(x: 0, y: 0, width: 100, height: 100))
...
...
stackView.separatorColor = .blue
stackView.separatorThickness = 3
stackView.separatorCornerRadius = 1
stackView.separatorPercent = 0.7 // 0...1 

Author

Baris Atamer, brsatamer@gmail.com

License

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

About

An extension to add separator views to UIStackView, written in Swift 4.0

Resources

License

Stars

Watchers

Forks

Packages

No packages published