Latest 0.1.1
Homepage https://github.com/guoyingtao/Impression
License MIT
Platforms ios 11.0
Authors

Impression

swift 4.2 badgeplatform iOS badgelicense MIT badge

A swift photo filter tool which is easy for user to add their own photo filters.

Credits

The default photo filters come from YPImagePicker.

Features

  • Default photo filters provided
  • Easy to add your own photo filters as far as they comform to FilterProtocal
  • Easy to add filters with localized name.

Requirements

  • iOS 11.0+
  • Xcode 10.0+

Install

CocoaPods

pod ‘Impression’, ‘~> 0.1.1”

Usage

  • Create default FilterViewController with default filters
    let image = UIImage(named: "sunflower.jpg")!
    let vc = Impression.createFilterViewController(image: image, delegate: self, useDefaultFilters: true)
  • Add custom filters
Impression.addCustomFilters(filters: [ToasterFilter(), ClarendonFilter(), HazeRemovalFilter()])
  • Create custom FilterViewController which can be embeded into another UIViewController
    let image = UIImage(named: "sunflower.jpg")!
    let vc = Impression.createCustomFilterViewController(image: image, delegate: self, useDefaultFilters: true)
  • Remove default filters
    Impression.removeAllFilters()
  • Provide localized name for your filter
YourFilter: Impression.FilterProtocal {

public var localizableNames: [Impression.LocaleLanguageCode : String] = 
[.English: "English Name", 
.SimplifiedChinese: "中文名",
.Japanese: "日本語の名前"]

}

Latest podspec

{
    "name": "Impression",
    "version": "0.1.1",
    "summary": "A swift photo filter",
    "swift_version": "4.2",
    "description": "Impression is a swift photo filter tool which is easy for users to add their filters.",
    "homepage": "https://github.com/guoyingtao/Impression",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "starecho": "[email protected]"
    },
    "source": {
        "git": "https://github.com/guoyingtao/Impression.git",
        "tag": "0.1.1"
    },
    "social_media_url": "https://twitter.com/guoyingtao",
    "platforms": {
        "ios": "11.0"
    },
    "source_files": "Impression/Classes/**/*"
}

Pin It on Pinterest

Share This