Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UIView.animate(withDuration: 0.2, delay: 0.0,
- usingSpringWithDamping: 0.0,
- initialSpringVelocity: 0.0,
- options: [],
- animations: {
- var frame = (self.view.superview?.bounds)!
- self.view.superview?.isHidden = false
- if(self.isShown){
- self.view.superview?.isHidden = true
- frame.origin.x -= frame.size.width*3
- }
- self.view.frame = frame
- }, completion:{(success) in
- self.isShown = !self.isShown
- TheSettingsManager.isChannelViewActive = self.isShown
- TheAppController.homeVC.checkImageChannelsButton()
- if(self.isShown){
- self.leftViewWidthConstraint.constant = self.LEFT_VIEW_MAX_WIDTH
- self.searchBarHeightLayoutConstraint.constant = self.SEARCH_BAR_HEIGHT
- }
- self.backButton.setImage(UIImage(named:"back_wht"), for: .normal)
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement