When I am using this line of code:
if (context == &KVOContext && keyPath == contentOffsetKeyPath && object as? UIScrollView == scrollView) {
//...
}
I am getting runtime issue which is:
Simultaneous accesses to 0x7f7eea603fb8, but modification requires exclusive access
I don't know how to solve this. Can anyone give me solution for this?