• Stars
    star
    269
  • Rank 152,662 (Top 4 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 10 years ago
  • Updated about 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

[iOS] A magical image view! Can be a movie, or an anim gif, or normal png, jpgs.

KIChameleonView

Once you set a URL, the view will be appropriate media, as following.

AniGIF

NSURL *url = [NSURL URLWithString:@"http://raphaelschaad.com/static/nyan.gif"];
[chameleonView setImageWithURL:url];

Video

NSURL *url = [NSURL URLWithString:@"http://content.viki.com/test_ios/ios_240.m3u8"];
[chameleonView setImageWithURL:url];

Image

NSURL *url = [NSURL URLWithString:@"https://dl.dropboxusercontent.com/u/7817937/_github/ChameleonView.jpg"];
[chemeleonView setImageWithURL:url];

AssetsLibrary Image

NSURL *url = [NSURL URLWithString:@"assets-library://asset/asset.JPG?id=C3EB0F3D-6B13-463D-83B3-B2B42A6C47CF&ext=JPG"];
[chameleonView setImageWithURL:url];

WebP (currently not supported due to libwebp sourcecode footprint)

NSURL *url = [NSURL URLWithString:@"https://dl.dropboxusercontent.com/u/7817937/photo1.200x.raw.webp"];
[chameleonView setImageWithURL:url];

Dependencies

  • SDWebImage
  • FLAnimatedImage
  • VKVideoPlayer

Installation

pod 'KIChameleonView'

and just [chameleonView setImageWithURL:someURL];!

🍣

LICENSE

The MIT License (MIT)

Copyright (c) 2014 kaiinui

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.

More Repositories

1

UIColor-uiGradientsAdditions

[iOS] Beautiful colors from uiGradients
Objective-C
329
star
2

KIProgressView

[iOS] Medium, YouTube-like Progress View!
Objective-C
148
star
3

KIInPlaceEdit

[iOS] In-place editing for UILabel
Objective-C
121
star
4

android-awesome-libraries

There are many libraries which helps your android development!
108
star
5

Swift-UICollectionView-AFNetworking

Sample Swift Project using UICollectionView + AFNetworking Image and DAPagesContainer
Swift
34
star
6

note

My notes.
22
star
7

FastQR

[iOS] Integrate QR reading feature easily.
Objective-C
18
star
8

middleman-inliner

Provides a helper to inline JS/CSS in Middleman for performance.
Ruby
18
star
9

UIGestureRecognizer-RACExtension

Handle gesture events as ReactiveCocoa signals!
Objective-C
10
star
10

Swift-UICollectionView-WebP

UICollectionView + WebP w/SDWebImage
C
10
star
11

NSMutableData-MultipartFormDataAdditions

Easily build multipart/form-data -formatted data. (which used to post an image.)
Objective-C
7
star
12

KILogInject

[iOS] NSLog() any method without writing NSLog()!
Objective-C
6
star
13

Reachability-RACExtensions

Reachability with ReactiveCocoa!
Objective-C
6
star
14

lambda_kit

A set of helpers (.d.ts, handler driver..) for AWS Lambda development.
JavaScript
6
star
15

ios-awesome-libraries

Also in iOS, there are many awesome libraries!
5
star
16

footprint.js

Buzzfeed's "Pound" re-implementation.
JavaScript
5
star
17

SmoothWebView

Native-like behavior for WKWebView
Swift
4
star
18

cocproxy

A proxy which can stub certain URL to a local file.
Ruby
4
star
19

RemoteConfig

[iOS] Easy remote configuration with Google Spreadsheet.
Objective-C
4
star
20

jsonschema-schema.org

schema.org glossary in JSON Schema
3
star
21

droidgems

An awesome libraries for Android development.
CSS
3
star
22

rbbigquery

[WIP] A Ruby BigQuery client.
Ruby
3
star
23

incam

[iOS] Inline Camera UI. You might not need to open a modal to take a picture.
Objective-C
3
star
24

rbscreenshot

Take a screenshot in one line.
Ruby
2
star
25

jc

peco-like interactive JSON processing.
Go
2
star
26

PushablePusher

PushablePusher adds feature to push events from clients to libPusher.
Objective-C
2
star
27

tweet_collector

Collect tweets.
Ruby
2
star
28

CookieSync

Synchronize cookie without blocking UI using transparent SFSafariViewController
Objective-C
2
star
29

i18nfactory

i18nfactory
1
star
30

TodoFlux

experimental flux todo app
Objective-C
1
star
31

CameraRollCompat-iOS8

[DEPRECATED] Bringing Camera Roll to iOS8, where Camera Roll had been thrown away by Apple in iOS8 :/
Objective-C
1
star
32

QR-ios

QR scanner report.
1
star
33

alice-is-my-wife

An android app to manage my sleep cycle.
1
star
34

AIRLocalizedString

Update i18n texts without compelling users to update the App.
1
star
35

Sample-Annotation-AspectJ

A sample of annotation and AspectJ.
Java
1
star
36

Flux-iOS

[iOS] Fundamental Classes for Flux Architecture on iOS
1
star
37

build-jsonschema-schema.org

schema.org glossary in JSON Schema.
Ruby
1
star
38

template-spring-boot-gae

A bootstrap template for Spring Boot on Google App Engine.
Java
1
star
39

QR-android

QR scanner report for Android
Java
1
star
40

api_design-resources

A list of resources to design good API.
1
star
41

ios-articles

Pragmatic iOS Development knowledges
1
star
42

CloudFlow

[WIP] SQS Powered multi-instance coding made easy.
Ruby
1
star
43

java-modern-libraries

A list of modern Java libraries. (Compiling)
1
star
44

ios-architecture-goodies

Architecturing iOS Apps
1
star
45

WebPushWithPayload

An example project that perform service workers push with variable title, body, icon, url.
JavaScript
1
star