TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Apr 2018 |
SPMSupports SPM | ✗ |
Maintained by Teruto Yamasaki.
GoneVisible is a UIView extension that uses AutoLayout to add “gone” state like Android.
You can easily change the size constraint constant of UIView to 0 without adding IBOutlet property of size constraint. GoneVisible supports iOS and is written in Swift.
Simply drag UIView+GoneVisible.swift
into your project.
・Gone.
view.gone()
・Visible.
view.visible()
・When setting to Gone, set the space constraint constant together to 0.
view.gone(spaces: [.trailing])
・With “gone” you can specify whether it is vertical or horizontal. It is useful when animating.
view.gone(axis: .vertical)
Teruto Yamasaki, [email protected]
The MIT License (MIT)
See the LICENSE file for more info.