Image filtering UI library like Instagram.

Overview

sharaku_header

Sharaku

Version License Platform

Usage

How to present SHViewController

let imageToBeFiltered = UIImage(named: "targetImage")
let vc = SHViewController(image: imageToBeFiltered)
vc.delegate = self
self.present(vc, animated:true, completion: nil)

SHViewControllerDelegate methods

extension ViewController: SHViewControllerDelegate {
    func shViewControllerImageDidFilter(image: UIImage) {
      // Filtered image will be returned here.
    }

    func shViewControllerDidCancel() {
      // This will be called when you cancel filtering the image.
    }
}

Example

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

Demo video

Sharaku animation

Requirements

  • Swift3
  • iOS 8.3+

Installation

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

pod "Sharaku"

Install manually

It requires a few things. Please follow the steps.

Contribution

Creating new issues for bug report, feature request and pull request is always welcome! Please feel free to contribute to Sharaku!

Author

makomori, [email protected], Twitter: @makomori26

License

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

You might also like...
Convert the image to hexadecimal to send the image to e-paper

ConvertImageToHex Convert the image to hexadecimal to send the image to e-paper Conversion Order // 0. hex로 변환할 이미지 var image = UIImage(named: "sample

Twitter Image Pipeline is a robust and performant image loading and caching framework for iOS clients

Twitter Image Pipeline (a.k.a. TIP) Background The Twitter Image Pipeline is a streamlined framework for fetching and storing images in an application

Image-cropper - Image cropper for iOS

Image-cropper Example To run the example project, clone the repo, and run pod in

ZImageCropper is a simplest way to crop image to any shapes you like.
ZImageCropper is a simplest way to crop image to any shapes you like.

ZImageCropper ZImageCropper is a simplest way to crop image to any shapes you like. Example To run the example project, clone the repo, and run pod in

Generates an image that looks like LEGO Art.

LegoArtFilter Generates an image that looks like LEGO Art. This library supports both iOS (14≤) and macOS (11≤). Usage // Get CGImage from CIImage let

📸 iMessage-like, Image Picker Controller Provides custom features.

RAImagePicker Description RAImagePicker is a protocol-oriented framework that provides custom features from the built-in Image Picker Edit. Overview O

An image cropper / photo cropper for iOS like in the Contacts app with support for landscape orientation.
An image cropper / photo cropper for iOS like in the Contacts app with support for landscape orientation.

RSKImageCropper An image cropper for iOS like in the Contacts app with support for landscape orientation. Installation RSKImageCropper requires iOS 9.

Simple UIView to interact with an Image view like scroll, zoom, pinch and crop.
Simple UIView to interact with an Image view like scroll, zoom, pinch and crop.

Welcome to Interactive Image View, a simple library that provides an easier way to interact with image view, like scroll, zoom and crop. In its core i

AlamofireImage is an image component library for Alamofire

AlamofireImage AlamofireImage is an image component library for Alamofire. Features Image Response Serializers UIImage Extensions for Inflation / Scal

Comments
  • Adds cropping

    Adds cropping

    resolves https://github.com/makomori/Sharaku/issues/4

    I add cropping, i copied code for cropping from https://github.com/sprint84/PhotoCropEditor?ref=ioscookies.com

    This is work in progress, any suggestions are welcome.

    opened by sammy-SC 4
  • Migrate to Swift 4 and update cocoapods to 1.3.1

    Migrate to Swift 4 and update cocoapods to 1.3.1

    I've updated the codebase to swift 4. Version for Sharaku should be changed as well, what do you suggest?

    Let me know if there are anymore changes you would like me to do.

    opened by sammy-SC 2
  • CocoaPodsでインストールするとビルドに失敗する

    CocoaPodsでインストールするとビルドに失敗する

    おそらくpodspecファイルで

    s.source_files = 'Sharaku/Classes/**/*'
    

    と指定しているためxibファイルがコンパイル対象として認識されていて、xibをコンパイルしようとしてエラーになります。 手元のプロジェクトでは以下のように回避していますが、podspecの修正をしていただけるとありがたいです。

    post_install do |installer|
      installer.pods_project.targets.each do |target|
        if target.name == 'Sharaku'
          source_files = target.source_build_phase.files
          selected = source_files.select do |file|
            file.file_ref.name.to_s.include? 'xib'
          end
          selected.each do |file|
            source_files.delete file
            puts "Deleting source file #{file.inspect} from target #{target.inspect}."
          end
        end
      end
    end
    
    opened by rizumita 0
  • Swift4 and Objective-C support

    Swift4 and Objective-C support

    下記の修正をしましたのでマージをお願いします

    • Swift4対応
    • Objective-Cから呼び出せるように@objcMembers@objcpublic を追加
    • 小さい画像時にクラッシュする時がある不具合を修正

    Make a merge as we made the following corrections

    • Swift 4 compatible
    • Added @ objcMembers,@ objc and public so that they can be called from Objective-C
    • Fixed a bug that sometimes crashes at small image
    opened by FromF 0
Releases(1.0.2)
Owner
Makoto Mori
React lover, UX enthusiast, SaaS developer
Makoto Mori
Nilay Dagdemir 0 Jan 23, 2022
Xcode plugin for filtering the console area.

MCLog This plugin lets you easily filter the Xcode console log output. While you can already search the text in the console log output you are still l

Michael Chen 591 Oct 31, 2022
📸 Instagram-like image picker & filters for iOS

YPImagePicker YPImagePicker is an instagram-like photo/video picker for iOS written in pure Swift. It is feature-rich and highly customizable to match

Yummypets 4k Dec 27, 2022
FlaneurImagePicker is an iOS image picker that allows users to pick images from different sources (ex: user's library, user's camera, Instagram...). It's highly customizable.

FlaneurImagePicker is a highly customizable iOS image picker that allows users to pick images from different sources (ex: device's library, device's c

FlaneurApp 17 Feb 2, 2020
AYImageKit is a Swift Library for Async Image Downloading, Show Name's Initials and Can View image in Separate Screen.

AYImageKit AYImageKit is a Swift Library for Async Image Downloading. Features Async Image Downloading. Can Show Text Initials. Can have Custom Styles

Adnan Yousaf 11 Jan 10, 2022
📷 A composable image editor using Core Image and Metal.

Brightroom - Composable image editor - building your own UI Classic Image Editor PhotosCrop Face detection Masking component ?? v2.0.0-alpha now open!

Muukii 2.8k Jan 3, 2023
An image download extension of the image view written in Swift for iOS, tvOS and macOS.

Moa, an image downloader written in Swift for iOS, tvOS and macOS Moa is an image download library written in Swift. It allows to download and show an

Evgenii Neumerzhitckii 330 Sep 9, 2022
📷 A composable image editor using Core Image and Metal.

Brightroom - Composable image editor - building your own UI Classic Image Editor PhotosCrop Face detection Masking component ?? v2.0.0-alpha now open!

Muukii 2.8k Jan 2, 2023
AsyncImage before iOS 15. Lightweight, pure SwiftUI Image view, that displays an image downloaded from URL, with auxiliary views and local cache.

URLImage URLImage is a SwiftUI view that displays an image downloaded from provided URL. URLImage manages downloading remote image and caching it loca

Dmytro Anokhin 1k Jan 4, 2023
A complete Mac App: drag an image file to the top section and the bottom section will show you the text of any QRCodes in the image.

QRDecode A complete Mac App: drag an image file to the top section and the bottom section will show you the text of any QRCodes in the image. QRDecode

David Phillip Oster 2 Oct 28, 2022