Commit 55a39d93 authored by Steven杜宇's avatar Steven杜宇

// 待完善清单

parent 810af019
......@@ -378,7 +378,8 @@ extension YHMyFileListViewController : UITableViewDelegate, UITableViewDataSourc
func scrollViewDidScroll(_ scrollView: UIScrollView) {
printLog("offset: \(scrollView.contentOffset.y)")
let gap = self.consentInsetTop-k_Height_NavigationtBarAndStatuBar-self.topSegmentHeight
let segmentHeight = self.items.count <= 1 ? 0.0 : 46.0
let gap = self.consentInsetTop-k_Height_NavigationtBarAndStatuBar-self.topSegmentHeight+segmentHeight
self.navStatusBar.backgroundColor = scrollView.contentOffset.y > gap ? UIColor.white : UIColor.clear
self.topSegmentView.backgroundColor = scrollView.contentOffset.y > gap ? UIColor.white : UIColor.clear
self.topSegmentView.isHidden = scrollView.contentOffset.y < gap
......@@ -437,6 +438,7 @@ extension YHMyFileListViewController {
@objc func clickSaveBtn() {
YHHUD.show(.progress(message: "正在生成图片"))
TYSnapshotScroll.screenSnapshot(self.tableView) {
[weak self] image in
YHHUD.hide()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment