All Projects → r3econ → Animation Extensions

r3econ / Animation Extensions

Licence: cc0-1.0
A set of most commonly used animations like rotation, shake, flip or motion effects. All in one UIView extension.

Projects that are alternatives of or similar to Animation Extensions

Swiftfortunewheel
The ultimate spinning wheel view that supports dynamic content and rich customization.
Stars: ✭ 114 (-42.42%)
Mutual labels:  tvos, uiview
Render
UIKit a-là SwiftUI.framework [min deployment target iOS10]
Stars: ✭ 2,150 (+985.86%)
Mutual labels:  uiview
Version
Represent and compare versions via semantic versioning (SemVer) in Swift
Stars: ✭ 160 (-19.19%)
Mutual labels:  tvos
Apple Runtime Headers
Objective-C runtime headers for Apple's iOS, macOS, tvOS and watchOS frameworks
Stars: ✭ 174 (-12.12%)
Mutual labels:  tvos
Sgplayer
A powerful media play framework for iOS, macOS, and tvOS.
Stars: ✭ 1,974 (+896.97%)
Mutual labels:  tvos
Anydate
Swifty Date & Time API inspired from Java 8 DateTime API.
Stars: ✭ 178 (-10.1%)
Mutual labels:  tvos
Responsedetective
This project was made with ♡ by Netguru.
Stars: ✭ 1,921 (+870.2%)
Mutual labels:  tvos
Ios Crash Dump Analysis Book
iOS Crash Dump Analysis Book
Stars: ✭ 158 (-20.2%)
Mutual labels:  tvos
Openssl For Iphone
A script for compiling OpenSSL for iOS Devices (iPhone, iPad, iPod Touch, AppleTV, MacCatalyst)
Stars: ✭ 2,190 (+1006.06%)
Mutual labels:  tvos
Cocoalumberjack
A fast & simple, yet powerful & flexible logging framework for Mac and iOS
Stars: ✭ 12,584 (+6255.56%)
Mutual labels:  tvos
Svprogresshud
A clean and lightweight progress HUD for your iOS and tvOS app.
Stars: ✭ 12,339 (+6131.82%)
Mutual labels:  tvos
Mirrordiffkit
Graduation from messy XCTAssertEqual messages.
Stars: ✭ 168 (-15.15%)
Mutual labels:  tvos
L10n Swift
Localization of the application with ability to change language "on the fly" and support for plural form in any language.
Stars: ✭ 177 (-10.61%)
Mutual labels:  tvos
Mapboxstatic.swift
Static map snapshots with overlays in Swift or Objective-C on iOS, macOS, tvOS, and watchOS
Stars: ✭ 162 (-18.18%)
Mutual labels:  tvos
Objc Sdk
LeanCloud Objective-C SDK
Stars: ✭ 186 (-6.06%)
Mutual labels:  tvos
Cosmos
A star rating control for iOS/tvOS written in Swift
Stars: ✭ 1,992 (+906.06%)
Mutual labels:  tvos
Xamarin Macios
Bridges the worlds of .NET with the native APIs of macOS, iOS, tvOS, and watchOS.
Stars: ✭ 2,109 (+965.15%)
Mutual labels:  tvos
Cloudonce
Unified Game Services API for Unity
Stars: ✭ 175 (-11.62%)
Mutual labels:  tvos
Easytipview
Objective-C alternative for EasyTipView implemented in swift
Stars: ✭ 192 (-3.03%)
Mutual labels:  uiview
Licensegenerator Ios
Build script that recursively searches for LICENSE files and generates a Settings.bundle friendly plist.
Stars: ✭ 186 (-6.06%)
Mutual labels:  tvos

Build Status CodeFactor License Platform Release saythanks.io

A useful UIView category containing a set of most commonly used animations like rotation, flip, shake and others.

It is designed to be as easy to use and integrate as possible with a goal to speed up everyday development tasks. All the methods are well documented and described.

Furthermore, the category comes along with a small demo project where you can see the animations in action.

Animations

Extension contains helper methods for the following animations:

Rotation

[boxView rotateToAngle:M_PI * 2.0f
              duration:1.0f
             direction:UIViewAnimationRotationDirectionLeft
           repeatCount:HUGE_VALF
           autoreverse:YES];

Rotation

Flip

[boxView flipWithDuration:0.3f
                direction:UIViewAnimationFlipDirectionFromLeft
              repeatCount:2
              autoreverse:NO];

Flip

Vertical Shake

[boxView shakeVertically];

Vertical Shake

Horizontal Shake

[boxView shakeHorizontally];

Horizontal Shake

Pulse

[boxView pulseToSize:1.1f
            duration:0.3f
              repeat:YES];

Pulse

Motion Effects

[boxView applyMotionEffects];

Can't be shown in a gif. Run on the device to see it in action.

Installation

The recommended approach for installing Animation Extensions is via the CocoaPods package manager, as it provides flexible dependency management and dead simple installation.

via CocoaPods

Install CocoaPods if not already available:

$ [sudo] gem install cocoapods
$ pod setup

Change to the directory of your Xcode project, and Create and Edit your Podfile and add Animation Extensions:

$ cd /path/to/MyProject
$ touch Podfile
$ edit Podfile
target "YOUR PROJECT" do
	platform :ios, '11.0'
	pod 'UIView+AnimationExtensions', '~> 2.0.0'
end

Install into your project:

$ pod install

Open your project in Xcode from the .xcworkspace file (not the usual project file)

$ open MyProject.xcworkspace

Please note that if your installation fails, it may be because you are installing with a version of Git lower than CocoaPods is expecting. You can get a full picture of the installation details by executing pod install --verbose.

Using Animation Extensions in a Swift Project

Install Animation Extensions using one of the above methods. Then

  1. If Animation Extensions are built as a dynamic framework, add:

    @import UIView+AnimationExtensions;

  2. If Animation Extensions are built as a static library, add into the bridging header for your Swift project:

    #import <UIView+AnimationExtensions/UIView+AnimationExtensions.h>

Thread Safety

UIView Animation Extensions is a category on UIView and - as with all UIKit components - it should only be accessed from the main thread.

License

This code is distributed under the terms and conditions of the CC0 v1.0 license.

Copyright (c) 2017 Rafał Sroka

Credits

Animation Extensions are brought to you by Rafał Sroka.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].