Simply add VHViewObserver
object to xib/storyboard.
Connect view that is going to be hidden to view
property.
Connect constraints that should be activated when view is hidden to constraintsToActivate
property.
Connect constraints that should be deactivated when view is hidden to constraintsToDeactivate
property.
Create one VHViewObserver
for each view you want to be observed.
ViewHider is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ViewHider"
Roman Temchenko, [email protected]
ViewHider is available under the MIT license. See the LICENSE file for more info.