Search code examples
swiftsizescrollviewheighthidden

I need the height of the hidden in a scroll view Swift


Example image:

enter image description here

I need de height in color blue.


Solution

  • You can try

    let height = scrollView.contentOffset.y
    print(height)
    

    insert it inside scrollViewDidScroll