- 自定义导航栏,设置一个最大滚动值max和最小滚动值min(0),或者当前scrollView的滚动值offset,计算(offset - min)/(max - min)得到一个百分比值作为自定义导航栏的透明度实现渐变效果
LicaGao/SwiftDemoScroll
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Swift 导航栏渐变Demo
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published