All Projects → ray00178 → EasyAlbum

ray00178 / EasyAlbum

Licence: MIT license
📷 A lightweight, pure-Swift library for pick up photo from your album.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to EasyAlbum

ScrollHmsPicker
A simple scrollable HMS time picker view for Android.
Stars: ✭ 30 (-3.23%)
Mutual labels:  picker, picker-library
Okuma-Reader
Online book/manga/image set/webtoon reader and library with some key features like Japanese page order, double-page view, touch gestures, multiple languages, and pre-caching of next pages.
Stars: ✭ 31 (+0%)
Mutual labels:  image-viewer, gallery-images
SPPickerView
这是一个选择器,功能类似系统的UIPickerView,但是比UIPickerView的适用范围广得多
Stars: ✭ 28 (-9.68%)
Mutual labels:  picker
react-simple-image-viewer
Simple image viewer component for React
Stars: ✭ 44 (+41.94%)
Mutual labels:  image-viewer
fbida
ida (motif) and fbi (linux console) image viewers, also fbpdf & misc tools.
Stars: ✭ 41 (+32.26%)
Mutual labels:  image-viewer
PhoneCountryCodePicker
An iOS tableview picker for PhoneCountryCode (English & Chinese supported)
Stars: ✭ 31 (+0%)
Mutual labels:  picker
ImageWebServer
A simple image uploader website for use with screenshot applications such as ShareX.
Stars: ✭ 20 (-35.48%)
Mutual labels:  image-viewer
aoc-dev-resources
Useful repositories and articles related to developing software and analysis for Age of Empires II.
Stars: ✭ 40 (+29.03%)
Mutual labels:  collection
colr pickr
Colr Pickr, a vanilla JavaScript color picker component built with SVGs, with features like saving colors. Similar design to the chrome-dev-tools color picker.
Stars: ✭ 27 (-12.9%)
Mutual labels:  picker
multiplex.js
LINQ for JavaScript.
Stars: ✭ 79 (+154.84%)
Mutual labels:  collection
TTADataPickerView
A Swift picker view allow you to pick the titles you want and the date, time or dateTime in one view
Stars: ✭ 35 (+12.9%)
Mutual labels:  picker
Imgbot
An Azure Function solution to crawl through all of your image files in GitHub and losslessly compress them. This will make the file size go down, but leave the dimensions and quality untouched. Once it's done, ImgBot will open a pull request for you to review and merge. [email protected]
Stars: ✭ 1,017 (+3180.65%)
Mutual labels:  imagemagick
uni-lb-picker
uni-app picker选择器,可自定义,扩展性高,支持单选及理论任意级数多级联动选择。
Stars: ✭ 42 (+35.48%)
Mutual labels:  picker
clocklet
An opinionated clock-style vanilla-js timepicker.
Stars: ✭ 31 (+0%)
Mutual labels:  picker
react-native-color-panel
React Native Color Panel Component for iOS and Android 🏳️‍🌈
Stars: ✭ 21 (-32.26%)
Mutual labels:  picker
EmojiPicker
This library to show a popover to select emoji for iOS
Stars: ✭ 58 (+87.1%)
Mutual labels:  picker
MLDPhotoManager
弹出AlertController让用户选择相机还是相册.基于@gang544043963大神的LGPhotoBrowser项目再次封装
Stars: ✭ 19 (-38.71%)
Mutual labels:  picker
derivejs
DeriveJS is a reactive ODM - Object Document Mapper - framework, a "wrapper" around a database, that removes all the hassle of data-persistence by handling it transparently in the background, in a DRY manner.
Stars: ✭ 54 (+74.19%)
Mutual labels:  collection
ColorPicker
A HSV style Color Picker Dialog library for Android (with Alpha setting)
Stars: ✭ 16 (-48.39%)
Mutual labels:  picker
react-native-simple-picker
A simple picker for React Native.
Stars: ✭ 89 (+187.1%)
Mutual labels:  picker

EasyAlbum

Build Status Cocoapods platforms Cocoapods version Cocoapods license Language GitHub stars

Features

  • Support Single choice、Multiple choice、Preview、Folder switch and pick up photo.
  • In preview photo, your can zoom photo.
  • According to your project color, Setting your pick color、navigationBar tint color、navigationBar bar tint color.
  • According to your preferences / needs, Show the number of fields and select the number of restrictions.
  • Support language 🇹🇼Chinese Traditional、🇨🇳Chinese Simplified, otherwise use 🇺🇸English.

