Commit c7200fdf by Daniel Dahan

development: removed interactive MotionTransitions for initial release

parent ac027518
......@@ -30,7 +30,7 @@
import UIKit
open class BottomNavigationController: UITabBarController, UITabBarControllerDelegate {
open class BottomNavigationController: UITabBarController {
/**
An initializer that initializes the object with a NSCoder object.
- Parameter aDecoder: A NSCoder instance.
......@@ -110,15 +110,10 @@ open class BottomNavigationController: UITabBarController, UITabBarControllerDel
view.clipsToBounds = true
view.contentScaleFactor = Screen.scale
view.backgroundColor = .white
delegate = self
// delegate = self
prepareTabBar()
}
/// Handles transitions when tabBarItems are pressed.
open func tabBarController(_ tabBarController: UITabBarController, animationControllerForTransitionFrom fromVC: UIViewController, to toVC: UIViewController) -> UIViewControllerAnimatedTransitioning? {
return nil
}
/// Prepares the tabBar.
private func prepareTabBar() {
tabBar.heightPreset = .normal
......
......@@ -58,7 +58,7 @@ extension UIViewController {
}
}
open class CollectionViewController: MotionTransitionViewController {
open class CollectionViewController: UIViewController {
/// A reference to a Reminder.
open let collectionView = CollectionView()
......@@ -81,8 +81,7 @@ open class CollectionViewController: MotionTransitionViewController {
The super.prepareView method should always be called immediately
when subclassing.
*/
open override func prepare() {
super.prepare()
open func prepare() {
view.clipsToBounds = true
view.backgroundColor = .white
view.contentScaleFactor = Screen.scale
......
......@@ -280,7 +280,7 @@ extension CALayer {
a.append(Motion.translateY(to: to))
case let .translateZ(to):
a.append(Motion.translateZ(to: to))
case let .x(_), .y(_), .point(_, _):
case .x(_), .y(_), .point(_, _):
let position = Motion.position(to: CGPoint(x: px, y: py))
a.append(position)
case let .position(x, y):
......@@ -295,7 +295,7 @@ extension CALayer {
let zPosition = Motion.zPosition(index: index)
zPosition.fromValue = s.value(forKey: MotionAnimationKeyPath.zPosition.rawValue) ?? NSNumber(integerLiteral: 0)
a.append(zPosition)
case let .width(_), .height(_), .size(_, _):
case .width(_), .height(_), .size(_, _):
a.append(Motion.size(CGSize(width: w, height: h)))
default:break
}
......
......@@ -121,7 +121,7 @@ open class NavigationController: UINavigationController {
open func prepare() {
navigationBar.heightPreset = .normal
navigationBar.width = view.width
delegate = transitionDelegate
// delegate = self
view.clipsToBounds = true
view.backgroundColor = .white
view.contentScaleFactor = Screen.scale
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment