Just to add, I tried this, and for test I set the origin to .zero, expecting a understandable result:
NSAnimationContext.runAnimationGroup { context in
context.duration = 0.3
context.timingFunction = CAMediaTimingFunction(name: .easeInEaseOut)
scrollView.contentView.animator().bounds.origin = CGPoint(x: 0, y: 0 )
}
It animates but goes to a point that I dont understand where!!
Topic:
UI Frameworks
SubTopic:
AppKit