Screenshots

Screenshots Portrait Screenshots Landscape

Requirements and Details

  • iOS 10.0+
  • Xcode 11.0+
  • Build with Swift 5.0+

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate EasyAlbum into your XCode project using CocoaPods, specify it to a target in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

target '<Your Target Name>' do
  # Use swift 5.0
  pod 'EasyAlbum', '~> 2.3.1'
end

You should open the {Project}.xcworkspace instead of the {Project}.xcodeproj after you installed anything from CocoaPods.

For more information about how to use CocoaPods, I suggest this tutorial.

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. It is in early development, but Alamofire does support its use on supported platforms.

Once you have your Swift package set up, adding Alamofire as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/ray00178/EasyAlbum", .upToNextMajor(from: "2.3.1"))
]

Usage

1. Open ur Info.plist and add the following permissions.

Photo Permission

<key>NSCameraUsageDescription</key>
<string>Please allow access to your camera then take picture.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Please allow access to your album then pick up photo.</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>Please allow access to your album then save photo.</string>

On iOS 14 later
<key>PHPhotoLibraryPreventAutomaticLimitedAccessAlert</key>
<true/>
2. Use EasyAlbum. You can building what you want.
import EasyAlbum

/**
  * @param appName            : (required) (default: EasyAlbum)
  * @param tintColor          : (choose)   (default: #ffffff)     
  * @param barTintColor       : (choose)   (default: #673ab7) 
  * @param span               : (choose)   (default: 3)
  * @param limit              : (choose)   (default: 30)
  * @param orientation        : (choose)   (default: .all)
  * @param message            : (choose)   (default: Photo pick up the most `30(limitCount)`!)
  * @param pickColor          : (choose)   (default: #ffc107)
  * @param showCamera         : (choose)   (default: true)
  * @param crop               : (choose)   (default: false) (Use for camera)
  * @param isLightStatusStyle : (choose)   (default: true)
  * @param sizeFactor         : (choose)   (default: .auto)
  * @param orientation        : (choose)   (default: .all)
  * @param start              : (required)
  */

// Easy way
EasyAlbum.of(appName: "EasyAlbum")
         .start(self, delegate: self)

// Use many way
EasyAlbum.of(appName: "EasyAlbum")
         .limit(3)
         .sizeFactor(.fit(width: 1125.0, height: 2436.0))
         .orientation(.portrait)
         .start(self, delegate: self)
3. EasyAlbum parameters

EasyAlbum parameters

4. Extension EasyAlbumDelegate
extension ViewController: EasyAlbumDelegate {

    func easyAlbumDidSelected(_ photos: [AlbumData]) {
        // You can do something by selected.
        photos.forEach({ print("AlbumData 👉🏻 \($0)") })
    }
    
    func easyAlbumDidCanceled() {
        // You can do something by canceled. 
    }
}
5. AlbumData 👉🏻 You can get many photo information.
Attribute Type Value Note
image UIImage <UIImage: 0x600003377c60>, {1125, 752}
mediaType String "image"
width CGFloat 4555.0 Origin Width
height CGFloat 3041.0 Origin Height
creationDate Date? Optional(2013-11-05 11:08:39 +0000)
modificationDate Date? Optional(2019-04-13 14:34:57 +0000)
isFavorite Bool true
isHidden Bool false
location CLLocation? Optional(<+63.53140000,-19.51120000>)
fileName String? Optional("DSC_5084.jpg")
fileData Data? Optional(8063276 bytes)
fileSize Int 8063276 bytes Maybe zero
fileUTI String? Optional("public.jpeg")

Update Description

Version:2.3.1

  • Supprot iOS verison from 9.0 to 10.0.
  • Support iOS 14 limited authorization status.
  • Improve some logic flow and code.
  • Support Swift Package Manager install

Version:2.2.0

  • Optimization PhotoManager.
  • Fix retain cycle.
  • Preview enter transition animation.
  • Add enum SizeFactor property original.

Version:2.1.0

  • Fix the bottom view can't adapts to iPhone device.
  • Support device rotate.
  • In preview page, you can to leave by swipe up or swipe down.
  • Add orientation property and remove showGIF & titleColor property.

Communication

  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

Todo List

  • Preview exit transition animation
  • Support Live Photo
  • Support SPM install

License

EasyAlbum is available under the MIT license. See the LICENSE file for more info.

MIT License

Copyright (c) [2019] [Jhang, Pei-Yang(Ray)]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].