bawn / Aquaman

A pure-Swift library for nested display of horizontal and vertical scrolling views
https://bawn.github.io/#blog
MIT License
269 stars 42 forks source link

請問要如何得到真正的contentOffset? #8

Closed hawkeye1026 closed 3 years ago

hawkeye1026 commented 3 years ago

在mainScrollViewDidScroll delegate印出contentOffset後,發現只要滾動超過header高度,回傳的值都會一樣,請問有辦法拿到包含childScrollView的contentOffset嗎?

bawn commented 3 years ago

暂时没有办法拿到,你可以在 AquamanChildViewController 里面的拿到

func scrollViewDidScroll(_ scrollView: UIScrollView) {

}
hawkeye1026 commented 3 years ago

了解,目前我是自己在AquamanPageViewController加一個delegate來回傳兩個scrollView的contentOffset總和,希望之後能更新提供類似的delegate接口取得總contentOffset,感謝!

截圖 2021-04-08 下午1 45 01