Zooming and scrolling in SpriteKit

Here is my solution to the scrolling problem. It revolves around “stealing” the behaviour from the UIScrollView. I learned this from a WWDC Video from 2012 about mixing UIKit with OpenGL. Add the UIScrollViewDelegate methods to your ViewController and set the scroll view delegate to the ViewController Add/Move the PanGestureRecognizer from the UIScrollView to the … Read more

Pan & Zoom Image

After using samples from this question I’ve made complete version of pan & zoom app with proper zooming relative to mouse pointer. All pan & zoom code has been moved to separate class called ZoomBorder. ZoomBorder.cs using System.Linq; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Media; namespace PanAndZoom { public class ZoomBorder : Border { … Read more