Skip to content

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

License

Notifications You must be signed in to change notification settings

kaiinui/KIChameleonView

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published