Latest 0.0.1
Homepage https://github.com/stfalcon-studio/StfalconContentPicker
License Apache License, Version 2.0
Platforms ios 10.0
Frameworks UIKit
Authors

This is a library for fetching assets from the user gallery. The library is highly customizable and has different UI elements. In the example you will see different cases how I use it.

Who we are

Need iOS and Android apps, MVP development or prototyping? Contact us via [email protected] We develop software since 2009, and we’re known experts in this field. Check out our portfolio and see more libraries from stfalcon-studio.

Download

Download via Cocoapods:

 pod 'StfalconContentPicker', '0.1.1'

Usage

Protocols and what they do

AskGalleryPermission – this protocol is needed for checking permissions, but it is not required and you can implement your own logic.
Alertable – this protocol is needed for showing pop-ups when a user doesn’t have permissions.
MediaPickerProtocol – this protocol is needed for showing a widget with assets in different cases such as:

  1. Showing a widget in the parent view.
  2. Showing a widget in the input view in UITextView, UITextField.

UI

CollectionAssetView – is needed for display of assets that have already been fetched. You can inherit control and customize it how you wish.
MediaItemCollectionViewCell – a cell for displaying an asset. You can inherit control and customize it how you wish.
MediaPickerViewController – a controller that includes CollectionAssetView and displays all fetched assets. Also you can add some custom UI in this controller or create custom transition when you show it.

Entities

MediaPickerOptions – all needed options for fetching assets and configuration of CollectionAssetView.
MediaAsset – needed for representing an asset from the librarry. You can inherit class or conform your custom class to MediaAssetProtocol.

About example

In the example app you can see how I use it.


License

Copyright 2018 stfalcon.com

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Latest podspec

{
    "name": "StfalconContentPicker",
    "platforms": {
        "ios": "10.0"
    },
    "version": "0.0.1",
    "summary": "Pod uses for fetch media content from user gallery..",
    "description": "Highly customizable library that help to fetch photos from library and display they.",
    "homepage": "https://github.com/stfalcon-studio/StfalconContentPicker",
    "license": {
        "type": "Apache License, Version 2.0",
        "file": "LICENSE"
    },
    "authors": {
        "Vitalii Vasylyda": "[email protected]"
    },
    "source": {
        "git": "https://github.com/stfalcon-studio/StfalconContentPicker.git",
        "tag": "0.0.1"
    },
    "frameworks": "UIKit",
    "source_files": [
        "StfalconContentPicker/**/*.{swift}",
        "StfalconContentPicker/**/*.{xib}"
    ],
    "swift_version": "4.0"
}

Pin It on Pinterest

Share This