- July 9, 2025
- Mins Read
UIView category that adds dragging capabilities.
pod 'UIView+draggable'
to your Podfilepod install
open 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)
A lightweight sparkline component, supporting Swift, SwiftUI, macCatalyst and Objective-C. What is a sparkline? A sparkline is a very ...
LightChart is a lightweight SwiftUI package with line charts implementation. You can use it when you need only a chart that will perfectly ...
Swift package for displaying charts effortlessly. V2 Beta is here 🎉🎉🎉 V2 focuses on providing a strong and easy to ...
Lightweight and easy to use SwiftUI chart library for all Apple platforms