File tree Expand file tree Collapse file tree 6 files changed +19
-6
lines changed
Expand file tree Collapse file tree 6 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 242242 TargetAttributes = {
243243 50B9664D1A25E40E00208F2E = {
244244 CreatedOnToolsVersion = 6.1;
245+ LastSwiftMigration = 0800;
245246 };
246247 };
247248 };
404405 INFOPLIST_FILE = MenuExample/Info.plist;
405406 LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
406407 PRODUCT_NAME = MenuExample;
408+ SWIFT_VERSION = 2.3;
407409 };
408410 name = Debug;
409411 };
415417 INFOPLIST_FILE = MenuExample/Info.plist;
416418 LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
417419 PRODUCT_NAME = MenuExample;
420+ SWIFT_VERSION = 2.3;
418421 };
419422 name = Release;
420423 };
Original file line number Diff line number Diff line change 66
77import QuartzCore
88
9- class AnimationDelegate {
9+ class AnimationDelegate : NSObject , CAAnimationDelegate {
1010 private let completion : ( ) -> Void
1111
1212 init ( completion: ( ) -> Void ) {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ extension CircularRevealTransitionAnimator: UIViewControllerAnimatedTransitionin
2323 let target = context. viewForKey ( UITransitionContextToViewKey) !
2424
2525 target. frame = frame
26- context. containerView ( ) ! . insertSubview ( target, aboveSubview: source)
26+ context. containerView ( ) . insertSubview ( target, aboveSubview: source)
2727
2828 let center = target. convertPoint ( self . center, fromView: nil )
2929 let radius : CGFloat = {
@@ -45,4 +45,4 @@ extension CircularRevealTransitionAnimator: UIViewControllerAnimatedTransitionin
4545 func transitionDuration( transitionContext: UIViewControllerContextTransitioning ? ) -> NSTimeInterval {
4646 return duration
4747 }
48- }
48+ }
Original file line number Diff line number Diff line change 114114 TargetAttributes = {
115115 50B42EFF1A6A879C00B05352 = {
116116 CreatedOnToolsVersion = 6.1.1;
117+ LastSwiftMigration = 0800;
117118 };
118119 };
119120 };
257258 LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
258259 PRODUCT_NAME = "$(TARGET_NAME)";
259260 SKIP_INSTALL = YES;
261+ SWIFT_VERSION = 2.3;
260262 };
261263 name = Debug;
262264 };
274276 LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
275277 PRODUCT_NAME = "$(TARGET_NAME)";
276278 SKIP_INSTALL = YES;
279+ SWIFT_VERSION = 2.3;
277280 };
278281 name = Release;
279282 };
Original file line number Diff line number Diff line change @@ -36,15 +36,15 @@ public class MenuTransitionAnimator: NSObject {
3636 view. translatesAutoresizingMaskIntoConstraints = true
3737
3838 if shouldPassEventsOutsideMenu == true {
39- context. containerView ( ) ! . frame = view. frame
39+ context. containerView ( ) . frame = view. frame
4040 } else {
4141 let tapButton = UIButton ( frame: host. view. frame)
4242 tapButton. backgroundColor = UIColor . clearColor ( )
4343 tapButton. addTarget ( self , action: #selector( menuTappedOutside) , forControlEvents: . TouchUpInside)
44- context. containerView ( ) ! . addSubview ( tapButton)
44+ context. containerView ( ) . addSubview ( tapButton)
4545 }
4646
47- context. containerView ( ) ! . addSubview ( view)
47+ context. containerView ( ) . addSubview ( view)
4848
4949 animateMenu ( menu as! Menu , startAngle: angle, endAngle: 0 ) {
5050 context. completeTransition ( true )
You can’t perform that action at this time.
0 commit comments