Skip to content

Commit a1785d7

Browse files
committed
调整 demo
1 parent 2d9d36c commit a1785d7

File tree

3 files changed

+5
-18
lines changed

3 files changed

+5
-18
lines changed

XYNav/Example/XYNav.xcodeproj/project.pbxproj

+2-6
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
/* Begin PBXFileReference section */
2727
0571DE3C40F21A4EEA65FC9E /* Pods_XYNav_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_XYNav_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
28-
0F53B9C6169D045ADF68FBBE /* Pods-XYNav_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-XYNav_Tests.release.xcconfig"; path = "Target Support Files/Pods-XYNav_Tests/Pods-XYNav_Tests.release.xcconfig"; sourceTree = "<group>"; };
2928
5A557C892868030EC288CA21 /* Pods_XYNav_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_XYNav_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
3029
607FACD01AFB9204008FA782 /* XYNav_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = XYNav_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
3130
607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
@@ -48,7 +47,6 @@
4847
B44F4A4F26F38F8E00AF21C2 /* YellowViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YellowViewController.swift; sourceTree = "<group>"; };
4948
B44F4A9526F4D73F00AF21C2 /* RedViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RedViewController.swift; sourceTree = "<group>"; };
5049
B4F5AD8526F9E01500CB611F /* WebViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebViewController.swift; sourceTree = "<group>"; };
51-
D46A4EB9E4723EC44E4A6285 /* Pods-XYNav_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-XYNav_Tests.debug.xcconfig"; path = "Target Support Files/Pods-XYNav_Tests/Pods-XYNav_Tests.debug.xcconfig"; sourceTree = "<group>"; };
5250
/* End PBXFileReference section */
5351

5452
/* Begin PBXFrameworksBuildPhase section */
@@ -68,8 +66,6 @@
6866
children = (
6967
62CDA8A8E1BC44307C7077BC /* Pods-XYNav_Example.debug.xcconfig */,
7068
8542DE2483C44918803A698B /* Pods-XYNav_Example.release.xcconfig */,
71-
D46A4EB9E4723EC44E4A6285 /* Pods-XYNav_Tests.debug.xcconfig */,
72-
0F53B9C6169D045ADF68FBBE /* Pods-XYNav_Tests.release.xcconfig */,
7369
);
7470
path = Pods;
7571
sourceTree = "<group>";
@@ -427,7 +423,7 @@
427423
DEVELOPMENT_TEAM = J9CJUEB6H8;
428424
EXCLUDED_ARCHS = "";
429425
INFOPLIST_FILE = XYNav/Info.plist;
430-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
426+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
431427
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
432428
MODULE_NAME = ExampleApp;
433429
ONLY_ACTIVE_ARCH = YES;
@@ -446,7 +442,7 @@
446442
DEVELOPMENT_TEAM = J9CJUEB6H8;
447443
EXCLUDED_ARCHS = "";
448444
INFOPLIST_FILE = XYNav/Info.plist;
449-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
445+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
450446
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
451447
MODULE_NAME = ExampleApp;
452448
ONLY_ACTIVE_ARCH = YES;

XYNav/Example/XYNav/TableViewController.swift

+1-11
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ extension TableViewController: UINavigationControllerDelegate, UIViewControllerA
9595
containerView.addSubview(fromVC.view)
9696
containerView.addSubview(toVC.view)
9797
containerView.addSubview(tmpView)
98-
99-
// containerView.setNeedsLayout()
100-
// containerView.layoutIfNeeded()
10198

10299
let ScreenW = UIScreen.main.bounds.width
103100
let ScreenH = UIScreen.main.bounds.height
@@ -124,15 +121,8 @@ extension TableViewController: UINavigationControllerDelegate, UIViewControllerA
124121
animation.toValue = endPath.cgPath
125122
animation.duration = self.transitionDuration(using: transitionContext)
126123
animation.timingFunction = CAMediaTimingFunction(name: .easeIn)
127-
maskLayer.add(animation, forKey: "path3")
124+
maskLayer.add(animation, forKey: "path")
128125
self.transitionContext = transitionContext
129126

130-
// toVC.view.alpha = 0
131-
// UIView.transition(with: containerView, duration: transitionDuration(using: transitionContext), options: .curveLinear) {
132-
// toVC.view.alpha = 1
133-
// } completion: { (finish) in
134-
// containerView.subviews.last?.removeFromSuperview()
135-
// transitionContext.completeTransition(true)
136-
// }
137127
}
138128
}

XYNav/Example/XYNav/WebViewController.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import UIKit
1010
import WebKit
1111

12-
class WebViewController: UIViewController {
12+
class WebViewController: BaseViewController {
1313

1414
var webView: WKWebView?
1515
var indicateLabel = UILabel()
@@ -42,6 +42,7 @@ class WebViewController: UIViewController {
4242
super.viewDidLoad()
4343

4444
// self.navigationController?.navigationBar.isTranslucent = false
45+
self.navigationController?.navigationBar.tintColor = UIColor.red
4546
self.navigationController?.isToolbarHidden = false
4647

4748
self.navigationItem.rightBarButtonItem = UIBarButtonItem(customView: spinnerView)

0 commit comments

Comments
 (0)