Latest 0.2.3
Homepage https://github.com/mbutan/MBPhotoPicker
License MIT
Platforms ios 8.0, requires ARC
Authors

MBPhotoPicker

Easy and quick in implementation Photo Picker, based on Slack’s picker.

picture alt

Requirements

  • iOS 9.0+
  • Swift 3
  • ARC
  • To happy full functionality, expand your Xcode’s captabilities of iCloud entitlement (see at the attached example, or read more about here)

Installation

MBPhotoPicker is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "MBPhotoPicker"

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

For a quick start see the code below.

var photo: MBPhotoPicker = MBPhotoPicker()
photo.onPhoto = { (image: UIImage!) -> Void in
print("Selected image")
}
photo.onCancel = {
print("Cancel Pressed")
}
photo.onError = { (error) -> Void in
print("Error: (error.rawValue)")
}
photo.present(self)

To disable import image from external apps, just type code:

photo.disableEntitlements = true

Library supports bunch of localizated strings, to override translations just use one of available variables:

alertTitle
alertMessage
actionTitleCancel
actionTitleTakePhoto
actionTitleLastPhoto
actionTitleOther
actionTitleLibrary

Author

Marcin Butanowicz, [email protected]

Andrea Antonioni, [email protected] (Contributor)

License

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

Latest podspec

{
    "name": "MBPhotoPicker",
    "version": "0.2.3",
    "summary": "Easy and quick in implementation Photo Picker, based on Slack's picker.",
    "description": ""MBPhotoPicker is a simple Photo Picker based on used by Slack. In easy way allows you to take a photo, select from camera roll, use last photo taken or import from external apps."",
    "homepage": "https://github.com/mbutan/MBPhotoPicker",
    "license": "MIT",
    "authors": {
        "Marcin Butanowicz": "[email protected]"
    },
    "source": {
        "git": "https://github.com/mbutan/MBPhotoPicker.git",
        "tag": "0.2.3"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "Localizable": [
            "Pod/Localizations/*"
        ]
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This