File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,17 @@ extension ViewController {
57
57
tableView. dataSource = self
58
58
tableView. delegate = self
59
59
self . view. addSubview ( tableView)
60
+
61
+ // 适配iOS15导航栏
62
+ if #available( iOS 15 . 0 , * ) {
63
+ let navBarAppearance = UINavigationBarAppearance ( )
64
+ navBarAppearance. backgroundColor = . white // 背景色
65
+ navBarAppearance. titleTextAttributes = [
66
+ . foregroundColor: UIColor . black // 字体颜色
67
+ ]
68
+ self . navigationController? . navigationBar. standardAppearance = navBarAppearance
69
+ self . navigationController? . navigationBar. scrollEdgeAppearance = navBarAppearance
70
+ }
60
71
}
61
72
}
62
73
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ LXFProtocolTool是使用Swift中的协议来实现多种方便、实用的工具
34
34
s . subspec 'Refreshable' do |t |
35
35
t . source_files = 'LXFProtocolTool/Classes/Refreshable/**/*.{swift}'
36
36
t . dependency 'MJRefresh' , '>= 3.5.0'
37
- t . dependency 'RxSwift' , '~> 5 '
38
- t . dependency 'RxRelay' , '~> 5 '
37
+ t . dependency 'RxSwift' , '>= 6 '
38
+ t . dependency 'RxRelay' , '>= 6 '
39
39
t . dependency "LXFProtocolTool/AssociatedObjectStore"
40
40
t . dependency "LXFProtocolTool/Base"
41
41
end
@@ -50,7 +50,7 @@ LXFProtocolTool是使用Swift中的协议来实现多种方便、实用的工具
50
50
51
51
s . subspec 'RxEmptyDataSetable' do |t |
52
52
t . source_files = 'LXFProtocolTool/Classes/RxEmptyDataSetable/**/*.{swift}'
53
- t . dependency 'RxCocoa' , '~> 5 '
53
+ t . dependency 'RxCocoa' , '>= 6 '
54
54
t . dependency "LXFProtocolTool/EmptyDataSetable"
55
55
end
56
56
You can’t perform that action at this time.
0 commit comments