- August 28, 2025
- Mins Read
UIView category that adds dragging capabilities.

pod 'UIView+draggable' to your Podfilepod installopen App.xcworkspace
github “andreamazz/UIView-draggable”
Import UIView+draggable.h in your controller’s header file
If you are using use_frameworks! in your Podfile, use this import:
import UIView_draggable
Call enableDragging on a UIView instance
// Enable dragging
[self.view enableDragging];
view.enableDragging()
The movement area can be restricted to a given rect:
view.cagingArea = CGRectMake(0, 0, 200, 200)
The movement can be restricted over one coordinate:
view.shouldMoveAlongX = true
view.shouldMoveAlongY = true
The area where the dragging action starts can be configured:
view.handle = CGRectMake(0, 0, 20, 20)
This package provides you with an easy way to show tooltips over any SwiftUI view, since Apple does not provide ...
SimpleToast is a simple, lightweight, flexible and easy to use library to show toasts / popup notifications inside iOS or ...
Create Toast Views with Minimal Effort in SwiftUI Using SSToastMessage. SSToastMessage enables you to effortlessly add toast notifications, alerts, and ...