Commit c8d3d142 by Daniel Dahan

moved Material 3 to iOS 10+

parent 15d33bde
...@@ -1253,7 +1253,7 @@ ...@@ -1253,7 +1253,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES; GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0; IPHONEOS_DEPLOYMENT_TARGET = 10.0;
MACOSX_DEPLOYMENT_TARGET = 10.9; MACOSX_DEPLOYMENT_TARGET = 10.9;
MTL_ENABLE_DEBUG_INFO = YES; MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES; ONLY_ACTIVE_ARCH = YES;
...@@ -1307,7 +1307,7 @@ ...@@ -1307,7 +1307,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES; GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0; IPHONEOS_DEPLOYMENT_TARGET = 10.0;
MACOSX_DEPLOYMENT_TARGET = 10.9; MACOSX_DEPLOYMENT_TARGET = 10.9;
MTL_ENABLE_DEBUG_INFO = NO; MTL_ENABLE_DEBUG_INFO = NO;
PRODUCT_NAME = Material; PRODUCT_NAME = Material;
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
import UIKit import UIKit
@available(iOS 10, tvOS 10, *)
internal class MotionViewPropertyViewContext: MotionAnimatorViewContext { internal class MotionViewPropertyViewContext: MotionAnimatorViewContext {
/// A reference to the UIViewPropertyAnimator. /// A reference to the UIViewPropertyAnimator.
fileprivate var viewPropertyAnimator: UIViewPropertyAnimator? fileprivate var viewPropertyAnimator: UIViewPropertyAnimator?
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
import UIKit import UIKit
@available(iOS 10, *)
extension CALayer: CAAnimationDelegate {} extension CALayer: CAAnimationDelegate {}
internal extension CALayer { internal extension CALayer {
......
...@@ -370,7 +370,6 @@ public extension MotionAnimation { ...@@ -370,7 +370,6 @@ public extension MotionAnimation {
- Parameter damping: A CGFloat. - Parameter damping: A CGFloat.
- Returns: A MotionAnimation. - Returns: A MotionAnimation.
*/ */
@available(iOS 9, *)
static func spring(stiffness: CGFloat, damping: CGFloat) -> MotionAnimation { static func spring(stiffness: CGFloat, damping: CGFloat) -> MotionAnimation {
return MotionAnimation { return MotionAnimation {
$0.spring = (stiffness, damping) $0.spring = (stiffness, damping)
......
...@@ -81,7 +81,6 @@ fileprivate extension MotionCAAnimation { ...@@ -81,7 +81,6 @@ fileprivate extension MotionCAAnimation {
} }
} }
@available(iOS 9.0, *)
internal extension MotionCAAnimation { internal extension MotionCAAnimation {
/** /**
Converts a CABasicAnimation to a CASpringAnimation. Converts a CABasicAnimation to a CASpringAnimation.
......
...@@ -500,10 +500,7 @@ fileprivate extension MotionController { ...@@ -500,10 +500,7 @@ fileprivate extension MotionController {
/// Prepares the animators. /// Prepares the animators.
func prepareAnimators() { func prepareAnimators() {
animators.append(MotionTransitionAnimator<MotionCoreAnimationViewContext>()) animators.append(MotionTransitionAnimator<MotionCoreAnimationViewContext>())
animators.append(MotionTransitionAnimator<MotionViewPropertyViewContext>())
if #available(iOS 10, tvOS 10, *) {
animators.append(MotionTransitionAnimator<MotionViewPropertyViewContext>())
}
for v in animators { for v in animators {
v.context = context v.context = context
......
...@@ -421,7 +421,6 @@ public extension MotionTransition { ...@@ -421,7 +421,6 @@ public extension MotionTransition {
- Parameter damping: A CGFloat. - Parameter damping: A CGFloat.
- Returns: A MotionTransition. - Returns: A MotionTransition.
*/ */
@available(iOS 9, *)
static func spring(stiffness: CGFloat, damping: CGFloat) -> MotionTransition { static func spring(stiffness: CGFloat, damping: CGFloat) -> MotionTransition {
return MotionTransition { return MotionTransition {
$0.spring = (stiffness, damping) $0.spring = (stiffness, damping)
......
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