Swiftpack.co - AnyImageKit/AnyImageKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by AnyImageKit.
AnyImageKit/AnyImageKit 0.14.3
A toolbox for pick/edit/capture photo or video. Written in Swift.
⭐️ 447
πŸ•“ 2 weeks ago
iOS
.package(url: "https://github.com/AnyImageKit/AnyImageKit.git", from: "0.14.3")

AnyImageKit

GitHub Actions CocoaPods Compatible Platform License

AnyImageKit is a toolbox for picking, editing or capturing photos/videos, written in Swift.

δΈ­ζ–‡θ―΄ζ˜Ž

Features

  • β˜‘ Modular design
    • β˜‘ Picker
    • ☐ Browser
    • β˜‘ Editor
    • β˜‘ Capture
  • β˜‘ Light mode, dark mode or auto mode support
  • β˜‘ Default theme is similar with Wechat
  • β˜‘ Multiple & mix select support
  • β˜‘ Supported media types:
    • β˜‘ Photo
    • β˜‘ GIF
    • β˜‘ Live Photo
    • β˜‘ Video
  • β˜‘ Camera
    • β˜‘ Photo
    • β˜‘ Video
    • ☐ Live Photo
    • ☐ GIF
    • ☐ Fliter Support
  • ☐ Edit image ( Technical Preview )
    • β˜‘ Drawing
    • ☐ Emoji
    • β˜‘ Input text
    • β˜‘ Cropping
    • β˜‘ Mosaic
    • β˜‘ Rotate
    • ☐ Fliter Support
  • β˜‘ Multiple platform support
    • β˜‘ iOS
    • β˜‘ iPadOS
    • β˜‘ Mac Catalyst ( Technical Preview, Not support in editor.)
    • ☐ macOS
    • ☐ tvOS
  • β˜‘ Internationalization support
    • β˜‘ English (en)
    • β˜‘ Chinese, Simplified (zh-Hans)
    • β˜‘ Turkish (tr)
    • β˜‘ Portuguese(Brazil) (pt-BR)
    • ☐ and more... (Pull requests welcome)

Requirements

  • iOS 12.0+
  • Xcode 13.0+
  • Swift 5.5+

Installation

Swift Package Manager

⚠️ Needs Xcode 12.0+ to support resources and localization files

dependencies: [
    .package(url: "https://github.com/AnyImageKit/AnyImageKit.git", .upToNextMajor(from: "0.14.0"))
]

CocoaPods

Add this to Podfile, and then update dependency:

pod 'AnyImageKit'

Usage

Prepare

Add these keys to your Info.plist when needed:

Key Module Info
NSPhotoLibraryUsageDescription Picker
NSPhotoLibraryAddUsageDescription Picker
PHPhotoLibraryPreventAutomaticLimitedAccessAlert Picker Set YES to prevent automatic limited access alert in iOS 14+ (Picker has been adapted with Limited features that can be triggered by the user to enhance the user experience)
NSCameraUsageDescription Capture
NSMicrophoneUsageDescription Capture

Quick Start

import AnyImageKit

class ViewController: UIViewController {

    @IBAction private func openPicker(_ sender: UIButton) {
        var options = PickerOptionsInfo()
        /*
          Your code, handle custom options
        */
        let controller = ImagePickerController(options: options, delegate: self)
        present(controller, animated: true, completion: nil)
    }
}

extension ViewController: ImagePickerControllerDelegate {

    func imagePickerDidCancel(_ picker: ImagePickerController) {
        /*
          Your code, handle user cancel
        */
        picker.dismiss(animated: true, completion: nil)
    }
    
    func imagePicker(_ picker: ImagePickerController, didFinishPicking result: PickerResult) {
        let images = result.assets.map { $0.image }
        /*
          Your code, handle selected assets
        */
        picker.dismiss(animated: true, completion: nil)
    }
}

Release Notes

Version Release Date Xcode Swift iOS
v0.14.3 2021-12-28 13.2 5.5 12.0+
v0.14.2 2021-12-16 13.2 5.5 12.0+
v0.14.1 2021-11-23 13.1 5.5 12.0+
v0.14.0 2021-11-22 13.1 5.5 12.0+
v0.13.5 2021-10-15 13.0 5.5 12.0+
v0.13.4 2021-09-23 13.0 5.5 12.0+
v0.13.3 2021-08-09 12.5 5.4 10.0+
v0.13.2 2021-06-30 12.5 5.4 10.0+
v0.13.1 2021-06-01 12.5 5.4 10.0+
v0.13.0 2021-02-08 12.4 5.3 10.0+
v0.12.0 2020-12-30 12.2 5.3 10.0+
v0.11.0 2020-12-18 12.2 5.3 10.0+
v0.10.0 2020-11-03 12.1 5.3 10.0+
v0.9.0 2020-10-09 12.0 5.3 10.0+

License

AnyImageKit is released under the MIT license. See LICENSE for details.

GitHub

link
Stars: 447
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Dependencies

Release Notes

Happy New Year!
2 weeks ago

ζ›΄ζ–°θ―΄ζ˜Ž

Resolved

  • Picker

    • Fix the issue that disable rule is not checked when selecting photos after taking photos.(#134)
    • Fix asset collection view will be offset when contentInsetAdjustmentBehavior is modified globally.
  • Editor

    • Fix the issue that image will be wrong after crop when tool option only has crop option.(#133)

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics