Slide 55
Slide 55 text
А теперь всё вместе3
if nextUIProps.bottomItemsHidden {
addAnimation(view: seekerView, keyPath: "position") {
self.seekerView.isHidden = true
self.seekerView.alpha = 0
setupSeekerView()
}
seekerToSafeAreaConstraint.isActive = false
bottomItemsSeekerConstraint.isActive = true
bottomItemsVisibleConstraint.isActive = false
bottomItemsInvisibleConstraint.isActive = false
bottomItemsAndSeekerAnimatedConstraint.isActive = true
} else {
addAnimation(view: seekerView, keyPath: "opacity", onComplete: setupSeekerView)
if currentUIProps.bottomItemsHidden {
addAnimation(view: seekerView, keyPath: "position", onComplete: setupSeekerView)
}
bottomItemsAndSeekerAnimatedConstraint.isActive = false
seekerToSafeAreaConstraint.isActive = false
bottomItemsSeekerConstraint.isActive = true
seekerView.alpha = 0
}
3 https://github.com/aol-public/OneMobileSDK-controls-ios/blob/master/PlayerControls/
sources/DefaultControlsViewController.swift
by @DAlooG // 2018 @ Mobius conf 55