Skip to content

Commit f7d8e2a

Browse files
committed
Merge branch 'trailer_refresh_diy' into develop
2 parents 0026d94 + e1d1872 commit f7d8e2a

File tree

15 files changed

+339
-38
lines changed

15 files changed

+339
-38
lines changed

Example/LXFProtocolTool.xcodeproj/project.pbxproj

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; };
1616
607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; };
1717
BD1DA348254BBFF500C99438 /* LXFFullScreenableMultiVcController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD1DA347254BBFF500C99438 /* LXFFullScreenableMultiVcController.swift */; };
18-
BD1DA34A254BC06C00C99438 /* LXFFullScreenableOtherController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD1DA349254BC06C00C99438 /* LXFFullScreenableOtherController.swift */; };
18+
BD1DA34A254BC06C00C99438 /* LXFFullScreenableMultiVcOtherController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD1DA349254BC06C00C99438 /* LXFFullScreenableMultiVcOtherController.swift */; };
19+
BD9800B926E21A8300153E1A /* LXFFullScreenableOtherController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD9800B826E21A8300153E1A /* LXFFullScreenableOtherController.swift */; };
20+
BD98FF7E26E20F6F00153E1A /* LXFEquatableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD98FF7D26E20F6F00153E1A /* LXFEquatableViewController.swift */; };
1921
E54B540712C0EAEEC730D914 /* Pods_LXFProtocolTool_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9A401D1702387B816E326C87 /* Pods_LXFProtocolTool_Example.framework */; };
2022
FD1D4DE823063F2500C5E359 /* LXFFullSwitchView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD1D4DE723063F2400C5E359 /* LXFFullSwitchView.swift */; };
2123
FD1FCB2E21A5509800302EDD /* Configs.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD1FCB2D21A5509800302EDD /* Configs.swift */; };
@@ -37,6 +39,7 @@
3739
FD97E0DF214B5CFE0057C3C1 /* LXFFullScreenView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD97E0DE214B5CFE0057C3C1 /* LXFFullScreenView.swift */; };
3840
FD9E556A2261F88A00921471 /* LXFDIYHeader.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD9E55692261F88A00921471 /* LXFDIYHeader.swift */; };
3941
FD9E556C2261FD0B00921471 /* LXFDIYAutoFooter.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD9E556B2261FD0B00921471 /* LXFDIYAutoFooter.swift */; };
42+
FDA19600271F0F5E00226AF5 /* LXFDIYTrailer.swift in Sources */ = {isa = PBXBuildFile; fileRef = FDA195FF271F0F5E00226AF5 /* LXFDIYTrailer.swift */; };
4043
FDCE664226A2C6CC00B49BE3 /* LXFRefreshableTrailerController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FDCE664126A2C6CC00B49BE3 /* LXFRefreshableTrailerController.swift */; };
4144
FDCE664526A2C7B300B49BE3 /* LXFRefreshableTrailerCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = FDCE664426A2C7B300B49BE3 /* LXFRefreshableTrailerCell.swift */; };
4245
FDCE664B26A2D9D500B49BE3 /* LXFRefreshableTrailerReactor.swift in Sources */ = {isa = PBXBuildFile; fileRef = FDCE664A26A2D9D500B49BE3 /* LXFRefreshableTrailerReactor.swift */; };
@@ -73,7 +76,9 @@
7376
607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = "<group>"; };
7477
9A401D1702387B816E326C87 /* Pods_LXFProtocolTool_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_LXFProtocolTool_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
7578
BD1DA347254BBFF500C99438 /* LXFFullScreenableMultiVcController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LXFFullScreenableMultiVcController.swift; sourceTree = "<group>"; };
76-
BD1DA349254BC06C00C99438 /* LXFFullScreenableOtherController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LXFFullScreenableOtherController.swift; sourceTree = "<group>"; };
79+
BD1DA349254BC06C00C99438 /* LXFFullScreenableMultiVcOtherController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LXFFullScreenableMultiVcOtherController.swift; sourceTree = "<group>"; };
80+
BD9800B826E21A8300153E1A /* LXFFullScreenableOtherController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LXFFullScreenableOtherController.swift; sourceTree = "<group>"; };
81+
BD98FF7D26E20F6F00153E1A /* LXFEquatableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LXFEquatableViewController.swift; sourceTree = "<group>"; };
7782
C5ADB34366E5742B80AE43C5 /* Pods-LXFProtocolTool_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LXFProtocolTool_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-LXFProtocolTool_Tests/Pods-LXFProtocolTool_Tests.debug.xcconfig"; sourceTree = "<group>"; };
7883
D8E04661F15EF390557CC447 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; };
7984
FD1D4DE723063F2400C5E359 /* LXFFullSwitchView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LXFFullSwitchView.swift; sourceTree = "<group>"; };
@@ -96,6 +101,7 @@
96101
FD97E0DE214B5CFE0057C3C1 /* LXFFullScreenView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LXFFullScreenView.swift; sourceTree = "<group>"; };
97102
FD9E55692261F88A00921471 /* LXFDIYHeader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LXFDIYHeader.swift; sourceTree = "<group>"; };
98103
FD9E556B2261FD0B00921471 /* LXFDIYAutoFooter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LXFDIYAutoFooter.swift; sourceTree = "<group>"; };
104+
FDA195FF271F0F5E00226AF5 /* LXFDIYTrailer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LXFDIYTrailer.swift; sourceTree = "<group>"; };
99105
FDCE664126A2C6CC00B49BE3 /* LXFRefreshableTrailerController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LXFRefreshableTrailerController.swift; sourceTree = "<group>"; };
100106
FDCE664426A2C7B300B49BE3 /* LXFRefreshableTrailerCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LXFRefreshableTrailerCell.swift; sourceTree = "<group>"; };
101107
FDCE664A26A2D9D500B49BE3 /* LXFRefreshableTrailerReactor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LXFRefreshableTrailerReactor.swift; sourceTree = "<group>"; };
@@ -205,6 +211,22 @@
205211
name = "Podspec Metadata";
206212
sourceTree = "<group>";
207213
};
214+
BD9800B726E21A5100153E1A /* Other */ = {
215+
isa = PBXGroup;
216+
children = (
217+
BD9800B826E21A8300153E1A /* LXFFullScreenableOtherController.swift */,
218+
);
219+
path = Other;
220+
sourceTree = "<group>";
221+
};
222+
BD98FF7A26E20EFD00153E1A /* LXFEquatable */ = {
223+
isa = PBXGroup;
224+
children = (
225+
BD98FF7D26E20F6F00153E1A /* LXFEquatableViewController.swift */,
226+
);
227+
path = LXFEquatable;
228+
sourceTree = "<group>";
229+
};
208230
E7D1F034292A1D9C98B8E28D /* Pods */ = {
209231
isa = PBXGroup;
210232
children = (
@@ -237,6 +259,7 @@
237259
FD51529C21118F1F00A8591F /* Demo */ = {
238260
isa = PBXGroup;
239261
children = (
262+
BD98FF7A26E20EFD00153E1A /* LXFEquatable */,
240263
FDCE664C26A2E23300B49BE3 /* LXFRefreshable */,
241264
FD97E0D9214B48990057C3C1 /* LXFFullScreenable */,
242265
FD62EE662077D5E4002C1B53 /* LXFEmptyDataSetable */,
@@ -305,7 +328,7 @@
305328
isa = PBXGroup;
306329
children = (
307330
BD1DA347254BBFF500C99438 /* LXFFullScreenableMultiVcController.swift */,
308-
BD1DA349254BC06C00C99438 /* LXFFullScreenableOtherController.swift */,
331+
BD1DA349254BC06C00C99438 /* LXFFullScreenableMultiVcOtherController.swift */,
309332
);
310333
path = MultiVc;
311334
sourceTree = "<group>";
@@ -343,6 +366,7 @@
343366
FD75175326D0AB27000B0E2B /* ViewAuto */,
344367
FD75175126D0AAF3000B0E2B /* MultiVc */,
345368
FD75175626D0C665000B0E2B /* Nest */,
369+
BD9800B726E21A5100153E1A /* Other */,
346370
);
347371
path = LXFFullScreenable;
348372
sourceTree = "<group>";
@@ -356,6 +380,14 @@
356380
path = DIY;
357381
sourceTree = "<group>";
358382
};
383+
FDA195FE271F0F4E00226AF5 /* DIY */ = {
384+
isa = PBXGroup;
385+
children = (
386+
FDA195FF271F0F5E00226AF5 /* LXFDIYTrailer.swift */,
387+
);
388+
path = DIY;
389+
sourceTree = "<group>";
390+
};
359391
FDCE664026A2C68900B49BE3 /* LXFRefreshable-Trailer */ = {
360392
isa = PBXGroup;
361393
children = (
@@ -369,6 +401,7 @@
369401
FDCE664326A2C7A000B49BE3 /* View */ = {
370402
isa = PBXGroup;
371403
children = (
404+
FDA195FE271F0F4E00226AF5 /* DIY */,
372405
FDCE664426A2C7B300B49BE3 /* LXFRefreshableTrailerCell.swift */,
373406
);
374407
path = View;
@@ -589,6 +622,8 @@
589622
FD97E0DF214B5CFE0057C3C1 /* LXFFullScreenView.swift in Sources */,
590623
FD5152A82111952F00A8591F /* LXFRefreshableSection.swift in Sources */,
591624
FD9E556A2261F88A00921471 /* LXFDIYHeader.swift in Sources */,
625+
FDA19600271F0F5E00226AF5 /* LXFDIYTrailer.swift in Sources */,
626+
BD98FF7E26E20F6F00153E1A /* LXFEquatableViewController.swift in Sources */,
592627
607FACD81AFB9204008FA782 /* ViewController.swift in Sources */,
593628
FD5152AF21119A7800A8591F /* LXFRefreshableCell.swift in Sources */,
594629
FD62EE682077D620002C1B53 /* LXFEmptyDemoController.swift in Sources */,
@@ -599,7 +634,7 @@
599634
FD5152A22111909C00A8591F /* LXFRefreshableController.swift in Sources */,
600635
FD1D4DE823063F2500C5E359 /* LXFFullSwitchView.swift in Sources */,
601636
FDCE664226A2C6CC00B49BE3 /* LXFRefreshableTrailerController.swift in Sources */,
602-
BD1DA34A254BC06C00C99438 /* LXFFullScreenableOtherController.swift in Sources */,
637+
BD1DA34A254BC06C00C99438 /* LXFFullScreenableMultiVcOtherController.swift in Sources */,
603638
FD97E0DD214B4A030057C3C1 /* LXFFullScreenableController.swift in Sources */,
604639
FD5152B121119A8000A8591F /* LXFRefreshableCellReactor.swift in Sources */,
605640
FDCE664526A2C7B300B49BE3 /* LXFRefreshableTrailerCell.swift in Sources */,
@@ -610,6 +645,7 @@
610645
BD1DA348254BBFF500C99438 /* LXFFullScreenableMultiVcController.swift in Sources */,
611646
FD5152A62111919700A8591F /* LXFRefreshableReactor.swift in Sources */,
612647
FDCE664B26A2D9D500B49BE3 /* LXFRefreshableTrailerReactor.swift in Sources */,
648+
BD9800B926E21A8300153E1A /* LXFFullScreenableOtherController.swift in Sources */,
613649
FD75175526D0AB4D000B0E2B /* LXFFullScreenableViewAutoController.swift in Sources */,
614650
FD62EE632077CD82002C1B53 /* LXFXibTestView.swift in Sources */,
615651
FD1FCB2E21A5509800302EDD /* Configs.swift in Sources */,
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
//
2+
// LXFEquatableViewController.swift
3+
// LXFProtocolTool_Example
4+
//
5+
// Created by LinXunFeng on 2021/9/3.
6+
// Copyright © 2021 CocoaPods. All rights reserved.
7+
//
8+
9+
import UIKit
10+
import LXFProtocolTool
11+
12+
class LXFEquatableViewController: UIViewController {
13+
14+
override func viewDidLoad() {
15+
super.viewDidLoad()
16+
17+
self.view.backgroundColor = .white
18+
19+
let bcc = BCC()
20+
print("bcc -- \(bcc.lxf.randomId) -- \(bcc)")
21+
print("bcc -- \(bcc.lxf.randomId) -- \(bcc)")
22+
bcc.lxf.updateRandomId()
23+
print("bcc -- \(bcc.lxf.randomId) -- \(bcc)")
24+
print("bcc -- \(bcc.lxf.randomId) -- \(bcc)")
25+
26+
27+
let bdd = BDD()
28+
print("bdd -- \(bdd.lxf.randomId) -- \(bdd)")
29+
print("bdd -- \(bdd.lxf.randomId) -- \(bdd)")
30+
bdd.lxf.updateRandomId()
31+
print("bdd -- \(bdd.lxf.randomId) -- \(bdd)")
32+
print("bdd -- \(bdd.lxf.randomId) -- \(bdd)")
33+
34+
let bee = BEE()
35+
print("bee -- \(bee.lxf.randomId) -- \(bee)")
36+
print("bee -- \(bee.lxf.randomId) -- \(bee)")
37+
bee.lxf.updateRandomId()
38+
print("bee -- \(bee.lxf.randomId) -- \(bee)")
39+
print("bee -- \(bee.lxf.randomId) -- \(bee)")
40+
}
41+
}
42+
43+
44+
struct BCC: LXFEquatable {
45+
var lxf_randomId: String = Self.generateRandomId()
46+
}
47+
48+
class BDD: LXFEquatable {
49+
50+
}
51+
52+
class BEE: NSObject, LXFEquatable {
53+
54+
}

Example/LXFProtocolTool/Demo/LXFFullScreenable/MultiVc/LXFFullScreenableMultiVcController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class LXFFullScreenableMultiVcController: UIViewController, FullScreenable {
1414
fileprivate let contentView = UIView().then {
1515
$0.backgroundColor = .orange
1616
}
17-
fileprivate let otherVc = LXFFullScreenableOtherController()
17+
fileprivate let otherVc = LXFFullScreenableMultiVcOtherController()
1818

1919
override func viewDidLoad() {
2020
super.viewDidLoad()

Example/LXFProtocolTool/Demo/LXFFullScreenable/MultiVc/LXFFullScreenableOtherController.swift renamed to Example/LXFProtocolTool/Demo/LXFFullScreenable/MultiVc/LXFFullScreenableMultiVcOtherController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// LXFFullScreenableOtherController.swift
2+
// LXFFullScreenableMultiVcOtherController.swift
33
// LXFProtocolTool_Example
44
//
55
// Created by LinXunFeng on 2020/10/30.
@@ -8,7 +8,7 @@
88

99
import UIKit
1010

11-
class LXFFullScreenableOtherController: UIViewController {
11+
class LXFFullScreenableMultiVcOtherController: UIViewController {
1212

1313
fileprivate let redView = UIView().then {
1414
$0.backgroundColor = .red
@@ -17,7 +17,7 @@ class LXFFullScreenableOtherController: UIViewController {
1717
override func viewDidLoad() {
1818
super.viewDidLoad()
1919

20-
self.view.backgroundColor = .black.withAlphaComponent(0.2)
20+
self.view.backgroundColor = UIColor.black.withAlphaComponent(0.2)
2121

2222
self.view.addSubview(redView)
2323
self.redView.frame = CGRect(x: 0, y: 0, width: 50, height: 50)

Example/LXFProtocolTool/Demo/LXFFullScreenable/Nest/LXFFullScreenableNestController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class LXFFullScreenableNestController: UIViewController, FullScreenable {
1414
fileprivate let contentView = UIView().then {
1515
$0.backgroundColor = .orange
1616
}
17-
fileprivate let otherVc = LXFFullScreenableOtherController()
17+
fileprivate let otherVc = LXFFullScreenableMultiVcOtherController()
1818

1919
override func viewDidLoad() {
2020
super.viewDidLoad()
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
//
2+
// LXFFullScreenableOtherController.swift
3+
// LXFProtocolTool_Example
4+
//
5+
// Created by LinXunFeng on 2021/9/3.
6+
// Copyright © 2021 CocoaPods. All rights reserved.
7+
//
8+
9+
import Foundation
10+
import LXFProtocolTool
11+
12+
class LXFFullScreenableOtherController: UIViewController, FullScreenable {
13+
14+
fileprivate let tipLabel = UILabel().then {
15+
$0.text = "可以跟随自由设备进行屏幕旋转,也可以点击按钮进行旋转"
16+
$0.numberOfLines = 0
17+
}
18+
19+
fileprivate let rotateBtn = UIButton().then {
20+
$0.backgroundColor = .orange
21+
$0.setTitle("切换方向", for: .normal)
22+
}
23+
24+
override func viewDidLoad() {
25+
super.viewDidLoad()
26+
27+
initUI()
28+
}
29+
30+
override func viewWillAppear(_ animated: Bool) {
31+
super.viewWillAppear(animated)
32+
33+
// 配置支持的方向
34+
self.lxf.setupFullScreenConfig(with: .init(supportInterfaceOrientation: .allButUpsideDown))
35+
}
36+
37+
override func viewWillDisappear(_ animated: Bool) {
38+
super.viewWillDisappear(animated)
39+
40+
// 还原为默认配置
41+
self.lxf.setupFullScreenConfig(with: FullScreenableConfig.defaultConfig())
42+
}
43+
44+
deinit {
45+
print("deinit -- LXFFullScreenableOtherController")
46+
}
47+
48+
fileprivate func initUI() {
49+
self.view.backgroundColor = .white
50+
self.view.addSubview(self.tipLabel)
51+
self.view.addSubview(self.rotateBtn)
52+
self.tipLabel.frame = CGRect(x: 10, y: 100, width: 355, height: 60)
53+
self.rotateBtn.frame = CGRect(x: 50, y: 180, width: 100, height: 50)
54+
55+
self.rotateBtn.addTarget(self, action: #selector(rotateBtnClick), for: .touchUpInside)
56+
}
57+
58+
@objc func rotateBtnClick() {
59+
UIApplication.shared.lxf.rotate(with: UIApplication.shared.statusBarOrientation.isPortrait ? .landscapeRight : .portrait)
60+
}
61+
}
62+

Example/LXFProtocolTool/Demo/LXFRefreshable/LXFRefreshable-Trailer/LXFRefreshableTrailerController.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ class LXFRefreshableTrailerController: UIViewController, View, Refreshable {
8989
.disposed(by: disposeBag)
9090

9191
// self.rx.trailerRefresh(reactor, self.listView, trailerConfig: RefreshTrailerConfig.normal)
92+
// self.rx.trailerRefresh(reactor, self.listView, trailerConfig: RefreshTrailerConfig.diy)
9293
self.rx.trailerRefresh(reactor, self.listView)
9394
.map { .fetchList(false) }
9495
.bind(to: reactor.action)
@@ -107,4 +108,6 @@ struct RefreshTrailerConfig {
107108
stateColor: .systemBlue,
108109
hideArrowView: true
109110
)
111+
112+
static let diy = RefreshableTrailerConfig(type: .diy(type: LXFDIYTrailer.self))
110113
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
//
2+
// LXFDIYTrailer.swift
3+
// LXFProtocolTool_Example
4+
//
5+
// Created by LinXunFeng on 2021/10/19.
6+
// Copyright © 2021 CocoaPods. All rights reserved.
7+
//
8+
9+
import Foundation
10+
import MJRefresh
11+
import UIKit
12+
13+
class LXFDIYTrailer: MJRefreshTrailer {
14+
15+
lazy var colorView: UIView = {
16+
let v = UIView()
17+
v.backgroundColor = .red
18+
return v
19+
}()
20+
21+
override var state: MJRefreshState {
22+
didSet {
23+
switch state {
24+
case .idle:
25+
self.colorView.backgroundColor = .red
26+
case .pulling:
27+
self.colorView.backgroundColor = .green
28+
case .refreshing:
29+
self.colorView.backgroundColor = .yellow
30+
default:
31+
break
32+
}
33+
}
34+
}
35+
36+
override func prepare() {
37+
super.prepare()
38+
39+
self.addSubview(self.colorView)
40+
}
41+
42+
override func placeSubviews() {
43+
super.placeSubviews()
44+
45+
// 设置宽度
46+
self.mj_w = 100
47+
self.colorView.frame = CGRect(x: 0, y: 0, width: 90, height: 50)
48+
}
49+
}
50+

Example/LXFProtocolTool/ViewController.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ enum LXFListOptionType: String {
1919
case fullScreenableViewAuto = "fullScreenable-子视图全屏"
2020
case fullScreenableMultiVc = "FullScreenable-多个控制器"
2121
case fullScreenableNest = "FullScreenable-嵌套"
22+
case fullScreenableOther = "FullScreenable-其它功能"
23+
case equatable = "LXFEquatable"
2224
}
2325

2426
class ViewController: UIViewController, FullScreenable {
@@ -32,7 +34,9 @@ class ViewController: UIViewController, FullScreenable {
3234
.fullScreenable,
3335
.fullScreenableViewAuto,
3436
.fullScreenableMultiVc,
35-
.fullScreenableNest
37+
.fullScreenableNest,
38+
.fullScreenableOther,
39+
.equatable
3640
]
3741

3842
override func viewDidLoad() {
@@ -104,6 +108,10 @@ extension ViewController: UITableViewDataSource, UITableViewDelegate {
104108
vc = LXFFullScreenableMultiVcController()
105109
case .fullScreenableNest:
106110
vc = LXFFullScreenableNestController()
111+
case .fullScreenableOther:
112+
vc = LXFFullScreenableOtherController()
113+
case .equatable:
114+
vc = LXFEquatableViewController()
107115
}
108116

109117
if vc == nil { return }

0 commit comments

Comments
 (0)