Skip to content

Commit 57c6348

Browse files
committed
Merge branch 'develop'
2 parents 1fbb62d + 0026d94 commit 57c6348

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

Example/LXFProtocolTool/ViewController.swift

+11
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,17 @@ extension ViewController {
5757
tableView.dataSource = self
5858
tableView.delegate = self
5959
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+
}
6071
}
6172
}
6273

LXFProtocolTool.podspec

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ LXFProtocolTool是使用Swift中的协议来实现多种方便、实用的工具
3434
s.subspec 'Refreshable' do |t|
3535
t.source_files = 'LXFProtocolTool/Classes/Refreshable/**/*.{swift}'
3636
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'
3939
t.dependency "LXFProtocolTool/AssociatedObjectStore"
4040
t.dependency "LXFProtocolTool/Base"
4141
end
@@ -50,7 +50,7 @@ LXFProtocolTool是使用Swift中的协议来实现多种方便、实用的工具
5050

5151
s.subspec 'RxEmptyDataSetable' do |t|
5252
t.source_files = 'LXFProtocolTool/Classes/RxEmptyDataSetable/**/*.{swift}'
53-
t.dependency 'RxCocoa', '~> 5'
53+
t.dependency 'RxCocoa', '>= 6'
5454
t.dependency "LXFProtocolTool/EmptyDataSetable"
5555
end
5656

0 commit comments

Comments
 (0)