TestsTested | β |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Dec 2016 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | β |
Maintained by Calvin Huang.
When hidding the view, we expect the hidden view will not leave blank space.
For example there are two views =>
Even view donβt draw, auto layout will retain their frame.
CHRealHideUIView help you hide views and will not leave blank space.
You can hide and show views very easy, just hide(view)
or show(view)
.
class ViewController: UIViewController {
@IBOutlet weak var view: UIView!
@IBAction func toggleHideAndShowButtonClicked(_: AnyObject) {
if (view.hidden) {
show(view)
} else {
hide(view)
}
}
}
Copyright Β© Calvin Huang. This software is licensed under the MIT License.