Resize Rectangle on Touch & Drag.
This is a simple example App to show how a rectangle can be resized by touch & drag. As recommended when using AutoLaout, the constraints of the rectangle are animated rather than the actual size of the rect. Works basically in portrait and landscape mode, too.
- Xcode 10.1
- Swift 4.2
- Download Zip file and open ResizeRectangle.xcodeproj
- Chose build target iOS Simulator or iPhone
- Run app by selecting Build button or Command + R
Public Domain
https://stackoverflow.com/questions/8460119/how-to-resize-uiview-by-dragging-from-its-edges