DragDropUI

screenshot of DragDropUI

A set of iOS UI components which have drag & drop capability.

Overview:

The DragDropUI is a set of iOS UI components that have drag & drop capability. It provides a simple way to add drag & drop functionality to your iOS apps.

Features:

  • Drag & Drop Capability: Allows users to easily drag and drop UI components within the app.
  • DDView: A custom UIView subclass that supports drag & drop functionality.
  • DDButton: A custom UIButton subclass that supports drag & drop functionality.
  • DDImageView: A custom UIImageView subclass that supports drag & drop functionality.
  • DDLabel: A custom UILabel subclass that supports drag & drop functionality.
  • DDTableViewCell: A custom UITableViewCell subclass that supports drag & drop functionality.
  • DDCollectionViewCell: A custom UICollectionViewCell subclass that supports drag & drop functionality.
  • DDTextField: A custom UITextField subclass that supports drag & drop functionality.

CocoaPods:

To integrate DragDropUI into your Xcode project using CocoaPods, add the following line to your Podfile:

pod 'DragDropUI'

Then, run the following command:

pod install

Carthage:

To integrate DragDropUI into your Xcode project using Carthage, add the following line to your Cartfile:

github "DragDropUI"

Then, run the following command:

carthage update

Drag the built DragDropUI.framework into your Xcode project.

Swift Package Manager:

Modify your Package.swift file to include the following dependency:

dependencies: [
    .package(url: "https://github.com/DragDropUI.git", from: "1.1.0")
]

Then, run the following command:

swift package resolve

XCFramework:

XCFrameworks require Xcode 11 or later. To integrate DragDropUI using XCFramework, use the provided script scripts/build-framework.sh to generate the binary DragDropUI.xcframework archive. Then, you can use this archive as a dependency in Xcode.

Summary:

The DragDropUI is a useful library for iOS developers that adds drag & drop functionality to various UI components. It can be easily integrated into Xcode projects using CocoaPods, Carthage, Swift Package Manager, or XCFramework. The library provides custom subclasses for common UI elements like buttons, labels, image views, table view cells, collection view cells, and text fields, making it simple and efficient to implement drag & drop features in your iOS apps.

ui-kit
UI Kits & Components

A UI kit provides developers with a set of reusable components that can be easily integrated into a website or application. These components are pre-designed with consistent styling and functionality, allowing developers to save time and effort in the design and development process. UI kits can be either custom-built or third-party, and often include components for buttons, forms, typography, icons, and more.