Compare commits
278 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 52174249fa | |||
| 2ea00f8238 | |||
| 50d0c1feaa | |||
| 445857fd92 | |||
| 76d074df03 | |||
| 3665d14c7a | |||
| 1bce9a939c | |||
| e546c49294 | |||
| 205354aa41 | |||
| 9687519cee | |||
| 0c07d6d8ed | |||
| 800567befc | |||
| e909d06015 | |||
| f5c9a9e444 | |||
| dd12ebf6a1 | |||
| 1799b007d7 | |||
| 85683d5870 | |||
| eccd00bc32 | |||
| 749c4a2be2 | |||
| ab650eda04 | |||
| 22f66aef17 | |||
| 2f54635f3a | |||
| 3fc716a0a6 | |||
| ba3c230eae | |||
| d7d08b2d77 | |||
| 8a0a3db9b4 | |||
| 607c2fa353 | |||
| f6723b656b | |||
| 9ddd20ee80 | |||
| d5405cf575 | |||
| 07337c67fd | |||
| c19146ef3a | |||
| 66eefb049b | |||
| 8a21f0e246 | |||
| d38f4cd350 | |||
| dacd232c4e | |||
| 25b5cd3c6f | |||
| 115a7d6eb6 | |||
| 80a5fc475f | |||
| 8234acfd58 | |||
| cf7146ed65 | |||
| 745131cd14 | |||
| 3fd4b16001 | |||
| f85db3226c | |||
| 1624f6b0c1 | |||
| 7104a8b763 | |||
| a64154cac0 | |||
| a410d7de58 | |||
| 05a3517d3c | |||
| e68a67ce46 | |||
| 6d9c386d29 | |||
| 6d44e6bfd4 | |||
| 13ce698771 | |||
| a07ebd9b3d | |||
| 50456d20f8 | |||
| 3801cd7e42 | |||
| 3dd5a62367 | |||
| ccb77d17b6 | |||
| 17e56426f4 | |||
| 685eb6ad2a | |||
| a0bb6313a3 | |||
| fd24e7c5af | |||
| 91f325c98d | |||
| c7f408943c | |||
| e5a90fdae3 | |||
| 79f4e41b7f | |||
| 976aef7b8e | |||
| 44b4b8b977 | |||
| aa02604c5f | |||
| e6bac4578e | |||
| d88a779dbc | |||
| 85a4087618 | |||
| 0c1e364439 | |||
| c987edae30 | |||
| 598ecf2788 | |||
| 519b05cfb9 | |||
| 9ea6693e58 | |||
| af57f66326 | |||
| 865dd9f07d | |||
| 0ef38b84a9 | |||
| e89ed595c5 | |||
| 73ccf08668 | |||
| 6f4ed9c0da | |||
| af732e1be9 | |||
| 53b1ab2ea7 | |||
| 5349e333b7 | |||
| c91ca6aac3 | |||
| b8ace96af5 | |||
| 8c79c11796 | |||
| 5421db8688 | |||
| 1173b4f4c1 | |||
| 0c2a124d4f | |||
| f182937e58 | |||
| 3ba7d92988 | |||
| 51436dbc01 | |||
| 2509b652b3 | |||
| d3ab502ce1 | |||
| 227bc65b48 | |||
| c8b2481fc8 | |||
| c9851ab91c | |||
| 47dbef6491 | |||
| 059c20c8d8 | |||
| 9323010bb5 | |||
| df6c959744 | |||
| a2400299c8 | |||
| 0f6e9b577c | |||
| 1f8260cec5 | |||
| c03229ceb8 | |||
| fbe2592a16 | |||
| bdfecd24a6 | |||
| 65dae9f9cf | |||
| bddfcb569a | |||
| af85d5d2ee | |||
| 9e224a29f6 | |||
| 827fb6ebf2 | |||
| a67358d8ea | |||
| bc1d66606a | |||
| 2ed27276f1 | |||
| d59ac31d62 | |||
| 439948e60f | |||
| 45da97d5f2 | |||
| 87a1580bf7 | |||
| b999173a6d | |||
| 36899687d2 | |||
| 1f1ee2ddc8 | |||
| bdaaa7e2aa | |||
| f6a68872a9 | |||
| ce75bc4c5d | |||
| 0fd8338e32 | |||
| 953158a4a4 | |||
| cfafeec5a0 | |||
| f20b1df38a | |||
| 17d3376876 | |||
| 6c00c162cf | |||
| cb1d273a9d | |||
| a1badfd79b | |||
| 67adbdbf17 | |||
| f022291904 | |||
| cc47bce6d8 | |||
| fc65f3c673 | |||
| 28a40e19f3 | |||
| ceaf333e21 | |||
| 4a8d57887c | |||
| 277994b631 | |||
| 9653dcab96 | |||
| 85f7e14922 | |||
| d5699a655f | |||
| c7405c1cfa | |||
| 3c3ecd1c36 | |||
| 8ba75aa099 | |||
| fbaf88bb72 | |||
| a5070b7acd | |||
| e411e0a3c7 | |||
| c6992193e6 | |||
| 22643ca5e4 | |||
| 6bee678426 | |||
| 65681cdff1 | |||
| 6e077ed998 | |||
| 26e9821d6d | |||
| 7731e3e7a4 | |||
| 370969aab7 | |||
| a5eab6423f | |||
| 5a4d2736c7 | |||
| a4aefde8c6 | |||
| 9183738146 | |||
| 3991e4b390 | |||
| 5e54e74e2c | |||
| 0c61ee42b9 | |||
| b60cbf6b44 | |||
| 3ed5534cec | |||
| 9119d6197f | |||
| d6ddd0523c | |||
| b6f951c259 | |||
| 0bba6dca3e | |||
| b3d6af865e | |||
| 50a7da203d | |||
| 07a53512c7 | |||
| 1a97b60e10 | |||
| 40c6b88263 | |||
| ac58f107e1 | |||
| 7436b124a1 | |||
| 0fcc91c96f | |||
| 39676842a9 | |||
| 8454fbec2f | |||
| ad8bf04f5f | |||
| 46d5f17469 | |||
| 4a797994f0 | |||
| 585f101e1e | |||
| 1b0c1bf816 | |||
| e0fc65a9fd | |||
| c08e62d506 | |||
| fb138490b7 | |||
| ddf88c6e51 | |||
| 571975ced6 | |||
| 9d288968d5 | |||
| 6a709e68ad | |||
| ddfd47eefc | |||
| 0880264526 | |||
| 0ed6aefb0c | |||
| 4f631247f1 | |||
| 367f396777 | |||
| 3f7b4f0577 | |||
| 1619456fdf | |||
| cc5030d894 | |||
| 9e12256426 | |||
| c23618694a | |||
| 385221363f | |||
| 77166225b2 | |||
| c07a13b8da | |||
| 7e73193178 | |||
| 42006d7e53 | |||
| 5bb75ba91e | |||
| 2c8e10eec5 | |||
| ec315e1ccf | |||
| e35839fa40 | |||
| 6e69ec2289 | |||
| 1db9f674a3 | |||
| 1a0d0729e0 | |||
| 1b59bcf368 | |||
| 4204720b97 | |||
| 034fddc42e | |||
| a27a702998 | |||
| ce3cc6aecd | |||
| 78a1f92efc | |||
| 38e37b0d8e | |||
| 84664786a1 | |||
| c6f689eec0 | |||
| 6ac1afe512 | |||
| b2f3b39bba | |||
| 4be850646c | |||
| 4d71409ed4 | |||
| d0f38ebd44 | |||
| 3f282e414f | |||
| 1f19385369 | |||
| 44d99a95cd | |||
| a5778ae881 | |||
| 3fce56b332 | |||
| eced9ddada | |||
| ff663c7479 | |||
| 4dfb3bcc04 | |||
| 131d5fc19b | |||
| 01c43b62a6 | |||
| 787fd76fac | |||
| bf7115099b | |||
| d8e22ba966 | |||
| c74bac862d | |||
| c1477f8a22 | |||
| 1583d45308 | |||
| 622e6644db | |||
| 4022ae4a62 | |||
| dad721e75d | |||
| f6c2957028 | |||
| 951043700b | |||
| 811a9d6df3 | |||
| 175ee28e01 | |||
| 08ca7cc2a9 | |||
| 62e4fc8c41 | |||
| c68b0d7145 | |||
| 25c065a47e | |||
| 8291ae94db | |||
| 9c83aa7190 | |||
| c45cf5992b | |||
| 33804a6de7 | |||
| 67e46bd3f9 | |||
| a24f1d6ffc | |||
| 3f47a42e84 | |||
| 40f35edce2 | |||
| 91fced9206 | |||
| 9b4fe35dc9 | |||
| e7fde59dcf | |||
| 88d22604fd | |||
| fb4499bce4 | |||
| 6b6b041dc7 | |||
| f64338bc01 | |||
| 8810c1957b | |||
| fb3ec8e6c4 | |||
| d13c9914f9 | |||
| c3622b5912 |
@@ -32,3 +32,5 @@ DerivedData
|
||||
|
||||
Carthage/Build
|
||||
Status API Training Shop Blog About Pricing
|
||||
|
||||
.DS_Store
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
4.2
|
||||
@@ -1,6 +1,11 @@
|
||||
osx_image: xcode7.2
|
||||
osx_image: xcode10.2
|
||||
language: objective-c
|
||||
xcode_sdk: iphonesimulator12.1
|
||||
|
||||
xcode_project: RAMAnimatedTabBarDemo/RAMAnimatedTabBarDemo.xcodeproj
|
||||
xcode_scheme: RAMAnimatedTabBarDemo
|
||||
xcode_sdk: iphonesimulator
|
||||
xcode_scheme: RAMAnimatedTabBarController
|
||||
|
||||
# whitelist
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
// swift-tools-version:5.1
|
||||
//
|
||||
// Package.swift
|
||||
//
|
||||
// Copyright (c) Ramotion Inc. (https://www.ramotion.com/)
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
|
||||
import PackageDescription
|
||||
|
||||
|
||||
let package = Package(
|
||||
name: "RAMAnimatedTabBarController",
|
||||
platforms: [
|
||||
.iOS(.v9)
|
||||
],
|
||||
products: [
|
||||
.library(name: "RAMAnimatedTabBarController",
|
||||
targets: ["RAMAnimatedTabBarController"]),
|
||||
],
|
||||
targets: [
|
||||
.target(name: "RAMAnimatedTabBarController",
|
||||
path: "RAMAnimatedTabBarController")
|
||||
],
|
||||
swiftLanguageVersions: [.v5]
|
||||
)
|
||||
@@ -1,12 +1,11 @@
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'RAMAnimatedTabBarController'
|
||||
s.version = '1.2.1'
|
||||
s.version = '5.2.0'
|
||||
s.license = 'MIT'
|
||||
s.summary = 'RAMAnimatedTabBarController is a Swift module for adding animation to tabbar items.'
|
||||
s.homepage = 'https://github.com/Ramotion/animated-tab-bar'
|
||||
s.authors = { 'Juri Vasylenko' => 'juri.v@ramotion.com' }
|
||||
s.source = { :git => 'https://github.com/Ramotion/animated-tab-bar.git', :tag => s.version.to_s }
|
||||
s.ios.deployment_target = '8.0'
|
||||
s.ios.deployment_target = '9.0'
|
||||
s.source_files = "RAMAnimatedTabBarController/*.swift", "RAMAnimatedTabBarController/**/*.swift"
|
||||
s.requires_arc = true
|
||||
end
|
||||
|
||||
@@ -22,50 +22,69 @@
|
||||
|
||||
import UIKit
|
||||
|
||||
/// The RAMBounceAnimation class provides bounce animation.
|
||||
open class RAMBounceAnimation: RAMItemAnimation {
|
||||
|
||||
public class RAMBounceAnimation : RAMItemAnimation {
|
||||
/**
|
||||
Start animation, method call when UITabBarItem is selected
|
||||
|
||||
override public func playAnimation(icon : UIImageView, textLabel : UILabel) {
|
||||
- parameter icon: animating UITabBarItem icon
|
||||
- parameter textLabel: animating UITabBarItem textLabel
|
||||
*/
|
||||
open override func playAnimation(_ icon: UIImageView, textLabel: UILabel) {
|
||||
playBounceAnimation(icon)
|
||||
textLabel.textColor = textSelectedColor
|
||||
}
|
||||
|
||||
override public func deselectAnimation(icon : UIImageView, textLabel : UILabel, defaultTextColor : UIColor, defaultIconColor: UIColor) {
|
||||
/**
|
||||
Start animation, method call when UITabBarItem is unselected
|
||||
|
||||
- parameter icon: animating UITabBarItem icon
|
||||
- parameter textLabel: animating UITabBarItem textLabel
|
||||
- parameter defaultTextColor: default UITabBarItem text color
|
||||
- parameter defaultIconColor: default UITabBarItem icon color
|
||||
*/
|
||||
open override func deselectAnimation(_ icon: UIImageView, textLabel: UILabel, defaultTextColor: UIColor, defaultIconColor: UIColor) {
|
||||
textLabel.textColor = defaultTextColor
|
||||
|
||||
|
||||
if let iconImage = icon.image {
|
||||
let renderMode = CGColorGetAlpha(defaultIconColor.CGColor) == 0 ? UIImageRenderingMode.AlwaysOriginal :
|
||||
UIImageRenderingMode.AlwaysTemplate
|
||||
let renderImage = iconImage.imageWithRenderingMode(renderMode)
|
||||
let renderMode = defaultIconColor.cgColor.alpha == 0 ? UIImage.RenderingMode.alwaysOriginal :
|
||||
UIImage.RenderingMode.alwaysTemplate
|
||||
let renderImage = iconImage.withRenderingMode(renderMode)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = defaultIconColor
|
||||
}
|
||||
}
|
||||
|
||||
override public func selectedState(icon : UIImageView, textLabel : UILabel) {
|
||||
/**
|
||||
Method call when TabBarController did load
|
||||
|
||||
- parameter icon: animating UITabBarItem icon
|
||||
- parameter textLabel: animating UITabBarItem textLabel
|
||||
*/
|
||||
open override func selectedState(_ icon: UIImageView, textLabel: UILabel) {
|
||||
textLabel.textColor = textSelectedColor
|
||||
|
||||
|
||||
if let iconImage = icon.image {
|
||||
let renderImage = iconImage.imageWithRenderingMode(.AlwaysTemplate)
|
||||
let renderImage = iconImage.withRenderingMode(.alwaysTemplate)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = iconSelectedColor
|
||||
}
|
||||
}
|
||||
|
||||
func playBounceAnimation(icon : UIImageView) {
|
||||
func playBounceAnimation(_ icon: UIImageView) {
|
||||
|
||||
let bounceAnimation = CAKeyframeAnimation(keyPath: Constants.AnimationKeys.Scale)
|
||||
bounceAnimation.values = [1.0 ,1.4, 0.9, 1.15, 0.95, 1.02, 1.0]
|
||||
bounceAnimation.duration = NSTimeInterval(duration)
|
||||
bounceAnimation.calculationMode = kCAAnimationCubic
|
||||
let bounceAnimation = CAKeyframeAnimation(keyPath: Constants.AnimationKeys.scale)
|
||||
bounceAnimation.values = [1.0, 1.4, 0.9, 1.15, 0.95, 1.02, 1.0]
|
||||
bounceAnimation.duration = TimeInterval(duration)
|
||||
bounceAnimation.calculationMode = CAAnimationCalculationMode.cubic
|
||||
|
||||
icon.layer.add(bounceAnimation, forKey: nil)
|
||||
|
||||
icon.layer.addAnimation(bounceAnimation, forKey: nil)
|
||||
|
||||
if let iconImage = icon.image {
|
||||
let renderImage = iconImage.imageWithRenderingMode(.AlwaysTemplate)
|
||||
let renderImage = iconImage.withRenderingMode(.alwaysTemplate)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = iconSelectedColor
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -20,31 +20,32 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
import UIKit
|
||||
import QuartzCore
|
||||
import UIKit
|
||||
|
||||
public class RAMFrameItemAnimation: RAMItemAnimation {
|
||||
/// The RAMFrameItemAnimation class provides keyframe animation.
|
||||
open class RAMFrameItemAnimation: RAMItemAnimation {
|
||||
|
||||
@nonobjc private var animationImages : Array<CGImage> = Array()
|
||||
@nonobjc fileprivate var animationImages: Array<CGImage> = Array()
|
||||
|
||||
public var selectedImage : UIImage!
|
||||
var selectedImage: UIImage!
|
||||
|
||||
@IBInspectable public var isDeselectAnimation: Bool = true
|
||||
@IBInspectable public var imagesPath: String!
|
||||
/// A Boolean value indicated plaing revers animation when UITabBarItem unselected, if false image change immediately, defalut value true
|
||||
@IBInspectable open var isDeselectAnimation: Bool = true
|
||||
|
||||
override public func awakeFromNib() {
|
||||
/// path to array of image names from plist file
|
||||
@IBInspectable open var imagesPath: String!
|
||||
|
||||
guard let path = NSBundle.mainBundle().pathForResource(imagesPath, ofType:"plist") else {
|
||||
open override func awakeFromNib() {
|
||||
|
||||
guard let path = Bundle.main.path(forResource: imagesPath, ofType: "plist") else {
|
||||
fatalError("don't found plist")
|
||||
}
|
||||
|
||||
guard let dict : NSDictionary = NSDictionary(contentsOfFile: path) else {
|
||||
guard case let animationImagesName as [String] = NSArray(contentsOfFile: path) else {
|
||||
fatalError()
|
||||
}
|
||||
|
||||
guard let animationImagesName = dict["images"] as? Array<String> else {
|
||||
fatalError()
|
||||
}
|
||||
createImagesArray(animationImagesName)
|
||||
|
||||
// selected image
|
||||
@@ -52,56 +53,80 @@ public class RAMFrameItemAnimation: RAMItemAnimation {
|
||||
selectedImage = UIImage(named: selectedImageName)
|
||||
}
|
||||
|
||||
|
||||
func createImagesArray(imageNames : Array<String>) {
|
||||
for name : String in imageNames {
|
||||
if let image = UIImage(named: name)?.CGImage {
|
||||
func createImagesArray(_ imageNames: Array<String>) {
|
||||
for name: String in imageNames {
|
||||
if let image = UIImage(named: name)?.cgImage {
|
||||
animationImages.append(image)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: public
|
||||
|
||||
public func setAnimationImages(images: Array<UIImage>) {
|
||||
var animationImages = Array<CGImage>()
|
||||
for image in images {
|
||||
if let cgImage = image.CGImage {
|
||||
animationImages.append(cgImage)
|
||||
}
|
||||
|
||||
// MARK: public
|
||||
|
||||
/**
|
||||
Set images for keyframe animation
|
||||
|
||||
- parameter images: images for keyframe animation
|
||||
*/
|
||||
open func setAnimationImages(_ images: Array<UIImage>) {
|
||||
var animationImages = Array<CGImage>()
|
||||
for image in images {
|
||||
if let cgImage = image.cgImage {
|
||||
animationImages.append(cgImage)
|
||||
}
|
||||
}
|
||||
self.animationImages = animationImages
|
||||
}
|
||||
self.animationImages = animationImages
|
||||
}
|
||||
|
||||
// MARK: RAMItemAnimationProtocol
|
||||
|
||||
override public func playAnimation(icon : UIImageView, textLabel : UILabel) {
|
||||
// MARK: RAMItemAnimationProtocol
|
||||
|
||||
playFrameAnimation(icon, images:animationImages)
|
||||
/**
|
||||
Start animation, method call when UITabBarItem is selected
|
||||
|
||||
- parameter icon: animating UITabBarItem icon
|
||||
- parameter textLabel: animating UITabBarItem textLabel
|
||||
*/
|
||||
open override func playAnimation(_ icon: UIImageView, textLabel: UILabel) {
|
||||
|
||||
playFrameAnimation(icon, images: animationImages)
|
||||
textLabel.textColor = textSelectedColor
|
||||
}
|
||||
|
||||
override public func deselectAnimation(icon : UIImageView, textLabel : UILabel, defaultTextColor : UIColor, defaultIconColor : UIColor) {
|
||||
/**
|
||||
Start animation, method call when UITabBarItem is unselected
|
||||
|
||||
- parameter icon: animating UITabBarItem icon
|
||||
- parameter textLabel: animating UITabBarItem textLabel
|
||||
- parameter defaultTextColor: default UITabBarItem text color
|
||||
- parameter defaultIconColor: default UITabBarItem icon color
|
||||
*/
|
||||
open override func deselectAnimation(_ icon: UIImageView, textLabel: UILabel, defaultTextColor: UIColor, defaultIconColor _: UIColor) {
|
||||
if isDeselectAnimation {
|
||||
playFrameAnimation(icon, images:animationImages.reverse())
|
||||
playFrameAnimation(icon, images: animationImages.reversed())
|
||||
}
|
||||
|
||||
textLabel.textColor = defaultTextColor
|
||||
}
|
||||
|
||||
override public func selectedState(icon : UIImageView, textLabel : UILabel) {
|
||||
/**
|
||||
Method call when TabBarController did load
|
||||
|
||||
- parameter icon: animating UITabBarItem icon
|
||||
- parameter textLabel: animating UITabBarItem textLabel
|
||||
*/
|
||||
open override func selectedState(_ icon: UIImageView, textLabel: UILabel) {
|
||||
icon.image = selectedImage
|
||||
textLabel.textColor = textSelectedColor
|
||||
}
|
||||
|
||||
@nonobjc func playFrameAnimation(icon : UIImageView, images : Array<CGImage>) {
|
||||
let frameAnimation = CAKeyframeAnimation(keyPath: Constants.AnimationKeys.KeyFrame)
|
||||
frameAnimation.calculationMode = kCAAnimationDiscrete
|
||||
frameAnimation.duration = NSTimeInterval(duration)
|
||||
@nonobjc func playFrameAnimation(_ icon: UIImageView, images: Array<CGImage>) {
|
||||
let frameAnimation = CAKeyframeAnimation(keyPath: Constants.AnimationKeys.keyFrame)
|
||||
frameAnimation.calculationMode = CAAnimationCalculationMode.discrete
|
||||
frameAnimation.duration = TimeInterval(duration)
|
||||
frameAnimation.values = images
|
||||
frameAnimation.repeatCount = 1
|
||||
frameAnimation.removedOnCompletion = false
|
||||
frameAnimation.fillMode = kCAFillModeForwards
|
||||
icon.layer.addAnimation(frameAnimation, forKey: nil)
|
||||
frameAnimation.isRemovedOnCompletion = false
|
||||
frameAnimation.fillMode = CAMediaTimingFillMode.forwards
|
||||
icon.layer.add(frameAnimation, forKey: nil)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,94 +23,113 @@
|
||||
|
||||
import UIKit
|
||||
|
||||
/// The RAMFumeAnimation class provides bounce animation.
|
||||
open class RAMFumeAnimation: RAMItemAnimation {
|
||||
|
||||
public class RAMFumeAnimation : RAMItemAnimation {
|
||||
/**
|
||||
Start animation, method call when UITabBarItem is selected
|
||||
|
||||
override public func playAnimation(icon : UIImageView, textLabel : UILabel) {
|
||||
playMoveIconAnimation(icon, values:[icon.center.y, icon.center.y + 4.0])
|
||||
- parameter icon: animating UITabBarItem icon
|
||||
- parameter textLabel: animating UITabBarItem textLabel
|
||||
*/
|
||||
open override func playAnimation(_ icon: UIImageView, textLabel: UILabel) {
|
||||
playMoveIconAnimation(icon, values: [icon.center.y as AnyObject, (icon.center.y + 4.0) as AnyObject])
|
||||
playLabelAnimation(textLabel)
|
||||
textLabel.textColor = textSelectedColor
|
||||
|
||||
|
||||
if let iconImage = icon.image {
|
||||
let renderImage = iconImage.imageWithRenderingMode(.AlwaysTemplate)
|
||||
let renderImage = iconImage.withRenderingMode(.alwaysTemplate)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = textSelectedColor
|
||||
icon.tintColor = iconSelectedColor
|
||||
}
|
||||
}
|
||||
|
||||
override public func deselectAnimation(icon : UIImageView, textLabel : UILabel, defaultTextColor : UIColor, defaultIconColor : UIColor) {
|
||||
|
||||
playMoveIconAnimation(icon, values:[icon.center.y + 4.0, icon.center.y])
|
||||
/**
|
||||
Start animation, method call when UITabBarItem is unselected
|
||||
|
||||
- parameter icon: animating UITabBarItem icon
|
||||
- parameter textLabel: animating UITabBarItem textLabel
|
||||
- parameter defaultTextColor: default UITabBarItem text color
|
||||
- parameter defaultIconColor: default UITabBarItem icon color
|
||||
*/
|
||||
open override func deselectAnimation(_ icon: UIImageView, textLabel: UILabel, defaultTextColor: UIColor, defaultIconColor: UIColor) {
|
||||
|
||||
playMoveIconAnimation(icon, values: [(icon.center.y + 4.0) as AnyObject, icon.center.y as AnyObject])
|
||||
playDeselectLabelAnimation(textLabel)
|
||||
textLabel.textColor = defaultTextColor
|
||||
|
||||
|
||||
if let iconImage = icon.image {
|
||||
let renderMode = CGColorGetAlpha(defaultIconColor.CGColor) == 0 ? UIImageRenderingMode.AlwaysOriginal :
|
||||
UIImageRenderingMode.AlwaysTemplate
|
||||
let renderImage = iconImage.imageWithRenderingMode(renderMode)
|
||||
let renderMode = defaultIconColor.cgColor.alpha == 0 ? UIImage.RenderingMode.alwaysOriginal :
|
||||
UIImage.RenderingMode.alwaysTemplate
|
||||
let renderImage = iconImage.withRenderingMode(renderMode)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = defaultIconColor
|
||||
}
|
||||
}
|
||||
|
||||
override public func selectedState(icon : UIImageView, textLabel : UILabel) {
|
||||
/**
|
||||
Method call when TabBarController did load
|
||||
|
||||
playMoveIconAnimation(icon, values:[icon.center.y + 12.0])
|
||||
- parameter icon: animating UITabBarItem icon
|
||||
- parameter textLabel: animating UITabBarItem textLabel
|
||||
*/
|
||||
open override func selectedState(_ icon: UIImageView, textLabel: UILabel) {
|
||||
|
||||
playMoveIconAnimation(icon, values: [(icon.center.y + 12.0) as AnyObject])
|
||||
textLabel.alpha = 0
|
||||
textLabel.textColor = textSelectedColor
|
||||
|
||||
|
||||
if let iconImage = icon.image {
|
||||
let renderImage = iconImage.imageWithRenderingMode(.AlwaysTemplate)
|
||||
let renderImage = iconImage.withRenderingMode(.alwaysTemplate)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = textSelectedColor
|
||||
icon.tintColor = iconSelectedColor
|
||||
}
|
||||
}
|
||||
|
||||
func playMoveIconAnimation(icon : UIImageView, values: [AnyObject]) {
|
||||
func playMoveIconAnimation(_ icon: UIImageView, values: [AnyObject]) {
|
||||
|
||||
let yPositionAnimation = createAnimation(Constants.AnimationKeys.PositionY, values:values, duration:duration / 2)
|
||||
let yPositionAnimation = createAnimation(Constants.AnimationKeys.positionY, values: values, duration: duration / 2)
|
||||
|
||||
icon.layer.addAnimation(yPositionAnimation, forKey: nil)
|
||||
icon.layer.add(yPositionAnimation, forKey: nil)
|
||||
}
|
||||
|
||||
// MARK: select animation
|
||||
|
||||
func playLabelAnimation(textLabel: UILabel) {
|
||||
func playLabelAnimation(_ textLabel: UILabel) {
|
||||
|
||||
let yPositionAnimation = createAnimation(Constants.AnimationKeys.PositionY, values:[textLabel.center.y, textLabel.center.y - 60.0], duration:duration)
|
||||
yPositionAnimation.fillMode = kCAFillModeRemoved
|
||||
yPositionAnimation.removedOnCompletion = true
|
||||
textLabel.layer.addAnimation(yPositionAnimation, forKey: nil)
|
||||
let yPositionAnimation = createAnimation(Constants.AnimationKeys.positionY, values: [textLabel.center.y as AnyObject, (textLabel.center.y - 60.0) as AnyObject], duration: duration)
|
||||
yPositionAnimation.fillMode = CAMediaTimingFillMode.removed
|
||||
yPositionAnimation.isRemovedOnCompletion = true
|
||||
textLabel.layer.add(yPositionAnimation, forKey: nil)
|
||||
|
||||
let scaleAnimation = createAnimation(Constants.AnimationKeys.Scale, values:[1.0 ,2.0], duration:duration)
|
||||
scaleAnimation.fillMode = kCAFillModeRemoved
|
||||
scaleAnimation.removedOnCompletion = true
|
||||
textLabel.layer.addAnimation(scaleAnimation, forKey: nil)
|
||||
let scaleAnimation = createAnimation(Constants.AnimationKeys.scale, values: [1.0 as AnyObject, 2.0 as AnyObject], duration: duration)
|
||||
scaleAnimation.fillMode = CAMediaTimingFillMode.removed
|
||||
scaleAnimation.isRemovedOnCompletion = true
|
||||
textLabel.layer.add(scaleAnimation, forKey: nil)
|
||||
|
||||
let opacityAnimation = createAnimation(Constants.AnimationKeys.Opacity, values:[1.0 ,0.0], duration:duration)
|
||||
textLabel.layer.addAnimation(opacityAnimation, forKey: nil)
|
||||
let opacityAnimation = createAnimation(Constants.AnimationKeys.opacity, values: [1.0 as AnyObject, 0.0 as AnyObject], duration: duration)
|
||||
textLabel.layer.add(opacityAnimation, forKey: nil)
|
||||
}
|
||||
|
||||
func createAnimation(keyPath: String, values: [AnyObject], duration: CGFloat)->CAKeyframeAnimation {
|
||||
|
||||
func createAnimation(_ keyPath: String, values: [AnyObject], duration: CGFloat) -> CAKeyframeAnimation {
|
||||
|
||||
let animation = CAKeyframeAnimation(keyPath: keyPath)
|
||||
animation.values = values
|
||||
animation.duration = NSTimeInterval(duration)
|
||||
animation.calculationMode = kCAAnimationCubic
|
||||
animation.fillMode = kCAFillModeForwards
|
||||
animation.removedOnCompletion = false
|
||||
animation.duration = TimeInterval(duration)
|
||||
animation.calculationMode = CAAnimationCalculationMode.cubic
|
||||
animation.fillMode = CAMediaTimingFillMode.forwards
|
||||
animation.isRemovedOnCompletion = false
|
||||
return animation
|
||||
}
|
||||
|
||||
// MARK: deselect animation
|
||||
|
||||
func playDeselectLabelAnimation(textLabel: UILabel) {
|
||||
|
||||
let yPositionAnimation = createAnimation(Constants.AnimationKeys.PositionY, values:[textLabel.center.y + 15, textLabel.center.y], duration:duration)
|
||||
textLabel.layer.addAnimation(yPositionAnimation, forKey: nil)
|
||||
func playDeselectLabelAnimation(_ textLabel: UILabel) {
|
||||
|
||||
let opacityAnimation = createAnimation(Constants.AnimationKeys.Opacity, values:[0, 1], duration:duration)
|
||||
textLabel.layer.addAnimation(opacityAnimation, forKey: nil)
|
||||
let yPositionAnimation = createAnimation(Constants.AnimationKeys.positionY, values: [(textLabel.center.y + 15) as AnyObject, textLabel.center.y as AnyObject], duration: duration)
|
||||
textLabel.layer.add(yPositionAnimation, forKey: nil)
|
||||
|
||||
let opacityAnimation = createAnimation(Constants.AnimationKeys.opacity, values: [0 as AnyObject, 1 as AnyObject], duration: duration)
|
||||
textLabel.layer.add(opacityAnimation, forKey: nil)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -20,83 +20,110 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
import UIKit
|
||||
import QuartzCore
|
||||
import UIKit
|
||||
|
||||
public enum RAMRotationDirection {
|
||||
case Left
|
||||
case Right
|
||||
}
|
||||
/// The RAMRotationAnimation class provides rotation animation.
|
||||
open class RAMRotationAnimation: RAMItemAnimation {
|
||||
|
||||
public class RAMRotationAnimation : RAMItemAnimation {
|
||||
/**
|
||||
Animation direction
|
||||
|
||||
public var direction : RAMRotationDirection!
|
||||
- Left: left direction
|
||||
- Right: right direction
|
||||
*/
|
||||
public enum RAMRotationDirection {
|
||||
case left
|
||||
case right
|
||||
}
|
||||
|
||||
override public func playAnimation(icon : UIImageView, textLabel : UILabel) {
|
||||
/// Animation direction (left, right)
|
||||
open var direction: RAMRotationDirection!
|
||||
|
||||
/**
|
||||
Start animation, method call when UITabBarItem is selected
|
||||
|
||||
- parameter icon: animating UITabBarItem icon
|
||||
- parameter textLabel: animating UITabBarItem textLabel
|
||||
*/
|
||||
open override func playAnimation(_ icon: UIImageView, textLabel: UILabel) {
|
||||
playRoatationAnimation(icon)
|
||||
textLabel.textColor = textSelectedColor
|
||||
}
|
||||
|
||||
override public func deselectAnimation(icon : UIImageView, textLabel : UILabel, defaultTextColor : UIColor, defaultIconColor : UIColor) {
|
||||
/**
|
||||
Start animation, method call when UITabBarItem is unselected
|
||||
|
||||
- parameter icon: animating UITabBarItem icon
|
||||
- parameter textLabel: animating UITabBarItem textLabel
|
||||
- parameter defaultTextColor: default UITabBarItem text color
|
||||
- parameter defaultIconColor: default UITabBarItem icon color
|
||||
*/
|
||||
open override func deselectAnimation(_ icon: UIImageView, textLabel: UILabel, defaultTextColor: UIColor, defaultIconColor: UIColor) {
|
||||
textLabel.textColor = defaultTextColor
|
||||
|
||||
|
||||
if let iconImage = icon.image {
|
||||
let renderMode = CGColorGetAlpha(defaultIconColor.CGColor) == 0 ? UIImageRenderingMode.AlwaysOriginal :
|
||||
UIImageRenderingMode.AlwaysTemplate
|
||||
let renderImage = iconImage.imageWithRenderingMode(renderMode)
|
||||
let renderMode = defaultIconColor.cgColor.alpha == 0 ? UIImage.RenderingMode.alwaysOriginal :
|
||||
UIImage.RenderingMode.alwaysTemplate
|
||||
let renderImage = iconImage.withRenderingMode(renderMode)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = defaultIconColor
|
||||
}
|
||||
}
|
||||
|
||||
override public func selectedState(icon : UIImageView, textLabel : UILabel) {
|
||||
/**
|
||||
Method call when TabBarController did load
|
||||
|
||||
- parameter icon: animating UITabBarItem icon
|
||||
- parameter textLabel: animating UITabBarItem textLabel
|
||||
*/
|
||||
open override func selectedState(_ icon: UIImageView, textLabel: UILabel) {
|
||||
textLabel.textColor = textSelectedColor
|
||||
|
||||
|
||||
if let iconImage = icon.image {
|
||||
let renderImage = iconImage.imageWithRenderingMode(.AlwaysTemplate)
|
||||
let renderImage = iconImage.withRenderingMode(.alwaysTemplate)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = textSelectedColor
|
||||
icon.tintColor = iconSelectedColor
|
||||
}
|
||||
}
|
||||
|
||||
func playRoatationAnimation(icon : UIImageView) {
|
||||
func playRoatationAnimation(_ icon: UIImageView) {
|
||||
|
||||
let rotateAnimation = CABasicAnimation(keyPath: Constants.AnimationKeys.Rotation)
|
||||
let rotateAnimation = CABasicAnimation(keyPath: Constants.AnimationKeys.rotation)
|
||||
rotateAnimation.fromValue = 0.0
|
||||
|
||||
var toValue = CGFloat(M_PI * 2.0)
|
||||
if direction != nil && direction == RAMRotationDirection.Left {
|
||||
var toValue = CGFloat.pi * 2
|
||||
if direction != nil && direction == RAMRotationDirection.left {
|
||||
toValue = toValue * -1.0
|
||||
}
|
||||
|
||||
rotateAnimation.toValue = toValue
|
||||
rotateAnimation.duration = NSTimeInterval(duration)
|
||||
rotateAnimation.duration = TimeInterval(duration)
|
||||
|
||||
icon.layer.add(rotateAnimation, forKey: nil)
|
||||
|
||||
icon.layer.addAnimation(rotateAnimation, forKey: nil)
|
||||
|
||||
if let iconImage = icon.image {
|
||||
let renderImage = iconImage.imageWithRenderingMode(.AlwaysTemplate)
|
||||
let renderImage = iconImage.withRenderingMode(.alwaysTemplate)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = iconSelectedColor
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class RAMLeftRotationAnimation : RAMRotationAnimation {
|
||||
/// The RAMLeftRotationAnimation class provides letf rotation animation.
|
||||
open class RAMLeftRotationAnimation: RAMRotationAnimation {
|
||||
|
||||
override init() {
|
||||
public override init() {
|
||||
super.init()
|
||||
direction = RAMRotationDirection.Left
|
||||
direction = RAMRotationDirection.left
|
||||
}
|
||||
}
|
||||
|
||||
/// The RAMRightRotationAnimation class provides rigth rotation animation.
|
||||
open class RAMRightRotationAnimation: RAMRotationAnimation {
|
||||
|
||||
class RAMRightRotationAnimation : RAMRotationAnimation {
|
||||
|
||||
override init() {
|
||||
public override init() {
|
||||
super.init()
|
||||
direction = RAMRotationDirection.Right
|
||||
direction = RAMRotationDirection.right
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -22,47 +22,68 @@
|
||||
|
||||
import UIKit
|
||||
|
||||
public class RAMTransitionItemAnimations : RAMItemAnimation {
|
||||
/// Transition animtion
|
||||
open class RAMTransitionItemAnimations: RAMItemAnimation {
|
||||
|
||||
public var transitionOptions : UIViewAnimationOptions!
|
||||
/// Options for animating. Default TransitionNone
|
||||
open var transitionOptions: UIView.AnimationOptions!
|
||||
|
||||
override init() {
|
||||
super.init()
|
||||
|
||||
transitionOptions = UIViewAnimationOptions.TransitionNone
|
||||
transitionOptions = UIView.AnimationOptions()
|
||||
}
|
||||
|
||||
override public func playAnimation(icon : UIImageView, textLabel : UILabel) {
|
||||
/**
|
||||
Start animation, method call when UITabBarItem is selected
|
||||
|
||||
- parameter icon: animating UITabBarItem icon
|
||||
- parameter textLabel: animating UITabBarItem textLabel
|
||||
*/
|
||||
open override func playAnimation(_ icon: UIImageView, textLabel: UILabel) {
|
||||
|
||||
selectedColor(icon, textLabel: textLabel)
|
||||
|
||||
UIView.transitionWithView(icon, duration: NSTimeInterval(duration), options: transitionOptions, animations: {
|
||||
}, completion: { _ in
|
||||
UIView.transition(with: icon, duration: TimeInterval(duration), options: transitionOptions, animations: {
|
||||
}, completion: { _ in
|
||||
})
|
||||
}
|
||||
|
||||
override public func deselectAnimation(icon : UIImageView, textLabel : UILabel, defaultTextColor : UIColor, defaultIconColor : UIColor) {
|
||||
/**
|
||||
Start animation, method call when UITabBarItem is unselected
|
||||
|
||||
- parameter icon: animating UITabBarItem icon
|
||||
- parameter textLabel: animating UITabBarItem textLabel
|
||||
- parameter defaultTextColor: default UITabBarItem text color
|
||||
- parameter defaultIconColor: default UITabBarItem icon color
|
||||
*/
|
||||
open override func deselectAnimation(_ icon: UIImageView, textLabel: UILabel, defaultTextColor: UIColor, defaultIconColor: UIColor) {
|
||||
|
||||
if let iconImage = icon.image {
|
||||
let renderMode = CGColorGetAlpha(defaultIconColor.CGColor) == 0 ? UIImageRenderingMode.AlwaysOriginal :
|
||||
UIImageRenderingMode.AlwaysTemplate
|
||||
let renderImage = iconImage.imageWithRenderingMode(renderMode)
|
||||
let renderMode = defaultIconColor.cgColor.alpha == 0 ? UIImage.RenderingMode.alwaysOriginal :
|
||||
UIImage.RenderingMode.alwaysTemplate
|
||||
let renderImage = iconImage.withRenderingMode(renderMode)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = defaultIconColor
|
||||
}
|
||||
textLabel.textColor = defaultTextColor
|
||||
}
|
||||
|
||||
override public func selectedState(icon : UIImageView, textLabel : UILabel) {
|
||||
/**
|
||||
Method call when TabBarController did load
|
||||
|
||||
- parameter icon: animating UITabBarItem icon
|
||||
- parameter textLabel: animating UITabBarItem textLabel
|
||||
*/
|
||||
open override func selectedState(_ icon: UIImageView, textLabel: UILabel) {
|
||||
|
||||
selectedColor(icon, textLabel: textLabel)
|
||||
}
|
||||
|
||||
func selectedColor(_ icon: UIImageView, textLabel: UILabel) {
|
||||
|
||||
func selectedColor(icon : UIImageView, textLabel : UILabel) {
|
||||
|
||||
if let iconImage = icon.image where iconSelectedColor != nil {
|
||||
let renderImage = iconImage.imageWithRenderingMode(.AlwaysTemplate)
|
||||
if let iconImage = icon.image, iconSelectedColor != nil {
|
||||
let renderImage = iconImage.withRenderingMode(.alwaysTemplate)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = iconSelectedColor
|
||||
}
|
||||
@@ -71,39 +92,38 @@ public class RAMTransitionItemAnimations : RAMItemAnimation {
|
||||
}
|
||||
}
|
||||
|
||||
class RAMFlipLeftTransitionItemAnimations : RAMTransitionItemAnimations {
|
||||
open class RAMFlipLeftTransitionItemAnimations: RAMTransitionItemAnimations {
|
||||
|
||||
override init() {
|
||||
public override init() {
|
||||
super.init()
|
||||
|
||||
transitionOptions = UIViewAnimationOptions.TransitionFlipFromLeft
|
||||
transitionOptions = UIView.AnimationOptions.transitionFlipFromLeft
|
||||
}
|
||||
}
|
||||
|
||||
open class RAMFlipRightTransitionItemAnimations: RAMTransitionItemAnimations {
|
||||
|
||||
class RAMFlipRightTransitionItemAnimations : RAMTransitionItemAnimations {
|
||||
|
||||
override init() {
|
||||
public override init() {
|
||||
super.init()
|
||||
|
||||
transitionOptions = UIViewAnimationOptions.TransitionFlipFromRight
|
||||
transitionOptions = UIView.AnimationOptions.transitionFlipFromRight
|
||||
}
|
||||
}
|
||||
|
||||
class RAMFlipTopTransitionItemAnimations : RAMTransitionItemAnimations {
|
||||
open class RAMFlipTopTransitionItemAnimations: RAMTransitionItemAnimations {
|
||||
|
||||
override init() {
|
||||
public override init() {
|
||||
super.init()
|
||||
|
||||
transitionOptions = UIViewAnimationOptions.TransitionFlipFromTop
|
||||
transitionOptions = UIView.AnimationOptions.transitionFlipFromTop
|
||||
}
|
||||
}
|
||||
|
||||
class RAMFlipBottomTransitionItemAnimations : RAMTransitionItemAnimations {
|
||||
open class RAMFlipBottomTransitionItemAnimations: RAMTransitionItemAnimations {
|
||||
|
||||
override init() {
|
||||
public override init() {
|
||||
super.init()
|
||||
|
||||
transitionOptions = UIViewAnimationOptions.TransitionFlipFromBottom
|
||||
transitionOptions = UIView.AnimationOptions.transitionFlipFromBottom
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
// Copyright (c) 03/05/2018. Ramotion Inc. (http://ramotion.com)
|
||||
//
|
||||
// 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.
|
||||
|
||||
import Foundation
|
||||
import UIKit
|
||||
|
||||
extension RAMAnimatedTabBarController {
|
||||
|
||||
func createBottomLine() {
|
||||
guard let currentItem = containers.first else { return }
|
||||
|
||||
let container = UIView()
|
||||
container.backgroundColor = .clear
|
||||
container.translatesAutoresizingMaskIntoConstraints = false
|
||||
|
||||
view.addSubview(container)
|
||||
|
||||
container.leadingAnchor.constraint(equalTo: view.leadingAnchor).isActive = true
|
||||
container.trailingAnchor.constraint(equalTo: view.trailingAnchor).isActive = true
|
||||
container.bottomAnchor.constraint(equalTo: view.bottomAnchor).isActive = true
|
||||
container.heightAnchor.constraint(equalToConstant: bottomLineHeight).isActive = true
|
||||
|
||||
|
||||
let line = UIView()
|
||||
line.backgroundColor = bottomLineColor
|
||||
line.translatesAutoresizingMaskIntoConstraints = false
|
||||
container.addSubview(line)
|
||||
bottomLine = line
|
||||
|
||||
lineLeadingConstraint = bottomLine?.leadingAnchor.constraint(equalTo: currentItem.leadingAnchor)
|
||||
lineLeadingConstraint?.isActive = true
|
||||
|
||||
lineHeightConstraint = bottomLine?.heightAnchor.constraint(equalToConstant: bottomLineHeight)
|
||||
lineHeightConstraint?.isActive = true
|
||||
|
||||
// add constraints
|
||||
bottomLine?.bottomAnchor.constraint(equalTo: view.bottomAnchor).isActive = true
|
||||
bottomLine?.widthAnchor.constraint(equalTo: currentItem.widthAnchor).isActive = true
|
||||
}
|
||||
|
||||
func removeBottomLine() {
|
||||
guard let bottomLine = self.bottomLine else { return }
|
||||
|
||||
bottomLine.superview?.removeFromSuperview()
|
||||
self.bottomLine = nil
|
||||
lineLeadingConstraint?.isActive = false
|
||||
lineLeadingConstraint = nil
|
||||
}
|
||||
|
||||
func setBottomLinePosition(index: Int, animated: Bool = true) {
|
||||
guard let itemsCount = tabBar.items?.count, itemsCount > index,
|
||||
let currentItem = containers.at(index) else { return }
|
||||
|
||||
lineLeadingConstraint?.isActive = false
|
||||
|
||||
lineLeadingConstraint = bottomLine?.leadingAnchor.constraint(equalTo: currentItem.leadingAnchor)
|
||||
lineLeadingConstraint?.isActive = true
|
||||
|
||||
if animated {
|
||||
UIView.animate(withDuration: bottomLineMoveDuration) { self.bottomLine?.superview?.layoutIfNeeded() }
|
||||
} else {
|
||||
self.bottomLine?.superview?.layoutIfNeeded()
|
||||
}
|
||||
}
|
||||
|
||||
func updateBottomLineHeight(to height: CGFloat) {
|
||||
lineHeightConstraint?.isActive = false
|
||||
|
||||
lineHeightConstraint = bottomLine?.heightAnchor.constraint(equalToConstant: height)
|
||||
lineHeightConstraint?.isActive = true
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// AnimationTabBarController.swift
|
||||
// RAMAnimatedTabBarController.swift
|
||||
//
|
||||
// Copyright (c) 11/10/14 Ramotion Inc. (http://ramotion.com)
|
||||
//
|
||||
@@ -22,333 +22,313 @@
|
||||
|
||||
import UIKit
|
||||
|
||||
extension RAMAnimatedTabBarItem {
|
||||
/// UITabBarController with item animations
|
||||
open class RAMAnimatedTabBarController: UITabBarController {
|
||||
|
||||
override public var badgeValue: String? {
|
||||
get {
|
||||
return badge?.text
|
||||
}
|
||||
set(newValue) {
|
||||
|
||||
if newValue == nil {
|
||||
badge?.removeFromSuperview()
|
||||
badge = nil;
|
||||
return
|
||||
/**
|
||||
The animated items displayed by the tab bar.
|
||||
**/
|
||||
open var animatedItems: [RAMAnimatedTabBarItem] {
|
||||
return tabBar.items as? [RAMAnimatedTabBarItem] ?? []
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Show bottom line for indicating selected item, default value is false
|
||||
**/
|
||||
open var isBottomLineShow: Bool = false {
|
||||
didSet {
|
||||
if isBottomLineShow {
|
||||
if bottomLine == nil { createBottomLine() }
|
||||
} else {
|
||||
if bottomLine != nil { removeBottomLine() }
|
||||
}
|
||||
|
||||
if badge == nil {
|
||||
badge = RAMBadge.bage()
|
||||
if let contanerView = self.iconView!.icon.superview {
|
||||
badge!.addBadgeOnView(contanerView)
|
||||
}
|
||||
}
|
||||
|
||||
badge?.text = newValue
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
Bottom line color
|
||||
**/
|
||||
open var bottomLineColor: UIColor = .black {
|
||||
didSet {
|
||||
bottomLine?.backgroundColor = bottomLineColor
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
Bottom line height
|
||||
**/
|
||||
open var bottomLineHeight: CGFloat = 2 {
|
||||
didSet {
|
||||
if bottomLineHeight > 0 {
|
||||
updateBottomLineHeight(to: bottomLineHeight)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
Bottom line time of animations duration
|
||||
**/
|
||||
open var bottomLineMoveDuration: TimeInterval = 0.3
|
||||
|
||||
private(set) var containers: [UIView] = []
|
||||
|
||||
open override var viewControllers: [UIViewController]? {
|
||||
didSet {
|
||||
initializeContainers()
|
||||
}
|
||||
}
|
||||
|
||||
open override func setViewControllers(_ viewControllers: [UIViewController]?, animated: Bool) {
|
||||
super.setViewControllers(viewControllers, animated: animated)
|
||||
initializeContainers()
|
||||
}
|
||||
|
||||
open override var selectedIndex: Int {
|
||||
didSet {
|
||||
self.setBottomLinePosition(index: selectedIndex)
|
||||
}
|
||||
}
|
||||
|
||||
open override var selectedViewController: UIViewController? {
|
||||
willSet {
|
||||
guard let vc = newValue,
|
||||
let index = viewControllers?.firstIndex(of: vc) else { return }
|
||||
handleSelection(index: index)
|
||||
}
|
||||
}
|
||||
|
||||
var lineHeightConstraint: NSLayoutConstraint?
|
||||
var lineLeadingConstraint: NSLayoutConstraint?
|
||||
var bottomLine: UIView?
|
||||
var arrBottomAnchor:[NSLayoutConstraint] = []
|
||||
var arrViews: [UIView] = []
|
||||
|
||||
/**
|
||||
Hide UITabBar
|
||||
|
||||
- parameter isHidden: A Boolean indicating whether the UITabBarController is displayed
|
||||
*/
|
||||
@available(*, deprecated, message: "Now you can use UITabBar isHidden")
|
||||
open func animationTabBarHidden(_ isHidden: Bool) {
|
||||
tabBar.isHidden = isHidden
|
||||
}
|
||||
|
||||
// MARK: life circle
|
||||
|
||||
open override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
initializeContainers()
|
||||
}
|
||||
|
||||
override open func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
|
||||
coordinator.animate(alongsideTransition: { (transitionCoordinatorContext) -> Void in
|
||||
self.layoutContainers()
|
||||
}, completion: { (transitionCoordinatorContext) -> Void in
|
||||
//refresh view once rotation is completed not in will transition as it returns incorrect frame size.Refresh here
|
||||
})
|
||||
super.viewWillTransition(to: size, with: coordinator)
|
||||
}
|
||||
|
||||
// MARK: create methods
|
||||
private func initializeContainers() {
|
||||
containers.forEach { $0.removeFromSuperview() }
|
||||
containers.removeAll()
|
||||
|
||||
guard let items = tabBar.items else { return }
|
||||
guard items.count <= 5 else { fatalError("More button not supported") }
|
||||
|
||||
for index in 0 ..< items.count {
|
||||
let viewContainer = UIView()
|
||||
viewContainer.isExclusiveTouch = true
|
||||
viewContainer.tag = index
|
||||
let tapGesture = UITapGestureRecognizer(target: self, action: #selector(itemTap))
|
||||
viewContainer.addGestureRecognizer(tapGesture)
|
||||
tabBar.addSubview(viewContainer)
|
||||
containers.append(viewContainer)
|
||||
}
|
||||
|
||||
if !containers.isEmpty {
|
||||
createCustomIcons(containers: containers)
|
||||
}
|
||||
|
||||
layoutContainers()
|
||||
}
|
||||
|
||||
private func layoutContainers() {
|
||||
let itemWidth = tabBar.bounds.width / CGFloat(containers.count)
|
||||
let isRTL = tabBar.userInterfaceLayoutDirection == .rightToLeft
|
||||
|
||||
for (index, container) in containers.enumerated() {
|
||||
let i = isRTL ? (containers.count - 1 - index) : index
|
||||
let frame = CGRect(x: itemWidth * CGFloat(i), y: 0, width: itemWidth, height: Theme.tabBarHeight)
|
||||
container.frame = frame
|
||||
|
||||
if let item = tabBar.items?.at(index) as? RAMAnimatedTabBarItem {
|
||||
let iconView = item.iconView?.icon
|
||||
let iconSize = iconView?.image?.size ?? CGSize(width: 30, height: 30)
|
||||
let iconX = (container.frame.width - iconSize.width) / 2 + item.titlePositionAdjustment.horizontal
|
||||
let iconY = (container.frame.height - iconSize.height) / 2 + Theme.defaultIconVerticalOffset + item.titlePositionAdjustment.vertical
|
||||
iconView?.frame = CGRect(x: iconX, y: iconY, width: iconSize.width, height: iconSize.height)
|
||||
|
||||
let label = item.iconView?.textLabel
|
||||
let labelSize = label?.sizeThatFits(CGSize.zero) ?? CGSize(width: tabBar.frame.size.width / CGFloat(containers.count), height: 20)
|
||||
let labelX = (container.frame.width - labelSize.width) / 2 + item.titlePositionAdjustment.horizontal
|
||||
let labelY = (container.frame.height) / 2 + Theme.defaultTitleVerticalOffset + item.titlePositionAdjustment.vertical
|
||||
label?.frame = CGRect(x: labelX, y: labelY, width: labelSize.width, height: labelSize.height)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private func createCustomIcons(containers: [UIView]) {
|
||||
guard let items = tabBar.items as? [RAMAnimatedTabBarItem] else {
|
||||
fatalError("items must inherit RAMAnimatedTabBarItem")
|
||||
}
|
||||
|
||||
for (index, item) in items.enumerated() {
|
||||
let container = containers[index]
|
||||
let renderMode = item.iconColor.cgColor.alpha == 0 ? UIImage.RenderingMode.alwaysOriginal :
|
||||
UIImage.RenderingMode.alwaysTemplate
|
||||
|
||||
|
||||
let iconImage = item.image ?? item.iconView?.icon.image
|
||||
let icon = UIImageView(image: iconImage?.withRenderingMode(renderMode))
|
||||
icon.tintColor = item.iconColor
|
||||
icon.highlightedImage = item.selectedImage?.withRenderingMode(renderMode)
|
||||
container.addSubview(icon)
|
||||
|
||||
|
||||
let textLabel = UILabel()
|
||||
if let title = item.title, !title.isEmpty {
|
||||
textLabel.text = title
|
||||
} else {
|
||||
textLabel.text = item.iconView?.textLabel.text
|
||||
}
|
||||
textLabel.backgroundColor = UIColor.clear
|
||||
textLabel.textColor = item.textColor
|
||||
textLabel.font = UIFont.systemFont(ofSize: item.textFontSize)
|
||||
textLabel.textAlignment = NSTextAlignment.center
|
||||
container.addSubview(textLabel)
|
||||
|
||||
|
||||
container.backgroundColor = (items as [RAMAnimatedTabBarItem])[index].bgDefaultColor
|
||||
if item.isEnabled == false {
|
||||
icon.alpha = 0.5
|
||||
textLabel.alpha = 0.5
|
||||
}
|
||||
item.iconView = (icon: icon, textLabel: textLabel)
|
||||
|
||||
if 0 == index { // selected first elemet
|
||||
item.selectedState()
|
||||
container.backgroundColor = (items as [RAMAnimatedTabBarItem])[index].bgSelectedColor
|
||||
} else {
|
||||
item.deselectedState()
|
||||
container.backgroundColor = (items as [RAMAnimatedTabBarItem])[index].bgDefaultColor
|
||||
}
|
||||
|
||||
item.image = nil
|
||||
item.title = ""
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: actions
|
||||
@objc private func itemTap(gesture: UITapGestureRecognizer) {
|
||||
guard let index = gesture.view?.tag else { return }
|
||||
handleSelection(index: index)
|
||||
}
|
||||
|
||||
private func handleSelection(index: Int) {
|
||||
guard let items = tabBar.items as? [RAMAnimatedTabBarItem] else { return }
|
||||
let currentIndex = index
|
||||
|
||||
if items[currentIndex].isEnabled == false { return }
|
||||
|
||||
let controller = children[currentIndex]
|
||||
|
||||
if let shouldSelect = delegate?.tabBarController?(self, shouldSelect: controller)
|
||||
, !shouldSelect {
|
||||
return
|
||||
}
|
||||
|
||||
if selectedIndex != currentIndex {
|
||||
let previousItem = items.at(selectedIndex)
|
||||
let previousContainer: UIView? = previousItem?.iconView?.icon.superview
|
||||
previousContainer?.backgroundColor = items[selectedIndex].bgDefaultColor
|
||||
previousItem?.deselectAnimation()
|
||||
|
||||
let currentItem: RAMAnimatedTabBarItem = items[currentIndex]
|
||||
currentItem.playAnimation()
|
||||
let currentContainer: UIView? = currentItem.iconView?.icon.superview
|
||||
currentContainer?.backgroundColor = items[currentIndex].bgSelectedColor
|
||||
|
||||
selectedIndex = index
|
||||
} else {
|
||||
if let navVC = viewControllers?[selectedIndex] as? UINavigationController {
|
||||
navVC.popToRootViewController(animated: true)
|
||||
}
|
||||
}
|
||||
delegate?.tabBarController?(self, didSelect: controller)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class RAMAnimatedTabBarItem: UITabBarItem {
|
||||
|
||||
@IBOutlet public var animation: RAMItemAnimation!
|
||||
extension RAMAnimatedTabBarController {
|
||||
|
||||
public var textFont: UIFont = UIFont.systemFontOfSize(10)
|
||||
@IBInspectable public var textColor: UIColor = UIColor.blackColor()
|
||||
@IBInspectable public var iconColor: UIColor = UIColor.clearColor() // if alpha color is 0 color ignoring
|
||||
|
||||
@IBInspectable var bgDefaultColor: UIColor = UIColor.clearColor() // background color
|
||||
@IBInspectable var bgSelectedColor: UIColor = UIColor.clearColor()
|
||||
/**
|
||||
Change selected color for each UITabBarItem
|
||||
|
||||
public var badge: RAMBadge? // use badgeValue to show badge
|
||||
|
||||
public var iconView: (icon: UIImageView, textLabel: UILabel)?
|
||||
|
||||
public func playAnimation() {
|
||||
|
||||
assert(animation != nil, "add animation in UITabBarItem")
|
||||
guard animation != nil && iconView != nil else {
|
||||
return
|
||||
}
|
||||
animation.playAnimation(iconView!.icon, textLabel: iconView!.textLabel)
|
||||
}
|
||||
|
||||
public func deselectAnimation() {
|
||||
- parameter textSelectedColor: set new color for text
|
||||
- parameter iconSelectedColor: set new color for icon
|
||||
*/
|
||||
open func changeSelectedColor(_ textSelectedColor: UIColor, iconSelectedColor: UIColor) {
|
||||
|
||||
guard animation != nil && iconView != nil else {
|
||||
return
|
||||
}
|
||||
|
||||
animation.deselectAnimation(
|
||||
iconView!.icon,
|
||||
textLabel: iconView!.textLabel,
|
||||
defaultTextColor: textColor,
|
||||
defaultIconColor: iconColor)
|
||||
}
|
||||
|
||||
public func selectedState() {
|
||||
guard animation != nil && iconView != nil else {
|
||||
return
|
||||
}
|
||||
|
||||
animation.selectedState(iconView!.icon, textLabel: iconView!.textLabel)
|
||||
}
|
||||
}
|
||||
|
||||
extension RAMAnimatedTabBarController {
|
||||
|
||||
public func changeSelectedColor(textSelectedColor:UIColor, iconSelectedColor:UIColor) {
|
||||
|
||||
let items = tabBar.items as! [RAMAnimatedTabBarItem]
|
||||
for var index = 0; index < items.count; ++index {
|
||||
for index in 0 ..< items.count {
|
||||
let item = items[index]
|
||||
|
||||
|
||||
item.animation.textSelectedColor = textSelectedColor
|
||||
item.animation.iconSelectedColor = iconSelectedColor
|
||||
|
||||
if item == self.tabBar.selectedItem {
|
||||
|
||||
if item == tabBar.selectedItem {
|
||||
item.selectedState()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func animationTabBarHidden(isHidden:Bool) {
|
||||
|
||||
/**
|
||||
Selected UITabBarItem with animaton
|
||||
|
||||
- parameter from: Index for unselected animation
|
||||
- parameter to: Index for selected animation
|
||||
*/
|
||||
open func setSelectIndex(from: Int, to: Int) {
|
||||
selectedIndex = to
|
||||
guard let items = tabBar.items as? [RAMAnimatedTabBarItem] else {
|
||||
fatalError("items must inherit RAMAnimatedTabBarItem")
|
||||
}
|
||||
for item in items {
|
||||
if let iconView = item.iconView {
|
||||
iconView.icon.superview?.hidden = isHidden
|
||||
}
|
||||
}
|
||||
self.tabBar.hidden = isHidden;
|
||||
}
|
||||
|
||||
public func setSelectIndex(from from:Int,to:Int) {
|
||||
self.selectedIndex = to
|
||||
guard let items = self.tabBar.items as? [RAMAnimatedTabBarItem] else {
|
||||
fatalError("items must inherit RAMAnimatedTabBarItem")
|
||||
}
|
||||
|
||||
let containerFrom = items[from].iconView?.icon.superview
|
||||
containerFrom?.backgroundColor = items[from].bgDefaultColor
|
||||
items[from].deselectAnimation()
|
||||
|
||||
let containerTo = items[to].iconView?.icon.superview
|
||||
containerTo?.backgroundColor = items[to].bgSelectedColor
|
||||
items[to].playAnimation()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class RAMAnimatedTabBarController: UITabBarController {
|
||||
|
||||
// MARK: life circle
|
||||
|
||||
override public func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
let containers = createViewContainers()
|
||||
|
||||
createCustomIcons(containers)
|
||||
}
|
||||
|
||||
// MARK: create methods
|
||||
|
||||
private func createCustomIcons(containers : NSDictionary) {
|
||||
|
||||
guard let items = tabBar.items as? [RAMAnimatedTabBarItem] else {
|
||||
fatalError("items must inherit RAMAnimatedTabBarItem")
|
||||
}
|
||||
|
||||
var index = 0
|
||||
for item in items {
|
||||
|
||||
guard let itemImage = item.image else {
|
||||
fatalError("add image icon in UITabBarItem")
|
||||
}
|
||||
|
||||
guard let container = containers["container\(items.count - 1 - index)"] as? UIView else {
|
||||
fatalError()
|
||||
}
|
||||
container.tag = index
|
||||
|
||||
|
||||
let renderMode = CGColorGetAlpha(item.iconColor.CGColor) == 0 ? UIImageRenderingMode.AlwaysOriginal :
|
||||
UIImageRenderingMode.AlwaysTemplate
|
||||
|
||||
let icon = UIImageView(image: item.image?.imageWithRenderingMode(renderMode))
|
||||
icon.translatesAutoresizingMaskIntoConstraints = false
|
||||
icon.tintColor = item.iconColor
|
||||
|
||||
// text
|
||||
let textLabel = UILabel()
|
||||
textLabel.text = item.title
|
||||
textLabel.backgroundColor = UIColor.clearColor()
|
||||
textLabel.textColor = item.textColor
|
||||
textLabel.font = item.textFont
|
||||
textLabel.textAlignment = NSTextAlignment.Center
|
||||
textLabel.translatesAutoresizingMaskIntoConstraints = false
|
||||
|
||||
container.backgroundColor = (items as [RAMAnimatedTabBarItem])[index].bgDefaultColor
|
||||
|
||||
container.addSubview(icon)
|
||||
createConstraints(icon, container: container, size: itemImage.size, yOffset: -5)
|
||||
|
||||
container.addSubview(textLabel)
|
||||
let textLabelWidth = tabBar.frame.size.width / CGFloat(items.count) - 5.0
|
||||
createConstraints(textLabel, container: container, size: CGSize(width: textLabelWidth , height: 10), yOffset: 16)
|
||||
|
||||
item.iconView = (icon:icon, textLabel:textLabel)
|
||||
|
||||
if 0 == index { // selected first elemet
|
||||
item.selectedState()
|
||||
container.backgroundColor = (items as [RAMAnimatedTabBarItem])[index].bgSelectedColor
|
||||
}
|
||||
|
||||
item.image = nil
|
||||
item.title = ""
|
||||
index++
|
||||
}
|
||||
}
|
||||
|
||||
private func createConstraints(view:UIView, container:UIView, size:CGSize, yOffset:CGFloat) {
|
||||
|
||||
let constX = NSLayoutConstraint(item: view,
|
||||
attribute: NSLayoutAttribute.CenterX,
|
||||
relatedBy: NSLayoutRelation.Equal,
|
||||
toItem: container,
|
||||
attribute: NSLayoutAttribute.CenterX,
|
||||
multiplier: 1,
|
||||
constant: 0)
|
||||
container.addConstraint(constX)
|
||||
|
||||
let constY = NSLayoutConstraint(item: view,
|
||||
attribute: NSLayoutAttribute.CenterY,
|
||||
relatedBy: NSLayoutRelation.Equal,
|
||||
toItem: container,
|
||||
attribute: NSLayoutAttribute.CenterY,
|
||||
multiplier: 1,
|
||||
constant: yOffset)
|
||||
container.addConstraint(constY)
|
||||
|
||||
let constW = NSLayoutConstraint(item: view,
|
||||
attribute: NSLayoutAttribute.Width,
|
||||
relatedBy: NSLayoutRelation.Equal,
|
||||
toItem: nil,
|
||||
attribute: NSLayoutAttribute.NotAnAttribute,
|
||||
multiplier: 1,
|
||||
constant: size.width)
|
||||
view.addConstraint(constW)
|
||||
|
||||
let constH = NSLayoutConstraint(item: view,
|
||||
attribute: NSLayoutAttribute.Height,
|
||||
relatedBy: NSLayoutRelation.Equal,
|
||||
toItem: nil,
|
||||
attribute: NSLayoutAttribute.NotAnAttribute,
|
||||
multiplier: 1,
|
||||
constant: size.height)
|
||||
view.addConstraint(constH)
|
||||
}
|
||||
|
||||
private func createViewContainers() -> NSDictionary {
|
||||
|
||||
guard let items = tabBar.items else {
|
||||
fatalError("add items in tabBar")
|
||||
}
|
||||
|
||||
var containersDict = [String: AnyObject]()
|
||||
|
||||
for index in 0..<items.count {
|
||||
let viewContainer = createViewContainer()
|
||||
containersDict["container\(index)"] = viewContainer
|
||||
}
|
||||
|
||||
var formatString = "H:|-(0)-[container0]"
|
||||
for index in 1..<items.count {
|
||||
formatString += "-(0)-[container\(index)(==container0)]"
|
||||
}
|
||||
formatString += "-(0)-|"
|
||||
let constranints = NSLayoutConstraint.constraintsWithVisualFormat(formatString,
|
||||
options:NSLayoutFormatOptions.DirectionRightToLeft,
|
||||
metrics: nil,
|
||||
views: (containersDict as [String : AnyObject]))
|
||||
view.addConstraints(constranints)
|
||||
|
||||
return containersDict
|
||||
}
|
||||
|
||||
private func createViewContainer() -> UIView {
|
||||
let viewContainer = UIView();
|
||||
viewContainer.backgroundColor = UIColor.clearColor() // for test
|
||||
viewContainer.translatesAutoresizingMaskIntoConstraints = false
|
||||
view.addSubview(viewContainer)
|
||||
|
||||
// add gesture
|
||||
let tapGesture = UITapGestureRecognizer(target: self, action: "tapHandler:")
|
||||
tapGesture.numberOfTouchesRequired = 1
|
||||
viewContainer.addGestureRecognizer(tapGesture)
|
||||
|
||||
// add constrains
|
||||
let constY = NSLayoutConstraint(item: viewContainer,
|
||||
attribute: NSLayoutAttribute.Bottom,
|
||||
relatedBy: NSLayoutRelation.Equal,
|
||||
toItem: view,
|
||||
attribute: NSLayoutAttribute.Bottom,
|
||||
multiplier: 1,
|
||||
constant: 0)
|
||||
|
||||
view.addConstraint(constY)
|
||||
|
||||
let constH = NSLayoutConstraint(item: viewContainer,
|
||||
attribute: NSLayoutAttribute.Height,
|
||||
relatedBy: NSLayoutRelation.Equal,
|
||||
toItem: nil,
|
||||
attribute: NSLayoutAttribute.NotAnAttribute,
|
||||
multiplier: 1,
|
||||
constant: tabBar.frame.size.height)
|
||||
viewContainer.addConstraint(constH)
|
||||
|
||||
return viewContainer
|
||||
}
|
||||
|
||||
// MARK: actions
|
||||
|
||||
func tapHandler(gesture:UIGestureRecognizer) {
|
||||
|
||||
guard let items = tabBar.items as? [RAMAnimatedTabBarItem] else {
|
||||
fatalError("items must inherit RAMAnimatedTabBarItem")
|
||||
}
|
||||
|
||||
guard let gestureView = gesture.view else {
|
||||
return
|
||||
}
|
||||
|
||||
let currentIndex = gestureView.tag
|
||||
|
||||
let controller = self.childViewControllers[currentIndex]
|
||||
|
||||
if let shouldSelect = delegate?.tabBarController?(self, shouldSelectViewController: controller)
|
||||
where !shouldSelect {
|
||||
return
|
||||
}
|
||||
|
||||
if selectedIndex != currentIndex {
|
||||
let animationItem : RAMAnimatedTabBarItem = items[currentIndex]
|
||||
animationItem.playAnimation()
|
||||
|
||||
let deselectItem = items[selectedIndex]
|
||||
|
||||
let containerPrevious : UIView = deselectItem.iconView!.icon.superview!
|
||||
containerPrevious.backgroundColor = items[currentIndex].bgDefaultColor
|
||||
|
||||
deselectItem.deselectAnimation()
|
||||
|
||||
let container : UIView = animationItem.iconView!.icon.superview!
|
||||
container.backgroundColor = items[currentIndex].bgSelectedColor
|
||||
|
||||
selectedIndex = gestureView.tag
|
||||
delegate?.tabBarController?(self, didSelectViewController: self)
|
||||
|
||||
} else if selectedIndex == currentIndex {
|
||||
|
||||
if let navVC = self.viewControllers![selectedIndex] as? UINavigationController {
|
||||
navVC.popToRootViewControllerAnimated(true)
|
||||
}
|
||||
}
|
||||
extension RAMAnimatedTabBarController {
|
||||
enum Theme {
|
||||
public static let tabBarHeight: CGFloat = 49
|
||||
public static let defaultTitleVerticalOffset: CGFloat = 10
|
||||
public static let defaultIconVerticalOffset: CGFloat = -5
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
extension UIView {
|
||||
var userInterfaceLayoutDirection: UIUserInterfaceLayoutDirection {
|
||||
return UIView.userInterfaceLayoutDirection(for: self.semanticContentAttribute)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,134 @@
|
||||
// RAMAnimatedTabBarItem.swift
|
||||
//
|
||||
// Copyright (c) 11/10/14 Ramotion Inc. (http://ramotion.com)
|
||||
//
|
||||
// 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.
|
||||
|
||||
import Foundation
|
||||
import UIKit
|
||||
|
||||
/// UITabBarItem with animation
|
||||
open class RAMAnimatedTabBarItem: UITabBarItem {
|
||||
|
||||
open override var isEnabled: Bool {
|
||||
didSet {
|
||||
iconView?.icon.alpha = isEnabled == true ? 1 : 0.5
|
||||
iconView?.textLabel.alpha = isEnabled == true ? 1 : 0.5
|
||||
}
|
||||
}
|
||||
|
||||
/// Animation for UITabBarItem. Use RAMFumeAnimation, RAMBounceAnimation, RAMRotationAnimation, RAMFrameItemAnimation, RAMTransitionAnimation
|
||||
/// Also posible create custom anmation inherit from the RAMItemAnimation look for https://github.com/Ramotion/animated-tab-bar#creating-custom-animations
|
||||
@IBOutlet open var animation: RAMItemAnimation!
|
||||
|
||||
/// The font used to render the UITabBarItem text.
|
||||
@IBInspectable open var textFontSize: CGFloat = 10
|
||||
|
||||
/// The color of the UITabBarItem text.
|
||||
@IBInspectable open var textColor: UIColor = #colorLiteral(red: 0.5079551811, green: 0.5472556715, blue: 0.6011400746, alpha: 1)
|
||||
|
||||
/// The tint color of the UITabBarItem icon.
|
||||
@IBInspectable open var iconColor: UIColor = UIColor.clear // if alpha color is 0 color ignoring
|
||||
|
||||
open var bgDefaultColor: UIColor = UIColor.clear // background color
|
||||
open var bgSelectedColor: UIColor = UIColor.clear
|
||||
|
||||
// The current badge value
|
||||
open var badge: RAMBadge? // use badgeValue to show badge
|
||||
|
||||
// Container for icon and text in UITableItem.
|
||||
open var iconView: (icon: UIImageView, textLabel: UILabel)?
|
||||
|
||||
/**
|
||||
Start selected animation
|
||||
*/
|
||||
open func playAnimation() {
|
||||
|
||||
assert(animation != nil, "add animation in UITabBarItem")
|
||||
guard animation != nil, let iconView = iconView else {
|
||||
return
|
||||
}
|
||||
animation.playAnimation(iconView.icon, textLabel: iconView.textLabel)
|
||||
}
|
||||
|
||||
/**
|
||||
Start unselected animation
|
||||
*/
|
||||
open func deselectAnimation() {
|
||||
|
||||
guard animation != nil && iconView != nil else {
|
||||
return
|
||||
}
|
||||
|
||||
animation.deselectAnimation(
|
||||
iconView!.icon,
|
||||
textLabel: iconView!.textLabel,
|
||||
defaultTextColor: textColor,
|
||||
defaultIconColor: iconColor)
|
||||
}
|
||||
|
||||
/**
|
||||
Set selected state without animation
|
||||
*/
|
||||
open func selectedState() {
|
||||
guard animation != nil, let iconView = iconView else {
|
||||
return
|
||||
}
|
||||
|
||||
animation.selectedState(iconView.icon, textLabel: iconView.textLabel)
|
||||
}
|
||||
|
||||
/**
|
||||
Set deselected state without animation
|
||||
*/
|
||||
open func deselectedState() {
|
||||
guard animation != nil && iconView != nil else {
|
||||
return
|
||||
}
|
||||
|
||||
animation.deselectedState(iconView!.icon, textLabel: iconView!.textLabel)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// MARK: Custom Badge
|
||||
extension RAMAnimatedTabBarItem {
|
||||
|
||||
/// The current badge value
|
||||
open override var badgeValue: String? {
|
||||
get {
|
||||
return badge?.text
|
||||
}
|
||||
set(newValue) {
|
||||
|
||||
if newValue == nil {
|
||||
badge?.removeFromSuperview()
|
||||
badge = nil
|
||||
return
|
||||
}
|
||||
|
||||
if let iconView = iconView, let contanerView = iconView.icon.superview, badge == nil {
|
||||
badge = RAMBadge.badge()
|
||||
badge?.addBadgeOnView(contanerView)
|
||||
}
|
||||
|
||||
badge?.text = newValue
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,97 +1,115 @@
|
||||
//
|
||||
// RAMBadge.swift
|
||||
// RAMAnimatedTabBarDemo
|
||||
//
|
||||
// Created by Alex K. on 17/12/15.
|
||||
// Copyright © 2015 Ramotion. All rights reserved.
|
||||
// Copyright (c) 17/12/15 Ramotion Inc. (http://ramotion.com)
|
||||
//
|
||||
// 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
|
||||
|
||||
import UIKit
|
||||
|
||||
public class RAMBadge: UILabel {
|
||||
|
||||
var topConstraint: NSLayoutConstraint?
|
||||
var centerXConstraint: NSLayoutConstraint?
|
||||
var numberLabel: UILabel?
|
||||
|
||||
class func bage()->RAMBadge {
|
||||
return RAMBadge.init(frame: CGRectMake(0, 0, 18, 18))
|
||||
}
|
||||
|
||||
override init(frame: CGRect) {
|
||||
super.init(frame: frame)
|
||||
|
||||
self.layer.backgroundColor = UIColor.redColor().CGColor;
|
||||
self.layer.cornerRadius = frame.size.width / 2;
|
||||
|
||||
configureNumberLabel()
|
||||
open class RAMBadge: UILabel {
|
||||
|
||||
internal var topConstraint: NSLayoutConstraint?
|
||||
internal var centerXConstraint: NSLayoutConstraint?
|
||||
|
||||
open class func badge() -> RAMBadge {
|
||||
return RAMBadge(frame: CGRect(x: 0, y: 0, width: 18, height: 18))
|
||||
}
|
||||
|
||||
public override init(frame: CGRect) {
|
||||
super.init(frame: frame)
|
||||
|
||||
layer.backgroundColor = UIColor.red.cgColor
|
||||
layer.cornerRadius = frame.size.width / 2
|
||||
|
||||
configureNumberLabel()
|
||||
|
||||
translatesAutoresizingMaskIntoConstraints = false
|
||||
|
||||
self.translatesAutoresizingMaskIntoConstraints = false
|
||||
|
||||
// constraints
|
||||
createSizeConstraints(frame.size)
|
||||
|
||||
}
|
||||
|
||||
required public init?(coder aDecoder: NSCoder) {
|
||||
open override var intrinsicContentSize: CGSize {
|
||||
var contentSize = super.intrinsicContentSize
|
||||
contentSize.width += 10.0
|
||||
return contentSize
|
||||
}
|
||||
|
||||
public required init?(coder _: NSCoder) {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
|
||||
// PRAGMA: create
|
||||
|
||||
func createSizeConstraints(size: CGSize) {
|
||||
|
||||
internal func createSizeConstraints(_ size: CGSize) {
|
||||
let widthConstraint = NSLayoutConstraint(
|
||||
item: self,
|
||||
attribute: NSLayoutAttribute.Width,
|
||||
relatedBy: NSLayoutRelation.GreaterThanOrEqual,
|
||||
attribute: .width,
|
||||
relatedBy: .greaterThanOrEqual,
|
||||
toItem: nil,
|
||||
attribute: NSLayoutAttribute.NotAnAttribute,
|
||||
attribute: .notAnAttribute,
|
||||
multiplier: 1,
|
||||
constant: size.width)
|
||||
self.addConstraint(widthConstraint)
|
||||
addConstraint(widthConstraint)
|
||||
|
||||
|
||||
let heightConstraint = NSLayoutConstraint(
|
||||
item: self,
|
||||
attribute: NSLayoutAttribute.Height,
|
||||
relatedBy: NSLayoutRelation.Equal,
|
||||
attribute: .height,
|
||||
relatedBy: .equal,
|
||||
toItem: nil,
|
||||
attribute: NSLayoutAttribute.NotAnAttribute,
|
||||
attribute: NSLayoutConstraint.Attribute.notAnAttribute,
|
||||
multiplier: 1,
|
||||
constant: size.height)
|
||||
self.addConstraint(heightConstraint)
|
||||
addConstraint(heightConstraint)
|
||||
}
|
||||
|
||||
func configureNumberLabel() {
|
||||
|
||||
self.textAlignment = .Center
|
||||
self.font = UIFont.systemFontOfSize(13)
|
||||
self.textColor = UIColor.whiteColor()
|
||||
|
||||
fileprivate func configureNumberLabel() {
|
||||
textAlignment = .center
|
||||
font = .systemFont(ofSize: 13)
|
||||
textColor = .white
|
||||
}
|
||||
|
||||
// PRAGMA: helpers
|
||||
|
||||
func addBadgeOnView(onView:UIView) {
|
||||
|
||||
// PRAGMA: public
|
||||
|
||||
open func addBadgeOnView(_ onView: UIView) {
|
||||
|
||||
onView.addSubview(self)
|
||||
|
||||
// create constraints
|
||||
topConstraint = NSLayoutConstraint(item: self,
|
||||
attribute: NSLayoutAttribute.Top,
|
||||
relatedBy: NSLayoutRelation.Equal,
|
||||
toItem: onView,
|
||||
attribute: NSLayoutAttribute.Top,
|
||||
multiplier: 1,
|
||||
constant: 3)
|
||||
onView.addConstraint(topConstraint!)
|
||||
|
||||
centerXConstraint = NSLayoutConstraint(item: self,
|
||||
attribute: NSLayoutAttribute.CenterX,
|
||||
relatedBy: NSLayoutRelation.Equal,
|
||||
toItem: onView,
|
||||
attribute: NSLayoutAttribute.CenterX,
|
||||
multiplier: 1,
|
||||
constant: 10)
|
||||
onView.addConstraint(centerXConstraint!)
|
||||
let top = NSLayoutConstraint(item: self,
|
||||
attribute: .top,
|
||||
relatedBy: .equal,
|
||||
toItem: onView,
|
||||
attribute: .top,
|
||||
multiplier: 1,
|
||||
constant: 3)
|
||||
onView.addConstraint(top)
|
||||
topConstraint = top
|
||||
|
||||
let centerX = NSLayoutConstraint(item: self,
|
||||
attribute: .centerX,
|
||||
relatedBy: .equal,
|
||||
toItem: onView,
|
||||
attribute: .centerX,
|
||||
multiplier: 1,
|
||||
constant: 10)
|
||||
onView.addConstraint(centerX)
|
||||
centerXConstraint = centerX
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,46 +20,81 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
|
||||
import Foundation
|
||||
import UIKit
|
||||
|
||||
protocol RAMItemAnimationProtocol {
|
||||
public protocol RAMItemAnimationProtocol {
|
||||
|
||||
func playAnimation(icon : UIImageView, textLabel : UILabel)
|
||||
func deselectAnimation(icon : UIImageView, textLabel : UILabel, defaultTextColor : UIColor, defaultIconColor : UIColor)
|
||||
func selectedState(icon : UIImageView, textLabel : UILabel)
|
||||
func playAnimation(_ icon: UIImageView, textLabel: UILabel)
|
||||
func deselectAnimation(_ icon: UIImageView, textLabel: UILabel, defaultTextColor: UIColor, defaultIconColor: UIColor)
|
||||
func selectedState(_ icon: UIImageView, textLabel: UILabel)
|
||||
}
|
||||
|
||||
public class RAMItemAnimation: NSObject, RAMItemAnimationProtocol {
|
||||
/// Base class for UITabBarItems animation
|
||||
open class RAMItemAnimation: NSObject, RAMItemAnimationProtocol {
|
||||
|
||||
// MARK: constants
|
||||
|
||||
public struct Constants {
|
||||
|
||||
|
||||
struct Constants {
|
||||
|
||||
struct AnimationKeys {
|
||||
|
||||
static let Scale = "transform.scale"
|
||||
static let Rotation = "transform.rotation"
|
||||
static let KeyFrame = "contents"
|
||||
static let PositionY = "position.y"
|
||||
static let Opacity = "opacity"
|
||||
|
||||
static let scale = "transform.scale"
|
||||
static let rotation = "transform.rotation"
|
||||
static let keyFrame = "contents"
|
||||
static let positionY = "position.y"
|
||||
static let opacity = "opacity"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
// MARK: properties
|
||||
|
||||
/// The duration of the animation
|
||||
@IBInspectable open var duration: CGFloat = 0.5
|
||||
|
||||
/// The text color in selected state.
|
||||
@IBInspectable open var textSelectedColor: UIColor = UIColor(red: 0, green: 0.478431, blue: 1, alpha: 1)
|
||||
|
||||
/// The icon color in selected state.
|
||||
@IBInspectable open var iconSelectedColor: UIColor!
|
||||
|
||||
/**
|
||||
Start animation, method call when UITabBarItem is selected
|
||||
|
||||
- parameter icon: animating UITabBarItem icon
|
||||
- parameter textLabel: animating UITabBarItem textLabel
|
||||
*/
|
||||
open func playAnimation(_: UIImageView, textLabel _: UILabel) {
|
||||
fatalError("override method in subclass")
|
||||
}
|
||||
|
||||
/**
|
||||
Start animation, method call when UITabBarItem is unselected
|
||||
|
||||
- parameter icon: animating UITabBarItem icon
|
||||
- parameter textLabel: animating UITabBarItem textLabel
|
||||
- parameter defaultTextColor: default UITabBarItem text color
|
||||
- parameter defaultIconColor: default UITabBarItem icon color
|
||||
*/
|
||||
open func deselectAnimation(_: UIImageView, textLabel _: UILabel, defaultTextColor _: UIColor, defaultIconColor _: UIColor) {
|
||||
fatalError("override method in subclass")
|
||||
}
|
||||
|
||||
/**
|
||||
Method call when TabBarController did load
|
||||
|
||||
- parameter icon: animating UITabBarItem icon
|
||||
- parameter textLabel: animating UITabBarItem textLabel
|
||||
*/
|
||||
open func selectedState(_: UIImageView, textLabel _: UILabel) {
|
||||
fatalError("override method in subclass")
|
||||
}
|
||||
|
||||
@IBInspectable public var duration : CGFloat = 0.5
|
||||
@IBInspectable public var textSelectedColor: UIColor = UIColor.init(red: 0, green: 0.478431, blue: 1, alpha: 1)
|
||||
@IBInspectable public var iconSelectedColor: UIColor!
|
||||
|
||||
public func playAnimation(icon : UIImageView, textLabel : UILabel) {
|
||||
}
|
||||
|
||||
public func deselectAnimation(icon : UIImageView, textLabel : UILabel, defaultTextColor : UIColor, defaultIconColor : UIColor) {
|
||||
}
|
||||
|
||||
public func selectedState(icon: UIImageView, textLabel : UILabel) {
|
||||
}
|
||||
/**
|
||||
(Optional) Method call when TabBarController did load
|
||||
|
||||
- parameter icon: animating UITabBarItem icon
|
||||
- parameter textLabel: animating UITabBarItem textLabel
|
||||
*/
|
||||
open func deselectedState(_: UIImageView, textLabel _: UILabel) {}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
// Collection+Extensions.swift
|
||||
//
|
||||
// Copyright (c) 11/10/14 Ramotion Inc. (http://ramotion.com)
|
||||
//
|
||||
// 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.
|
||||
|
||||
import Foundation
|
||||
|
||||
extension Collection where Self.Index == Self.Indices.Iterator.Element {
|
||||
/**
|
||||
Returns an optional element. If the `index` does not exist in the collection, the subscript returns nil.
|
||||
|
||||
- parameter safe: The index of the element to return, if it exists.
|
||||
|
||||
- returns: An optional element from the collection at the specified index.
|
||||
*/
|
||||
public subscript(safe i: Index) -> Self.Iterator.Element? {
|
||||
return at(i)
|
||||
}
|
||||
|
||||
/**
|
||||
Returns an optional element. If the `index` does not exist in the collection, the function returns nil.
|
||||
|
||||
- parameter index: The index of the element to return, if it exists.
|
||||
|
||||
- returns: An optional element from the collection at the specified index.
|
||||
*/
|
||||
public func at(_ i: Index) -> Self.Iterator.Element? {
|
||||
return indices.contains(i) ? self[i] : nil
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
//
|
||||
// AnimatedTabBarTests.swift
|
||||
// AnimatedTabBarTests
|
||||
//
|
||||
// Created by Alex K on 17/08/2018.
|
||||
// Copyright © 2018 Ramotion. All rights reserved.
|
||||
//
|
||||
|
||||
import XCTest
|
||||
@testable import Animated_Tab_Bar
|
||||
|
||||
class AnimatedTabBarTests: XCTestCase {
|
||||
|
||||
var tabBarController: RAMAnimatedTabBarController!
|
||||
|
||||
override func setUp() {
|
||||
super.setUp()
|
||||
let storyboard = UIStoryboard(name: "Main", bundle: nil)
|
||||
tabBarController = storyboard.instantiateViewController(withIdentifier: "RAMAnimatedTabBarController") as? RAMAnimatedTabBarController
|
||||
_ = tabBarController.view
|
||||
|
||||
}
|
||||
override func tearDown() {
|
||||
super.tearDown()
|
||||
}
|
||||
|
||||
func testCreateController() {
|
||||
XCTAssertNotNil(tabBarController)
|
||||
}
|
||||
|
||||
func testIsBottomLineShowen() {
|
||||
|
||||
XCTAssertEqual(tabBarController.bottomLine, nil)
|
||||
|
||||
tabBarController.isBottomLineShow = true
|
||||
XCTAssertNotNil(tabBarController.bottomLine)
|
||||
|
||||
tabBarController.isBottomLineShow = false
|
||||
XCTAssertEqual(tabBarController.bottomLine, nil)
|
||||
}
|
||||
|
||||
func testChangeSelectedColor() {
|
||||
let selectedColor = UIColor.red
|
||||
let iconSelectedColor = UIColor.green
|
||||
tabBarController.changeSelectedColor(selectedColor, iconSelectedColor: iconSelectedColor)
|
||||
|
||||
tabBarController.animatedItems.forEach {
|
||||
XCTAssertEqual($0.animation.textSelectedColor, selectedColor)
|
||||
XCTAssertEqual($0.animation.iconSelectedColor, iconSelectedColor)
|
||||
}
|
||||
}
|
||||
|
||||
func testAnimationBarHidden() {
|
||||
|
||||
XCTAssertEqual(tabBarController.tabBar.isHidden, false)
|
||||
tabBarController.animatedItems.forEach {
|
||||
XCTAssertEqual($0.iconView?.icon.superview?.isHidden, false)
|
||||
}
|
||||
|
||||
tabBarController.animationTabBarHidden(true)
|
||||
|
||||
XCTAssertEqual(tabBarController.tabBar.isHidden, true)
|
||||
tabBarController.animatedItems.forEach {
|
||||
XCTAssertEqual($0.iconView?.icon.superview?.isHidden, true)
|
||||
}
|
||||
}
|
||||
|
||||
func testSelectIndex() {
|
||||
let toIndex = 2
|
||||
tabBarController.setSelectIndex(from: 0, to: toIndex)
|
||||
XCTAssertEqual(tabBarController.selectedIndex, toIndex)
|
||||
}
|
||||
|
||||
func testAnimatedItems() {
|
||||
XCTAssertEqual(tabBarController.viewControllers?.count, tabBarController.animatedItems.count)
|
||||
}
|
||||
|
||||
func testIsBottomLineShow() {
|
||||
XCTAssertEqual(tabBarController.isBottomLineShow, false)
|
||||
XCTAssertNil(tabBarController.bottomLine)
|
||||
tabBarController.isBottomLineShow = true
|
||||
|
||||
XCTAssertEqual(tabBarController.isBottomLineShow, true)
|
||||
XCTAssertNotNil(tabBarController.bottomLine)
|
||||
}
|
||||
|
||||
func testBottomLineColor() {
|
||||
let color = UIColor.red
|
||||
tabBarController.isBottomLineShow = true
|
||||
XCTAssertNotEqual(tabBarController.bottomLine, color)
|
||||
tabBarController.bottomLineColor = color
|
||||
XCTAssertEqual(tabBarController.bottomLineColor, color)
|
||||
}
|
||||
|
||||
func testContainersCount() {
|
||||
XCTAssertEqual(tabBarController.viewControllers?.count, tabBarController.containers.count)
|
||||
}
|
||||
|
||||
func testBadge() {
|
||||
let value = "1"
|
||||
tabBarController.animatedItems.first?.badgeValue = value
|
||||
XCTAssertEqual(tabBarController.animatedItems.first?.badgeValue, tabBarController.animatedItems.first?.badge?.text)
|
||||
}
|
||||
|
||||
func testIsEnabled() {
|
||||
guard let item = tabBarController.animatedItems.first else { return }
|
||||
item.isEnabled = true
|
||||
XCTAssertEqual(item.iconView?.icon.alpha, 1)
|
||||
XCTAssertEqual(item.iconView?.textLabel.alpha, 1)
|
||||
|
||||
item.isEnabled = false
|
||||
XCTAssertEqual(item.iconView?.icon.alpha, 0.5)
|
||||
XCTAssertEqual(item.iconView?.textLabel.alpha, 0.5)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>$(EXECUTABLE_NAME)</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
@@ -16,8 +16,6 @@
|
||||
<string>BNDL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
</dict>
|
||||
@@ -0,0 +1,24 @@
|
||||
import XCTest
|
||||
@testable import Animated_Tab_Bar
|
||||
|
||||
class RAMBadgeTests: XCTestCase {
|
||||
|
||||
var badge: RAMBadge!
|
||||
|
||||
override func setUp() {
|
||||
badge = RAMBadge.badge()
|
||||
}
|
||||
|
||||
func testCreateBadge() {
|
||||
XCTAssertNotNil(badge)
|
||||
}
|
||||
|
||||
func testAddBadgeOnView() {
|
||||
let view = UIView()
|
||||
XCTAssertNil(badge.superview)
|
||||
badge.addBadgeOnView(view)
|
||||
XCTAssertNotNil(badge.superview)
|
||||
XCTAssertNotNil(badge.topConstraint)
|
||||
XCTAssertNotNil(badge.centerXConstraint)
|
||||
}
|
||||
}
|
||||
@@ -7,73 +7,153 @@
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
3950EDD82354950E0072BAAD /* RAMAnimatedTabBarItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3950EDD72354950E0072BAAD /* RAMAnimatedTabBarItem.swift */; };
|
||||
3950EDD9235496AF0072BAAD /* RAMAnimatedTabBarItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3950EDD72354950E0072BAAD /* RAMAnimatedTabBarItem.swift */; };
|
||||
3950EDDC235497650072BAAD /* Collection+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3950EDDB235497650072BAAD /* Collection+Extensions.swift */; };
|
||||
3950EDDD235497910072BAAD /* Collection+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3950EDDB235497650072BAAD /* Collection+Extensions.swift */; };
|
||||
5A1F33BC2126AA3D004B8735 /* AnimatedTabBarTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5A1F33BB2126AA3D004B8735 /* AnimatedTabBarTests.swift */; };
|
||||
5A5D3FF021B91D0700304986 /* RAMBadgeTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5A5D3FEF21B91D0700304986 /* RAMBadgeTests.swift */; };
|
||||
5ADAB94A209B0FA8006CCD85 /* RAMAnimatedTabBarController+BottomLine.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5ADAB949209B0FA8006CCD85 /* RAMAnimatedTabBarController+BottomLine.swift */; };
|
||||
5ADAB94B209B51E5006CCD85 /* RAMAnimatedTabBarController+BottomLine.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5ADAB949209B0FA8006CCD85 /* RAMAnimatedTabBarController+BottomLine.swift */; };
|
||||
849507011D05772B0005EC1A /* ToolsAnimation.plist in Resources */ = {isa = PBXBuildFile; fileRef = 849507001D05772B0005EC1A /* ToolsAnimation.plist */; };
|
||||
84BC64221C22E4C800B89B79 /* RAMBadge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84BC64211C22E4C800B89B79 /* RAMBadge.swift */; };
|
||||
84D4B7A11DB0D35500EE38C6 /* TabBarLib.h in Headers */ = {isa = PBXBuildFile; fileRef = 84D4B79F1DB0D35500EE38C6 /* TabBarLib.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
84D4B7A41DB0D35500EE38C6 /* RAMAnimatedTabBarController.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 84D4B79D1DB0D35500EE38C6 /* RAMAnimatedTabBarController.framework */; };
|
||||
84D4B7A51DB0D35500EE38C6 /* RAMAnimatedTabBarController.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 84D4B79D1DB0D35500EE38C6 /* RAMAnimatedTabBarController.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||
84D4B7A91DB0D37700EE38C6 /* RAMBadge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84BC64211C22E4C800B89B79 /* RAMBadge.swift */; };
|
||||
84D4B7AA1DB0D37B00EE38C6 /* RAMAnimatedTabBarController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE90A83F1A1C7C14002D8931 /* RAMAnimatedTabBarController.swift */; };
|
||||
84D4B7AB1DB0D37F00EE38C6 /* RAMFumeAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3E056BD1A2DD57600F33DDA /* RAMFumeAnimation.swift */; };
|
||||
84D4B7AC1DB0D38100EE38C6 /* RAMBounceAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE90A8781A1CE200002D8931 /* RAMBounceAnimation.swift */; };
|
||||
84D4B7AD1DB0D38400EE38C6 /* RAMRotationAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE90A8421A1C8DD3002D8931 /* RAMRotationAnimation.swift */; };
|
||||
84D4B7AE1DB0D38700EE38C6 /* RAMFrameItemAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE41469A1A1B944D0037F03C /* RAMFrameItemAnimation.swift */; };
|
||||
84D4B7AF1DB0D38B00EE38C6 /* RAMTransitionItemAnimations.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE41469C1A1B944D0037F03C /* RAMTransitionItemAnimations.swift */; };
|
||||
84D4B7B01DB0D38F00EE38C6 /* RAMItemAnimationProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE41469D1A1B944D0037F03C /* RAMItemAnimationProtocol.swift */; };
|
||||
CE4146781A1B923D0037F03C /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE4146771A1B923D0037F03C /* AppDelegate.swift */; };
|
||||
CE41467A1A1B923D0037F03C /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE4146791A1B923D0037F03C /* ViewController.swift */; };
|
||||
CE41467D1A1B923D0037F03C /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CE41467B1A1B923D0037F03C /* Main.storyboard */; };
|
||||
CE41467F1A1B923D0037F03C /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CE41467E1A1B923D0037F03C /* Images.xcassets */; };
|
||||
CE4146821A1B923D0037F03C /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = CE4146801A1B923D0037F03C /* LaunchScreen.xib */; };
|
||||
CE41468E1A1B923D0037F03C /* RAMAnimatedTabBarDemoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE41468D1A1B923D0037F03C /* RAMAnimatedTabBarDemoTests.swift */; };
|
||||
CE41469E1A1B944D0037F03C /* RAMFrameItemAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE41469A1A1B944D0037F03C /* RAMFrameItemAnimation.swift */; };
|
||||
CE41469F1A1B944D0037F03C /* RAMTransitionItemAnimations.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE41469C1A1B944D0037F03C /* RAMTransitionItemAnimations.swift */; };
|
||||
CE4146A01A1B944D0037F03C /* RAMItemAnimationProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE41469D1A1B944D0037F03C /* RAMItemAnimationProtocol.swift */; };
|
||||
CE90A8401A1C7C14002D8931 /* RAMAnimatedTabBarController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE90A83F1A1C7C14002D8931 /* RAMAnimatedTabBarController.swift */; };
|
||||
CE90A8431A1C8DD3002D8931 /* RAMRotationAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE90A8421A1C8DD3002D8931 /* RAMRotationAnimation.swift */; };
|
||||
CE90A8461A1CB1E0002D8931 /* ToolsAnimation.plist in Resources */ = {isa = PBXBuildFile; fileRef = CE90A8451A1CB1E0002D8931 /* ToolsAnimation.plist */; };
|
||||
CE90A8791A1CE200002D8931 /* RAMBounceAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE90A8781A1CE200002D8931 /* RAMBounceAnimation.swift */; };
|
||||
F3E056BE1A2DD57600F33DDA /* RAMFumeAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = F3E056BD1A2DD57600F33DDA /* RAMFumeAnimation.swift */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXContainerItemProxy section */
|
||||
CE4146881A1B923D0037F03C /* PBXContainerItemProxy */ = {
|
||||
5A1F33BE2126AA3D004B8735 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = CE41466A1A1B923D0037F03C /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = CE4146711A1B923D0037F03C;
|
||||
remoteInfo = RAMAnimatedTabBarDemo;
|
||||
};
|
||||
84D4B7A21DB0D35500EE38C6 /* PBXContainerItemProxy */ = {
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = CE41466A1A1B923D0037F03C /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = 84D4B79C1DB0D35500EE38C6;
|
||||
remoteInfo = TabBarLib;
|
||||
};
|
||||
/* End PBXContainerItemProxy section */
|
||||
|
||||
/* Begin PBXCopyFilesBuildPhase section */
|
||||
8499D8F91D0069C6004B5B37 /* Embed Frameworks */ = {
|
||||
isa = PBXCopyFilesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
dstPath = "";
|
||||
dstSubfolderSpec = 10;
|
||||
files = (
|
||||
84D4B7A51DB0D35500EE38C6 /* RAMAnimatedTabBarController.framework in Embed Frameworks */,
|
||||
);
|
||||
name = "Embed Frameworks";
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXCopyFilesBuildPhase section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
3950EDD72354950E0072BAAD /* RAMAnimatedTabBarItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RAMAnimatedTabBarItem.swift; sourceTree = "<group>"; };
|
||||
3950EDDB235497650072BAAD /* Collection+Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Collection+Extensions.swift"; sourceTree = "<group>"; };
|
||||
5A1F33B92126AA3D004B8735 /* AnimatedTabBarTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AnimatedTabBarTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
5A1F33BB2126AA3D004B8735 /* AnimatedTabBarTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnimatedTabBarTests.swift; sourceTree = "<group>"; };
|
||||
5A1F33BD2126AA3D004B8735 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
5A5D3FEF21B91D0700304986 /* RAMBadgeTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RAMBadgeTests.swift; sourceTree = "<group>"; };
|
||||
5ADAB949209B0FA8006CCD85 /* RAMAnimatedTabBarController+BottomLine.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "RAMAnimatedTabBarController+BottomLine.swift"; sourceTree = "<group>"; };
|
||||
849507001D05772B0005EC1A /* ToolsAnimation.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = ToolsAnimation.plist; sourceTree = "<group>"; };
|
||||
84BC64211C22E4C800B89B79 /* RAMBadge.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RAMBadge.swift; sourceTree = "<group>"; };
|
||||
CE4146721A1B923D0037F03C /* RAMAnimatedTabBarDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RAMAnimatedTabBarDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
84D4B79D1DB0D35500EE38C6 /* RAMAnimatedTabBarController.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RAMAnimatedTabBarController.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
84D4B79F1DB0D35500EE38C6 /* TabBarLib.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TabBarLib.h; sourceTree = "<group>"; };
|
||||
84D4B7A01DB0D35500EE38C6 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
CE4146721A1B923D0037F03C /* Animated Tab Bar.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Animated Tab Bar.app"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
CE4146761A1B923D0037F03C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
CE4146771A1B923D0037F03C /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
||||
CE4146791A1B923D0037F03C /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
|
||||
CE41467C1A1B923D0037F03C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
||||
CE41467E1A1B923D0037F03C /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
|
||||
CE4146811A1B923D0037F03C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
|
||||
CE4146871A1B923D0037F03C /* RAMAnimatedTabBarDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RAMAnimatedTabBarDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
CE41468C1A1B923D0037F03C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
CE41468D1A1B923D0037F03C /* RAMAnimatedTabBarDemoTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RAMAnimatedTabBarDemoTests.swift; sourceTree = "<group>"; };
|
||||
CE41469A1A1B944D0037F03C /* RAMFrameItemAnimation.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RAMFrameItemAnimation.swift; sourceTree = "<group>"; };
|
||||
CE41469C1A1B944D0037F03C /* RAMTransitionItemAnimations.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RAMTransitionItemAnimations.swift; sourceTree = "<group>"; };
|
||||
CE41469D1A1B944D0037F03C /* RAMItemAnimationProtocol.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RAMItemAnimationProtocol.swift; sourceTree = "<group>"; };
|
||||
CE90A83F1A1C7C14002D8931 /* RAMAnimatedTabBarController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RAMAnimatedTabBarController.swift; sourceTree = "<group>"; };
|
||||
CE90A8421A1C8DD3002D8931 /* RAMRotationAnimation.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RAMRotationAnimation.swift; sourceTree = "<group>"; };
|
||||
CE90A8451A1CB1E0002D8931 /* ToolsAnimation.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = ToolsAnimation.plist; sourceTree = "<group>"; };
|
||||
CE90A8781A1CE200002D8931 /* RAMBounceAnimation.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RAMBounceAnimation.swift; sourceTree = "<group>"; };
|
||||
F3E056BD1A2DD57600F33DDA /* RAMFumeAnimation.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RAMFumeAnimation.swift; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
CE41466F1A1B923D0037F03C /* Frameworks */ = {
|
||||
5A1F33B62126AA3D004B8735 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
CE4146841A1B923D0037F03C /* Frameworks */ = {
|
||||
84D4B7991DB0D35500EE38C6 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
CE41466F1A1B923D0037F03C /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
84D4B7A41DB0D35500EE38C6 /* RAMAnimatedTabBarController.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
3950EDDA2354974D0072BAAD /* Utilities */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
3950EDDB235497650072BAAD /* Collection+Extensions.swift */,
|
||||
);
|
||||
path = Utilities;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
5A1F33BA2126AA3D004B8735 /* AnimatedTabBarTests */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
5A1F33BB2126AA3D004B8735 /* AnimatedTabBarTests.swift */,
|
||||
5A1F33BD2126AA3D004B8735 /* Info.plist */,
|
||||
5A5D3FEF21B91D0700304986 /* RAMBadgeTests.swift */,
|
||||
);
|
||||
path = AnimatedTabBarTests;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
5AC42AE5210AFA110009889F /* BottomLine */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
5ADAB949209B0FA8006CCD85 /* RAMAnimatedTabBarController+BottomLine.swift */,
|
||||
);
|
||||
path = BottomLine;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
84BC64201C22E41F00B89B79 /* RAMBadge */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
@@ -82,11 +162,21 @@
|
||||
path = RAMBadge;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
84D4B79E1DB0D35500EE38C6 /* TabBarLib */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
84D4B79F1DB0D35500EE38C6 /* TabBarLib.h */,
|
||||
84D4B7A01DB0D35500EE38C6 /* Info.plist */,
|
||||
);
|
||||
path = TabBarLib;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CE4146691A1B923D0037F03C = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CE4146741A1B923D0037F03C /* RAMAnimatedTabBarDemo */,
|
||||
CE41468A1A1B923D0037F03C /* RAMAnimatedTabBarDemoTests */,
|
||||
84D4B79E1DB0D35500EE38C6 /* TabBarLib */,
|
||||
5A1F33BA2126AA3D004B8735 /* AnimatedTabBarTests */,
|
||||
CE4146731A1B923D0037F03C /* Products */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
@@ -94,8 +184,9 @@
|
||||
CE4146731A1B923D0037F03C /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CE4146721A1B923D0037F03C /* RAMAnimatedTabBarDemo.app */,
|
||||
CE4146871A1B923D0037F03C /* RAMAnimatedTabBarDemoTests.xctest */,
|
||||
CE4146721A1B923D0037F03C /* Animated Tab Bar.app */,
|
||||
84D4B79D1DB0D35500EE38C6 /* RAMAnimatedTabBarController.framework */,
|
||||
5A1F33B92126AA3D004B8735 /* AnimatedTabBarTests.xctest */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
@@ -123,28 +214,14 @@
|
||||
name = "Supporting Files";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CE41468A1A1B923D0037F03C /* RAMAnimatedTabBarDemoTests */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CE41468D1A1B923D0037F03C /* RAMAnimatedTabBarDemoTests.swift */,
|
||||
CE41468B1A1B923D0037F03C /* Supporting Files */,
|
||||
);
|
||||
path = RAMAnimatedTabBarDemoTests;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CE41468B1A1B923D0037F03C /* Supporting Files */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CE41468C1A1B923D0037F03C /* Info.plist */,
|
||||
);
|
||||
name = "Supporting Files";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CE4146971A1B94170037F03C /* RAMAnimatedTabBarControlller */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
3950EDDA2354974D0072BAAD /* Utilities */,
|
||||
5AC42AE5210AFA110009889F /* BottomLine */,
|
||||
84BC64201C22E41F00B89B79 /* RAMBadge */,
|
||||
CE90A83F1A1C7C14002D8931 /* RAMAnimatedTabBarController.swift */,
|
||||
3950EDD72354950E0072BAAD /* RAMAnimatedTabBarItem.swift */,
|
||||
CE4146981A1B944D0037F03C /* Animations */,
|
||||
CE41469D1A1B944D0037F03C /* RAMItemAnimationProtocol.swift */,
|
||||
);
|
||||
@@ -191,7 +268,7 @@
|
||||
CE90A8441A1CB1A2002D8931 /* Resources */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CE90A8451A1CB1E0002D8931 /* ToolsAnimation.plist */,
|
||||
849507001D05772B0005EC1A /* ToolsAnimation.plist */,
|
||||
);
|
||||
path = Resources;
|
||||
sourceTree = "<group>";
|
||||
@@ -214,7 +291,54 @@
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXHeadersBuildPhase section */
|
||||
84D4B79A1DB0D35500EE38C6 /* Headers */ = {
|
||||
isa = PBXHeadersBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
84D4B7A11DB0D35500EE38C6 /* TabBarLib.h in Headers */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXHeadersBuildPhase section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
5A1F33B82126AA3D004B8735 /* AnimatedTabBarTests */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 5A1F33C22126AA3D004B8735 /* Build configuration list for PBXNativeTarget "AnimatedTabBarTests" */;
|
||||
buildPhases = (
|
||||
5A1F33B52126AA3D004B8735 /* Sources */,
|
||||
5A1F33B62126AA3D004B8735 /* Frameworks */,
|
||||
5A1F33B72126AA3D004B8735 /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
5A1F33BF2126AA3D004B8735 /* PBXTargetDependency */,
|
||||
);
|
||||
name = AnimatedTabBarTests;
|
||||
productName = AnimatedTabBarTests;
|
||||
productReference = 5A1F33B92126AA3D004B8735 /* AnimatedTabBarTests.xctest */;
|
||||
productType = "com.apple.product-type.bundle.unit-test";
|
||||
};
|
||||
84D4B79C1DB0D35500EE38C6 /* RAMAnimatedTabBarController */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 84D4B7A81DB0D35500EE38C6 /* Build configuration list for PBXNativeTarget "RAMAnimatedTabBarController" */;
|
||||
buildPhases = (
|
||||
84D4B7981DB0D35500EE38C6 /* Sources */,
|
||||
84D4B7991DB0D35500EE38C6 /* Frameworks */,
|
||||
84D4B79A1DB0D35500EE38C6 /* Headers */,
|
||||
84D4B79B1DB0D35500EE38C6 /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = RAMAnimatedTabBarController;
|
||||
productName = TabBarLib;
|
||||
productReference = 84D4B79D1DB0D35500EE38C6 /* RAMAnimatedTabBarController.framework */;
|
||||
productType = "com.apple.product-type.framework";
|
||||
};
|
||||
CE4146711A1B923D0037F03C /* RAMAnimatedTabBarDemo */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = CE4146911A1B923D0037F03C /* Build configuration list for PBXNativeTarget "RAMAnimatedTabBarDemo" */;
|
||||
@@ -222,57 +346,48 @@
|
||||
CE41466E1A1B923D0037F03C /* Sources */,
|
||||
CE41466F1A1B923D0037F03C /* Frameworks */,
|
||||
CE4146701A1B923D0037F03C /* Resources */,
|
||||
847D23E81C63319B0085E882 /* SwiftLint */,
|
||||
8499D8F91D0069C6004B5B37 /* Embed Frameworks */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
84D4B7A31DB0D35500EE38C6 /* PBXTargetDependency */,
|
||||
);
|
||||
name = RAMAnimatedTabBarDemo;
|
||||
productName = RAMAnimatedTabBarDemo;
|
||||
productReference = CE4146721A1B923D0037F03C /* RAMAnimatedTabBarDemo.app */;
|
||||
productReference = CE4146721A1B923D0037F03C /* Animated Tab Bar.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
CE4146861A1B923D0037F03C /* RAMAnimatedTabBarDemoTests */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = CE4146941A1B923D0037F03C /* Build configuration list for PBXNativeTarget "RAMAnimatedTabBarDemoTests" */;
|
||||
buildPhases = (
|
||||
CE4146831A1B923D0037F03C /* Sources */,
|
||||
CE4146841A1B923D0037F03C /* Frameworks */,
|
||||
CE4146851A1B923D0037F03C /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
CE4146891A1B923D0037F03C /* PBXTargetDependency */,
|
||||
);
|
||||
name = RAMAnimatedTabBarDemoTests;
|
||||
productName = RAMAnimatedTabBarDemoTests;
|
||||
productReference = CE4146871A1B923D0037F03C /* RAMAnimatedTabBarDemoTests.xctest */;
|
||||
productType = "com.apple.product-type.bundle.unit-test";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
CE41466A1A1B923D0037F03C /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastSwiftUpdateCheck = 0700;
|
||||
LastUpgradeCheck = 0710;
|
||||
LastSwiftUpdateCheck = 0940;
|
||||
LastUpgradeCheck = 1020;
|
||||
ORGANIZATIONNAME = Ramotion;
|
||||
TargetAttributes = {
|
||||
5A1F33B82126AA3D004B8735 = {
|
||||
CreatedOnToolsVersion = 9.4;
|
||||
LastSwiftMigration = 1020;
|
||||
ProvisioningStyle = Automatic;
|
||||
TestTargetID = CE4146711A1B923D0037F03C;
|
||||
};
|
||||
84D4B79C1DB0D35500EE38C6 = {
|
||||
CreatedOnToolsVersion = 8.0;
|
||||
LastSwiftMigration = 1020;
|
||||
ProvisioningStyle = Automatic;
|
||||
};
|
||||
CE4146711A1B923D0037F03C = {
|
||||
CreatedOnToolsVersion = 6.1;
|
||||
};
|
||||
CE4146861A1B923D0037F03C = {
|
||||
CreatedOnToolsVersion = 6.1;
|
||||
TestTargetID = CE4146711A1B923D0037F03C;
|
||||
LastSwiftMigration = 1020;
|
||||
};
|
||||
};
|
||||
};
|
||||
buildConfigurationList = CE41466D1A1B923D0037F03C /* Build configuration list for PBXProject "RAMAnimatedTabBarDemo" */;
|
||||
compatibilityVersion = "Xcode 3.2";
|
||||
developmentRegion = English;
|
||||
developmentRegion = en;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
en,
|
||||
@@ -284,50 +399,68 @@
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
CE4146711A1B923D0037F03C /* RAMAnimatedTabBarDemo */,
|
||||
CE4146861A1B923D0037F03C /* RAMAnimatedTabBarDemoTests */,
|
||||
84D4B79C1DB0D35500EE38C6 /* RAMAnimatedTabBarController */,
|
||||
5A1F33B82126AA3D004B8735 /* AnimatedTabBarTests */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
5A1F33B72126AA3D004B8735 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
84D4B79B1DB0D35500EE38C6 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
CE4146701A1B923D0037F03C /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
849507011D05772B0005EC1A /* ToolsAnimation.plist in Resources */,
|
||||
CE41467D1A1B923D0037F03C /* Main.storyboard in Resources */,
|
||||
CE4146821A1B923D0037F03C /* LaunchScreen.xib in Resources */,
|
||||
CE41467F1A1B923D0037F03C /* Images.xcassets in Resources */,
|
||||
CE90A8461A1CB1E0002D8931 /* ToolsAnimation.plist in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
CE4146851A1B923D0037F03C /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXShellScriptBuildPhase section */
|
||||
847D23E81C63319B0085E882 /* SwiftLint */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
5A1F33B52126AA3D004B8735 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
);
|
||||
name = SwiftLint;
|
||||
outputPaths = (
|
||||
5A5D3FF021B91D0700304986 /* RAMBadgeTests.swift in Sources */,
|
||||
5A1F33BC2126AA3D004B8735 /* AnimatedTabBarTests.swift in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
84D4B7981DB0D35500EE38C6 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
84D4B7A91DB0D37700EE38C6 /* RAMBadge.swift in Sources */,
|
||||
84D4B7AF1DB0D38B00EE38C6 /* RAMTransitionItemAnimations.swift in Sources */,
|
||||
5ADAB94B209B51E5006CCD85 /* RAMAnimatedTabBarController+BottomLine.swift in Sources */,
|
||||
3950EDDD235497910072BAAD /* Collection+Extensions.swift in Sources */,
|
||||
84D4B7B01DB0D38F00EE38C6 /* RAMItemAnimationProtocol.swift in Sources */,
|
||||
3950EDD9235496AF0072BAAD /* RAMAnimatedTabBarItem.swift in Sources */,
|
||||
84D4B7AB1DB0D37F00EE38C6 /* RAMFumeAnimation.swift in Sources */,
|
||||
84D4B7AA1DB0D37B00EE38C6 /* RAMAnimatedTabBarController.swift in Sources */,
|
||||
84D4B7AC1DB0D38100EE38C6 /* RAMBounceAnimation.swift in Sources */,
|
||||
84D4B7AE1DB0D38700EE38C6 /* RAMFrameItemAnimation.swift in Sources */,
|
||||
84D4B7AD1DB0D38400EE38C6 /* RAMRotationAnimation.swift in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "if which swiftlint >/dev/null; then\nswiftlint\nelse\necho \"SwiftLint does not exist, download from https://github.com/realm/SwiftLint\"\nfi";
|
||||
};
|
||||
/* End PBXShellScriptBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
CE41466E1A1B923D0037F03C /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
@@ -335,31 +468,31 @@
|
||||
CE41469E1A1B944D0037F03C /* RAMFrameItemAnimation.swift in Sources */,
|
||||
CE90A8401A1C7C14002D8931 /* RAMAnimatedTabBarController.swift in Sources */,
|
||||
CE41467A1A1B923D0037F03C /* ViewController.swift in Sources */,
|
||||
5ADAB94A209B0FA8006CCD85 /* RAMAnimatedTabBarController+BottomLine.swift in Sources */,
|
||||
CE90A8431A1C8DD3002D8931 /* RAMRotationAnimation.swift in Sources */,
|
||||
F3E056BE1A2DD57600F33DDA /* RAMFumeAnimation.swift in Sources */,
|
||||
CE41469F1A1B944D0037F03C /* RAMTransitionItemAnimations.swift in Sources */,
|
||||
3950EDDC235497650072BAAD /* Collection+Extensions.swift in Sources */,
|
||||
84BC64221C22E4C800B89B79 /* RAMBadge.swift in Sources */,
|
||||
3950EDD82354950E0072BAAD /* RAMAnimatedTabBarItem.swift in Sources */,
|
||||
CE4146A01A1B944D0037F03C /* RAMItemAnimationProtocol.swift in Sources */,
|
||||
CE4146781A1B923D0037F03C /* AppDelegate.swift in Sources */,
|
||||
CE90A8791A1CE200002D8931 /* RAMBounceAnimation.swift in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
CE4146831A1B923D0037F03C /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
CE41468E1A1B923D0037F03C /* RAMAnimatedTabBarDemoTests.swift in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXTargetDependency section */
|
||||
CE4146891A1B923D0037F03C /* PBXTargetDependency */ = {
|
||||
5A1F33BF2126AA3D004B8735 /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = CE4146711A1B923D0037F03C /* RAMAnimatedTabBarDemo */;
|
||||
targetProxy = CE4146881A1B923D0037F03C /* PBXContainerItemProxy */;
|
||||
targetProxy = 5A1F33BE2126AA3D004B8735 /* PBXContainerItemProxy */;
|
||||
};
|
||||
84D4B7A31DB0D35500EE38C6 /* PBXTargetDependency */ = {
|
||||
isa = PBXTargetDependency;
|
||||
target = 84D4B79C1DB0D35500EE38C6 /* RAMAnimatedTabBarController */;
|
||||
targetProxy = 84D4B7A21DB0D35500EE38C6 /* PBXContainerItemProxy */;
|
||||
};
|
||||
/* End PBXTargetDependency section */
|
||||
|
||||
@@ -383,21 +516,140 @@
|
||||
/* End PBXVariantGroup section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
5A1F33C02126AA3D004B8735 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
||||
CLANG_ENABLE_OBJC_WEAK = YES;
|
||||
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
||||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||
INFOPLIST_FILE = AnimatedTabBarTests/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.ramotion.AnimatedTabBarTests;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
||||
SWIFT_VERSION = 5.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Animated Tab Bar.app/Animated Tab Bar";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
5A1F33C12126AA3D004B8735 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
||||
CLANG_ENABLE_OBJC_WEAK = YES;
|
||||
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
||||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||
INFOPLIST_FILE = AnimatedTabBarTests/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.ramotion.AnimatedTabBarTests;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_VERSION = 5.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Animated Tab Bar.app/Animated Tab Bar";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
84D4B7A61DB0D35500EE38C6 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVES = YES;
|
||||
CODE_SIGN_IDENTITY = "";
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
DEFINES_MODULE = YES;
|
||||
DEVELOPMENT_TEAM = "";
|
||||
DYLIB_COMPATIBILITY_VERSION = 1;
|
||||
DYLIB_CURRENT_VERSION = 1;
|
||||
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
||||
INFOPLIST_FILE = TabBarLib/Info.plist;
|
||||
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.ramotion.RAMAnimatedTabBarController;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SKIP_INSTALL = YES;
|
||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
||||
SWIFT_VERSION = 5.0;
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
VERSION_INFO_PREFIX = "";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
84D4B7A71DB0D35500EE38C6 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVES = YES;
|
||||
CODE_SIGN_IDENTITY = "";
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
DEFINES_MODULE = YES;
|
||||
DEVELOPMENT_TEAM = "";
|
||||
DYLIB_COMPATIBILITY_VERSION = 1;
|
||||
DYLIB_CURRENT_VERSION = 1;
|
||||
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
||||
INFOPLIST_FILE = TabBarLib/Info.plist;
|
||||
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.ramotion.RAMAnimatedTabBarController;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SKIP_INSTALL = YES;
|
||||
SWIFT_VERSION = 5.0;
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
VERSION_INFO_PREFIX = "";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
CE41468F1A1B923D0037F03C /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
@@ -406,6 +658,7 @@
|
||||
ENABLE_TESTABILITY = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"DEBUG=1",
|
||||
@@ -418,11 +671,12 @@
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 12.2;
|
||||
MTL_ENABLE_DEBUG_INFO = YES;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = iphoneos;
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||
SWIFT_VERSION = 4.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
};
|
||||
name = Debug;
|
||||
@@ -431,17 +685,28 @@
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
@@ -449,15 +714,18 @@
|
||||
ENABLE_NS_ASSERTIONS = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 12.2;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
SDKROOT = iphoneos;
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
|
||||
SWIFT_VERSION = 4.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
@@ -466,68 +734,62 @@
|
||||
CE4146921A1B923D0037F03C /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
DEFINES_MODULE = YES;
|
||||
DEVELOPMENT_TEAM = "";
|
||||
INFOPLIST_FILE = RAMAnimatedTabBarDemo/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.ramotion.dev;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
PRODUCT_NAME = "Animated Tab Bar";
|
||||
PROVISIONING_PROFILE = "";
|
||||
SWIFT_VERSION = 5.0;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
CE4146931A1B923D0037F03C /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
DEFINES_MODULE = YES;
|
||||
DEVELOPMENT_TEAM = "";
|
||||
INFOPLIST_FILE = RAMAnimatedTabBarDemo/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.ramotion.dev;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
PRODUCT_NAME = "Animated Tab Bar";
|
||||
PROVISIONING_PROFILE = "";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
CE4146951A1B923D0037F03C /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"DEBUG=1",
|
||||
"$(inherited)",
|
||||
);
|
||||
INFOPLIST_FILE = RAMAnimatedTabBarDemoTests/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "com.Ramotion.$(PRODUCT_NAME:rfc1034identifier)";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RAMAnimatedTabBarDemo.app/RAMAnimatedTabBarDemo";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
CE4146961A1B923D0037F03C /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
|
||||
INFOPLIST_FILE = RAMAnimatedTabBarDemoTests/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "com.Ramotion.$(PRODUCT_NAME:rfc1034identifier)";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RAMAnimatedTabBarDemo.app/RAMAnimatedTabBarDemo";
|
||||
SWIFT_VERSION = 5.0;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
5A1F33C22126AA3D004B8735 /* Build configuration list for PBXNativeTarget "AnimatedTabBarTests" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
5A1F33C02126AA3D004B8735 /* Debug */,
|
||||
5A1F33C12126AA3D004B8735 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
84D4B7A81DB0D35500EE38C6 /* Build configuration list for PBXNativeTarget "RAMAnimatedTabBarController" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
84D4B7A61DB0D35500EE38C6 /* Debug */,
|
||||
84D4B7A71DB0D35500EE38C6 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
CE41466D1A1B923D0037F03C /* Build configuration list for PBXProject "RAMAnimatedTabBarDemo" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
@@ -546,15 +808,6 @@
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
CE4146941A1B923D0037F03C /* Build configuration list for PBXNativeTarget "RAMAnimatedTabBarDemoTests" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
CE4146951A1B923D0037F03C /* Debug */,
|
||||
CE4146961A1B923D0037F03C /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = CE41466A1A1B923D0037F03C /* Project object */;
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IDEDidComputeMac32BitWarning</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0720"
|
||||
LastUpgradeVersion = "1020"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
@@ -14,9 +14,9 @@
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "CE4146711A1B923D0037F03C"
|
||||
BuildableName = "RAMAnimatedTabBarDemo.app"
|
||||
BlueprintName = "RAMAnimatedTabBarDemo"
|
||||
BlueprintIdentifier = "84D4B79C1DB0D35500EE38C6"
|
||||
BuildableName = "RAMAnimatedTabBarController.framework"
|
||||
BlueprintName = "RAMAnimatedTabBarController"
|
||||
ReferencedContainer = "container:RAMAnimatedTabBarDemo.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
@@ -32,9 +32,9 @@
|
||||
skipped = "NO">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "CE4146861A1B923D0037F03C"
|
||||
BuildableName = "RAMAnimatedTabBarDemoTests.xctest"
|
||||
BlueprintName = "RAMAnimatedTabBarDemoTests"
|
||||
BlueprintIdentifier = "5A1F33B82126AA3D004B8735"
|
||||
BuildableName = "AnimatedTabBarTests.xctest"
|
||||
BlueprintName = "AnimatedTabBarTests"
|
||||
ReferencedContainer = "container:RAMAnimatedTabBarDemo.xcodeproj">
|
||||
</BuildableReference>
|
||||
</TestableReference>
|
||||
@@ -42,9 +42,9 @@
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "CE4146711A1B923D0037F03C"
|
||||
BuildableName = "RAMAnimatedTabBarDemo.app"
|
||||
BlueprintName = "RAMAnimatedTabBarDemo"
|
||||
BlueprintIdentifier = "84D4B79C1DB0D35500EE38C6"
|
||||
BuildableName = "RAMAnimatedTabBarController.framework"
|
||||
BlueprintName = "RAMAnimatedTabBarController"
|
||||
ReferencedContainer = "container:RAMAnimatedTabBarDemo.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
@@ -61,16 +61,15 @@
|
||||
debugDocumentVersioning = "YES"
|
||||
debugServiceExtension = "internal"
|
||||
allowLocationSimulation = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "CE4146711A1B923D0037F03C"
|
||||
BuildableName = "RAMAnimatedTabBarDemo.app"
|
||||
BlueprintName = "RAMAnimatedTabBarDemo"
|
||||
BlueprintIdentifier = "84D4B79C1DB0D35500EE38C6"
|
||||
BuildableName = "RAMAnimatedTabBarController.framework"
|
||||
BlueprintName = "RAMAnimatedTabBarController"
|
||||
ReferencedContainer = "container:RAMAnimatedTabBarDemo.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
@@ -80,16 +79,15 @@
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
debugDocumentVersioning = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "CE4146711A1B923D0037F03C"
|
||||
BuildableName = "RAMAnimatedTabBarDemo.app"
|
||||
BlueprintName = "RAMAnimatedTabBarDemo"
|
||||
BlueprintIdentifier = "84D4B79C1DB0D35500EE38C6"
|
||||
BuildableName = "RAMAnimatedTabBarController.framework"
|
||||
BlueprintName = "RAMAnimatedTabBarController"
|
||||
ReferencedContainer = "container:RAMAnimatedTabBarDemo.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
@@ -13,26 +13,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
|
||||
var window: UIWindow?
|
||||
|
||||
|
||||
func application(
|
||||
application: UIApplication,
|
||||
didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
|
||||
|
||||
public func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func applicationWillResignActive(application: UIApplication) {
|
||||
}
|
||||
|
||||
func applicationDidEnterBackground(application: UIApplication) {
|
||||
}
|
||||
|
||||
func applicationWillEnterForeground(application: UIApplication) {
|
||||
}
|
||||
|
||||
func applicationDidBecomeActive(application: UIApplication) {
|
||||
}
|
||||
|
||||
func applicationWillTerminate(application: UIApplication) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6214" systemVersion="14A314h" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES">
|
||||
<device id="retina4_7" orientation="portrait">
|
||||
<adaptation id="fullscreen"/>
|
||||
</device>
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6207"/>
|
||||
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
@@ -17,21 +21,20 @@
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="RAMAnimatedTabBarDemo" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
|
||||
<rect key="frame" x="20" y="140" width="441" height="43"/>
|
||||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Animated Tab Bar" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
|
||||
<rect key="frame" x="93.5" y="218.5" width="294" height="43"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
<constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
|
||||
<constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
|
||||
<constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
|
||||
<constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
|
||||
<constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="SHs-oA-M0R"/>
|
||||
<constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
|
||||
<constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/>
|
||||
</constraints>
|
||||
<nil key="simulatedStatusBarMetrics"/>
|
||||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
|
||||
|
||||
@@ -1,53 +1,43 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="9532" systemVersion="15D21" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="QjJ-1j-Kct">
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15400" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="QjJ-1j-Kct">
|
||||
<device id="retina4_7" orientation="portrait" appearance="light"/>
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9530"/>
|
||||
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15404"/>
|
||||
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--Item-->
|
||||
<scene sceneID="Y99-CA-jqU">
|
||||
<objects>
|
||||
<viewController id="wJE-Q4-t8C" sceneMemberID="viewController">
|
||||
<layoutGuides>
|
||||
<viewControllerLayoutGuide type="top" id="n1y-U7-ZG1"/>
|
||||
<viewControllerLayoutGuide type="bottom" id="ccN-XV-rhh"/>
|
||||
</layoutGuides>
|
||||
<view key="view" contentMode="scaleToFill" id="PmG-Vl-9D1">
|
||||
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="FumeAnimation" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="UxN-OP-GHb">
|
||||
<rect key="frame" x="126" y="149" width="348" height="71"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="348" id="7vr-pR-SXo"/>
|
||||
<constraint firstAttribute="height" constant="71" id="mCo-IA-Ilv"/>
|
||||
</constraints>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Fume Animation" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="UxN-OP-GHb">
|
||||
<rect key="frame" x="93" y="317.5" width="189" height="32.5"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="27"/>
|
||||
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<color key="textColor" red="0.33333333333333331" green="0.33333333333333331" blue="0.33333333333333331" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="centerX" secondItem="UxN-OP-GHb" secondAttribute="centerX" id="1l9-FQ-w0o"/>
|
||||
<constraint firstAttribute="centerY" secondItem="UxN-OP-GHb" secondAttribute="centerY" constant="115.5" id="5ae-83-gzq"/>
|
||||
<constraint firstItem="cbk-oV-z7H" firstAttribute="centerX" secondItem="UxN-OP-GHb" secondAttribute="centerX" id="1l9-FQ-w0o"/>
|
||||
<constraint firstAttribute="centerY" secondItem="UxN-OP-GHb" secondAttribute="centerY" id="5ae-83-gzq"/>
|
||||
</constraints>
|
||||
<viewLayoutGuide key="safeArea" id="cbk-oV-z7H"/>
|
||||
</view>
|
||||
<tabBarItem key="tabBarItem" title="Item" image="drop" id="tS2-0E-St8" customClass="RAMAnimatedTabBarItem" customModule="RAMAnimatedTabBarDemo" customModuleProvider="target">
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="textColor">
|
||||
<color key="value" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
<tabBarItem key="tabBarItem" title="Item" image="drop" id="tS2-0E-St8" customClass="RAMAnimatedTabBarItem" customModule="Animated_Tab_Bar" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="animation" destination="Lky-Hp-l9U" id="r67-ap-cxK"/>
|
||||
</connections>
|
||||
</tabBarItem>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="zW4-Q6-RN5" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
<customObject id="Lky-Hp-l9U" customClass="RAMFumeAnimation" customModule="RAMAnimatedTabBarDemo" customModuleProvider="target">
|
||||
<customObject id="Lky-Hp-l9U" customClass="RAMFumeAnimation" customModule="Animated_Tab_Bar" customModuleProvider="target">
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="duration">
|
||||
<real key="value" value="0.40000000000000002"/>
|
||||
@@ -60,51 +50,39 @@
|
||||
<!--Item1-->
|
||||
<scene sceneID="tne-QT-ifu">
|
||||
<objects>
|
||||
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="RAMAnimatedTabBarDemo" customModuleProvider="target" sceneMemberID="viewController">
|
||||
<layoutGuides>
|
||||
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
|
||||
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
|
||||
</layoutGuides>
|
||||
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="Animated_Tab_Bar" customModuleProvider="target" sceneMemberID="viewController">
|
||||
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
|
||||
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="TransitionItemAnimation" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="AeA-ED-4jL">
|
||||
<rect key="frame" x="126" y="150" width="348" height="71"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="71" id="51d-lD-JHB"/>
|
||||
<constraint firstAttribute="width" constant="348" id="6Ur-Ph-cXK"/>
|
||||
</constraints>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Transition Animation" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="AeA-ED-4jL">
|
||||
<rect key="frame" x="69.5" y="317.5" width="236" height="32.5"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="27"/>
|
||||
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<color key="textColor" red="0.33333333333333331" green="0.33333333333333331" blue="0.33333333333333331" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="centerY" secondItem="AeA-ED-4jL" secondAttribute="centerY" constant="114.5" id="Ifi-6x-Ruv"/>
|
||||
<constraint firstAttribute="centerX" secondItem="AeA-ED-4jL" secondAttribute="centerX" id="gXX-8c-cGG"/>
|
||||
<constraint firstAttribute="centerY" secondItem="AeA-ED-4jL" secondAttribute="centerY" id="Ifi-6x-Ruv"/>
|
||||
<constraint firstItem="8ec-QI-6Cw" firstAttribute="centerX" secondItem="AeA-ED-4jL" secondAttribute="centerX" id="gXX-8c-cGG"/>
|
||||
</constraints>
|
||||
<viewLayoutGuide key="safeArea" id="8ec-QI-6Cw"/>
|
||||
</view>
|
||||
<tabBarItem key="tabBarItem" title="Item1" image="icon_pin" id="lUH-JS-dWf" customClass="RAMAnimatedTabBarItem" customModule="RAMAnimatedTabBarDemo" customModuleProvider="target">
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="textColor">
|
||||
<color key="value" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
<tabBarItem key="tabBarItem" title="Item1" image="icon_pin" id="lUH-JS-dWf" customClass="RAMAnimatedTabBarItem" customModule="Animated_Tab_Bar" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="animation" destination="CzN-js-aQV" id="gvH-Rf-Hp8"/>
|
||||
</connections>
|
||||
</tabBarItem>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
|
||||
<customObject id="CzN-js-aQV" customClass="RAMFlipLeftTransitionItemAnimations" customModule="RAMAnimatedTabBarDemo" customModuleProvider="target">
|
||||
<customObject id="CzN-js-aQV" customClass="RAMFlipLeftTransitionItemAnimations" customModule="Animated_Tab_Bar" customModuleProvider="target">
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="iconSelectedColor">
|
||||
<color key="value" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<color key="value" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="textSelectedColor">
|
||||
<color key="value" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<color key="value" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</customObject>
|
||||
@@ -115,47 +93,35 @@
|
||||
<scene sceneID="quI-1J-que">
|
||||
<objects>
|
||||
<viewController id="DFF-lT-Wr8" sceneMemberID="viewController">
|
||||
<layoutGuides>
|
||||
<viewControllerLayoutGuide type="top" id="bPS-fl-hCE"/>
|
||||
<viewControllerLayoutGuide type="bottom" id="hbL-QY-0OH"/>
|
||||
</layoutGuides>
|
||||
<view key="view" contentMode="scaleToFill" id="DX2-Ge-a2o">
|
||||
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="RotationAnimation" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="juj-np-Jde">
|
||||
<rect key="frame" x="126" y="150" width="348" height="71"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="348" id="5mf-z4-7zw"/>
|
||||
<constraint firstAttribute="height" constant="71" id="AvE-La-OSt"/>
|
||||
</constraints>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Rotation Animation" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="juj-np-Jde">
|
||||
<rect key="frame" x="77.5" y="317.5" width="220.5" height="32.5"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="27"/>
|
||||
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<color key="textColor" red="0.33333333333333331" green="0.33333333333333331" blue="0.33333333333333331" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="centerY" secondItem="juj-np-Jde" secondAttribute="centerY" constant="114.5" id="5B9-09-yru"/>
|
||||
<constraint firstAttribute="centerX" secondItem="juj-np-Jde" secondAttribute="centerX" id="JZ0-P4-3th"/>
|
||||
<constraint firstAttribute="centerY" secondItem="juj-np-Jde" secondAttribute="centerY" id="5B9-09-yru"/>
|
||||
<constraint firstItem="VaI-Rh-DC9" firstAttribute="centerX" secondItem="juj-np-Jde" secondAttribute="centerX" id="JZ0-P4-3th"/>
|
||||
</constraints>
|
||||
<viewLayoutGuide key="safeArea" id="VaI-Rh-DC9"/>
|
||||
</view>
|
||||
<tabBarItem key="tabBarItem" title="Item2" image="icon_user" id="z5N-yh-KHH" customClass="RAMAnimatedTabBarItem" customModule="RAMAnimatedTabBarDemo" customModuleProvider="target">
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="textColor">
|
||||
<color key="value" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
<tabBarItem key="tabBarItem" title="Item2" image="icon_user" id="z5N-yh-KHH" customClass="RAMAnimatedTabBarItem" customModule="Animated_Tab_Bar" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="animation" destination="SMy-mk-LC7" id="MkP-KN-27u"/>
|
||||
</connections>
|
||||
</tabBarItem>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="3Cn-qd-9Vu" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
<customObject id="SMy-mk-LC7" customClass="RAMLeftRotationAnimation" customModule="RAMAnimatedTabBarDemo" customModuleProvider="target">
|
||||
<customObject id="SMy-mk-LC7" customClass="RAMLeftRotationAnimation" customModule="Animated_Tab_Bar" customModuleProvider="target">
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="textSelectedColor">
|
||||
<color key="value" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<color key="value" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</customObject>
|
||||
@@ -165,12 +131,13 @@
|
||||
<!--Animated Tab Bar Controller-->
|
||||
<scene sceneID="ovl-w5-59e">
|
||||
<objects>
|
||||
<tabBarController automaticallyAdjustsScrollViewInsets="NO" id="QjJ-1j-Kct" customClass="RAMAnimatedTabBarController" customModule="RAMAnimatedTabBarDemo" customModuleProvider="target" sceneMemberID="viewController">
|
||||
<tabBarController storyboardIdentifier="RAMAnimatedTabBarController" automaticallyAdjustsScrollViewInsets="NO" id="QjJ-1j-Kct" customClass="RAMAnimatedTabBarController" customModule="Animated_Tab_Bar" customModuleProvider="target" sceneMemberID="viewController">
|
||||
<toolbarItems/>
|
||||
<nil key="simulatedBottomBarMetrics"/>
|
||||
<tabBar key="tabBar" contentMode="scaleToFill" id="Xsb-sw-RJ2">
|
||||
<rect key="frame" x="0.0" y="0.0" width="1000" height="1000"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</tabBar>
|
||||
<connections>
|
||||
<segue destination="eCt-4k-9Vu" kind="relationship" relationship="viewControllers" id="WZh-Xs-WLh"/>
|
||||
@@ -187,68 +154,56 @@
|
||||
<!--Item4-->
|
||||
<scene sceneID="ttZ-oS-sRQ">
|
||||
<objects>
|
||||
<viewController id="eCt-4k-9Vu" customClass="ViewController" customModule="RAMAnimatedTabBarDemo" customModuleProvider="target" sceneMemberID="viewController">
|
||||
<layoutGuides>
|
||||
<viewControllerLayoutGuide type="top" id="bHT-V9-9VP"/>
|
||||
<viewControllerLayoutGuide type="bottom" id="KE1-We-Sek"/>
|
||||
</layoutGuides>
|
||||
<viewController id="eCt-4k-9Vu" customClass="ViewController" customModule="Animated_Tab_Bar" customModuleProvider="target" sceneMemberID="viewController">
|
||||
<view key="view" contentMode="scaleToFill" id="JgG-ft-dcB">
|
||||
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Bounce Animation" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="qMh-ib-nBJ">
|
||||
<rect key="frame" x="126" y="150" width="348" height="71"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="348" id="8ey-6U-wVm"/>
|
||||
<constraint firstAttribute="height" constant="71" id="UZX-wq-Um3"/>
|
||||
</constraints>
|
||||
<rect key="frame" x="81.5" y="317.5" width="212" height="32.5"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="27"/>
|
||||
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<color key="textColor" red="0.33333333333333331" green="0.33333333333333331" blue="0.33333333333333331" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="KK9-Py-qqm">
|
||||
<rect key="frame" x="0.0" y="513" width="299" height="30"/>
|
||||
<rect key="frame" x="-4" y="580" width="190.5" height="30"/>
|
||||
<state key="normal" title="Show Badge"/>
|
||||
<connections>
|
||||
<action selector="showBadge:" destination="eCt-4k-9Vu" eventType="touchUpInside" id="gaZ-LE-V0q"/>
|
||||
<action selector="showBadgeHandelr:" destination="eCt-4k-9Vu" eventType="touchUpInside" id="ghX-V6-TVP"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="FKl-OF-gs1">
|
||||
<rect key="frame" x="301" y="513" width="299" height="30"/>
|
||||
<rect key="frame" x="188.5" y="580" width="190.5" height="30"/>
|
||||
<state key="normal" title="Hide Badge"/>
|
||||
<connections>
|
||||
<action selector="hideBadge:" destination="eCt-4k-9Vu" eventType="touchUpInside" id="jnK-hR-e83"/>
|
||||
<action selector="hideBadgeHandler:" destination="eCt-4k-9Vu" eventType="touchUpInside" id="9Ed-dA-ULL"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
<constraint firstItem="FKl-OF-gs1" firstAttribute="leading" secondItem="KK9-Py-qqm" secondAttribute="trailing" constant="2" id="IP7-Vx-f8P"/>
|
||||
<constraint firstItem="KK9-Py-qqm" firstAttribute="leading" secondItem="JgG-ft-dcB" secondAttribute="leadingMargin" constant="-20" id="Isz-OD-x14"/>
|
||||
<constraint firstItem="KK9-Py-qqm" firstAttribute="width" secondItem="FKl-OF-gs1" secondAttribute="width" id="WnW-pO-RYO"/>
|
||||
<constraint firstAttribute="trailingMargin" secondItem="FKl-OF-gs1" secondAttribute="trailing" constant="-20" id="YyU-4n-KYs"/>
|
||||
<constraint firstAttribute="centerX" secondItem="qMh-ib-nBJ" secondAttribute="centerX" id="b2F-Ux-a2l"/>
|
||||
<constraint firstAttribute="centerY" secondItem="qMh-ib-nBJ" secondAttribute="centerY" constant="114.5" id="jUP-sb-8cO"/>
|
||||
<constraint firstItem="KE1-We-Sek" firstAttribute="top" secondItem="KK9-Py-qqm" secondAttribute="bottom" constant="8" id="naI-ed-60X"/>
|
||||
<constraint firstItem="KE1-We-Sek" firstAttribute="top" secondItem="FKl-OF-gs1" secondAttribute="bottom" constant="8" id="ush-0w-xgF"/>
|
||||
<constraint firstItem="kSB-yj-LRJ" firstAttribute="centerX" secondItem="qMh-ib-nBJ" secondAttribute="centerX" id="b2F-Ux-a2l"/>
|
||||
<constraint firstAttribute="centerY" secondItem="qMh-ib-nBJ" secondAttribute="centerY" id="jUP-sb-8cO"/>
|
||||
<constraint firstItem="kSB-yj-LRJ" firstAttribute="bottom" secondItem="KK9-Py-qqm" secondAttribute="bottom" constant="8" id="naI-ed-60X"/>
|
||||
<constraint firstItem="kSB-yj-LRJ" firstAttribute="bottom" secondItem="FKl-OF-gs1" secondAttribute="bottom" constant="8" id="ush-0w-xgF"/>
|
||||
</constraints>
|
||||
<viewLayoutGuide key="safeArea" id="kSB-yj-LRJ"/>
|
||||
</view>
|
||||
<tabBarItem key="tabBarItem" title="Item4" image="Settings" id="EiX-sv-bUZ" customClass="RAMAnimatedTabBarItem" customModule="RAMAnimatedTabBarDemo" customModuleProvider="target">
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="textColor">
|
||||
<color key="value" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
<tabBarItem key="tabBarItem" title="Item4" image="Settings" id="EiX-sv-bUZ" customClass="RAMAnimatedTabBarItem" customModule="Animated_Tab_Bar" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="animation" destination="BSW-Za-y3b" id="Q93-Wg-KJV"/>
|
||||
</connections>
|
||||
</tabBarItem>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="4bq-TO-3KR" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
<customObject id="BSW-Za-y3b" customClass="RAMBounceAnimation" customModule="RAMAnimatedTabBarDemo" customModuleProvider="target">
|
||||
<customObject id="BSW-Za-y3b" customClass="RAMBounceAnimation" customModule="Animated_Tab_Bar" customModuleProvider="target">
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="textSelectedColor">
|
||||
<color key="value" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<color key="value" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="duration">
|
||||
<real key="value" value="0.80000000000000004"/>
|
||||
@@ -262,49 +217,37 @@
|
||||
<scene sceneID="rxZ-sE-b31">
|
||||
<objects>
|
||||
<viewController id="Zsy-o9-m6D" sceneMemberID="viewController">
|
||||
<layoutGuides>
|
||||
<viewControllerLayoutGuide type="top" id="lxI-Ta-Ipa"/>
|
||||
<viewControllerLayoutGuide type="bottom" id="YWx-Sv-OdQ"/>
|
||||
</layoutGuides>
|
||||
<view key="view" contentMode="scaleToFill" id="qT7-Vb-aMC">
|
||||
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="FrameItemAnimation" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gnW-CR-KSE">
|
||||
<rect key="frame" x="126" y="150" width="348" height="71"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="348" id="CpS-Yg-h9q"/>
|
||||
<constraint firstAttribute="height" constant="71" id="cij-cm-UE5"/>
|
||||
</constraints>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Frame Animation" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gnW-CR-KSE">
|
||||
<rect key="frame" x="89.5" y="317.5" width="196.5" height="32.5"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="27"/>
|
||||
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<color key="textColor" red="0.33333333333333331" green="0.33333333333333331" blue="0.33333333333333331" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="centerX" secondItem="gnW-CR-KSE" secondAttribute="centerX" id="jwX-bj-6Ah"/>
|
||||
<constraint firstAttribute="centerY" secondItem="gnW-CR-KSE" secondAttribute="centerY" constant="114.5" id="pMh-vB-55X"/>
|
||||
<constraint firstItem="oai-od-5ae" firstAttribute="centerX" secondItem="gnW-CR-KSE" secondAttribute="centerX" id="jwX-bj-6Ah"/>
|
||||
<constraint firstAttribute="centerY" secondItem="gnW-CR-KSE" secondAttribute="centerY" id="pMh-vB-55X"/>
|
||||
</constraints>
|
||||
<viewLayoutGuide key="safeArea" id="oai-od-5ae"/>
|
||||
</view>
|
||||
<tabBarItem key="tabBarItem" title="Item3" image="Tools_00028" id="c38-iL-qNf" customClass="RAMAnimatedTabBarItem" customModule="RAMAnimatedTabBarDemo" customModuleProvider="target">
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="textColor">
|
||||
<color key="value" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
<tabBarItem key="tabBarItem" title="Item3" image="Tools_00028" id="c38-iL-qNf" customClass="RAMAnimatedTabBarItem" customModule="Animated_Tab_Bar" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="animation" destination="Ojd-WY-9Yd" id="Ogs-bO-YG5"/>
|
||||
</connections>
|
||||
</tabBarItem>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="FuQ-Du-YS3" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
<customObject id="Ojd-WY-9Yd" customClass="RAMFrameItemAnimation" customModule="RAMAnimatedTabBarDemo" customModuleProvider="target">
|
||||
<customObject id="Ojd-WY-9Yd" customClass="RAMFrameItemAnimation" customModule="Animated_Tab_Bar" customModuleProvider="target">
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="string" keyPath="imagesPath" value="ToolsAnimation"/>
|
||||
<userDefinedRuntimeAttribute type="boolean" keyPath="isDeselectAnimation" value="YES"/>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="textSelectedColor">
|
||||
<color key="value" red="0.91764705879999997" green="0.2901960784" blue="0.20784313730000001" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<color key="value" red="0.91764705879999997" green="0.2901960784" blue="0.20784313730000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</customObject>
|
||||
|
||||
@@ -1,68 +1,119 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "iphone",
|
||||
"size" : "29x29",
|
||||
"filename" : "icon-40.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "iphone",
|
||||
"size" : "29x29",
|
||||
"filename" : "icon-60.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "iphone",
|
||||
"size" : "40x40",
|
||||
"filename" : "icon-58.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "iphone",
|
||||
"size" : "40x40",
|
||||
"filename" : "icon-87.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "icon-80.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "icon-120.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "60x60",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "icon-120.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "iphone",
|
||||
"size" : "60x60",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "icon-180.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "icon-20.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "icon-40.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "icon-29.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "29x29",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "icon-58.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "40x40",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "icon-40.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "40x40",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "icon-80.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "76x76",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "icon-76.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ipad",
|
||||
"size" : "76x76",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "icon-152.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "83.5x83.5",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "icon-167.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "1024x1024",
|
||||
"idiom" : "ios-marketing",
|
||||
"filename" : "Ramotion1024.png",
|
||||
"scale" : "1x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
},
|
||||
"properties" : {
|
||||
"pre-rendered" : true
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 464 B |
|
After Width: | Height: | Size: 618 B |
|
After Width: | Height: | Size: 834 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
@@ -1,47 +1,44 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>images</key>
|
||||
<array>
|
||||
<string>Tools_00028</string>
|
||||
<string>Tools_00029</string>
|
||||
<string>Tools_00030</string>
|
||||
<string>Tools_00031</string>
|
||||
<string>Tools_00032</string>
|
||||
<string>Tools_00033</string>
|
||||
<string>Tools_00034</string>
|
||||
<string>Tools_00035</string>
|
||||
<string>Tools_00036</string>
|
||||
<string>Tools_00037</string>
|
||||
<string>Tools_00038</string>
|
||||
<string>Tools_00039</string>
|
||||
<string>Tools_00040</string>
|
||||
<string>Tools_00041</string>
|
||||
<string>Tools_00042</string>
|
||||
<string>Tools_00043</string>
|
||||
<string>Tools_00044</string>
|
||||
<string>Tools_00045</string>
|
||||
<string>Tools_00046</string>
|
||||
<string>Tools_00047</string>
|
||||
<string>Tools_00048</string>
|
||||
<string>Tools_00049</string>
|
||||
<string>Tools_00050</string>
|
||||
<string>Tools_00051</string>
|
||||
<string>Tools_00052</string>
|
||||
<string>Tools_00053</string>
|
||||
<string>Tools_00054</string>
|
||||
<string>Tools_00055</string>
|
||||
<string>Tools_00056</string>
|
||||
<string>Tools_00057</string>
|
||||
<string>Tools_00058</string>
|
||||
<string>Tools_00059</string>
|
||||
<string>Tools_00060</string>
|
||||
<string>Tools_00061</string>
|
||||
<string>Tools_00062</string>
|
||||
<string>Tools_00063</string>
|
||||
<string>Tools_00064</string>
|
||||
<string>Tools_00065</string>
|
||||
</array>
|
||||
</dict>
|
||||
<array>
|
||||
<string>Tools_00028</string>
|
||||
<string>Tools_00029</string>
|
||||
<string>Tools_00030</string>
|
||||
<string>Tools_00031</string>
|
||||
<string>Tools_00032</string>
|
||||
<string>Tools_00033</string>
|
||||
<string>Tools_00034</string>
|
||||
<string>Tools_00035</string>
|
||||
<string>Tools_00036</string>
|
||||
<string>Tools_00037</string>
|
||||
<string>Tools_00038</string>
|
||||
<string>Tools_00039</string>
|
||||
<string>Tools_00040</string>
|
||||
<string>Tools_00041</string>
|
||||
<string>Tools_00042</string>
|
||||
<string>Tools_00043</string>
|
||||
<string>Tools_00044</string>
|
||||
<string>Tools_00045</string>
|
||||
<string>Tools_00046</string>
|
||||
<string>Tools_00047</string>
|
||||
<string>Tools_00048</string>
|
||||
<string>Tools_00049</string>
|
||||
<string>Tools_00050</string>
|
||||
<string>Tools_00051</string>
|
||||
<string>Tools_00052</string>
|
||||
<string>Tools_00053</string>
|
||||
<string>Tools_00054</string>
|
||||
<string>Tools_00055</string>
|
||||
<string>Tools_00056</string>
|
||||
<string>Tools_00057</string>
|
||||
<string>Tools_00058</string>
|
||||
<string>Tools_00059</string>
|
||||
<string>Tools_00060</string>
|
||||
<string>Tools_00061</string>
|
||||
<string>Tools_00062</string>
|
||||
<string>Tools_00063</string>
|
||||
<string>Tools_00064</string>
|
||||
<string>Tools_00065</string>
|
||||
</array>
|
||||
</plist>
|
||||
|
||||
@@ -9,27 +9,17 @@
|
||||
import UIKit
|
||||
|
||||
class ViewController: UIViewController {
|
||||
|
||||
|
||||
var index: NSInteger = 0
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
// Do any additional setup after loading the view, typically from a nib.
|
||||
}
|
||||
|
||||
override func didReceiveMemoryWarning() {
|
||||
super.didReceiveMemoryWarning()
|
||||
// Dispose of any resources that can be recreated.
|
||||
}
|
||||
|
||||
// PRAGMA: actions
|
||||
|
||||
@IBAction func showBadge(sender: AnyObject) {
|
||||
index++
|
||||
self.tabBarItem.badgeValue = "\(index)"
|
||||
@IBAction func showBadgeHandelr(_: AnyObject) {
|
||||
// example for showing badges
|
||||
index += 1
|
||||
tabBarItem.badgeValue = "\(index)"
|
||||
}
|
||||
|
||||
@IBAction func hideBadge(sender: AnyObject) {
|
||||
self.tabBarItem.badgeValue = nil
|
||||
|
||||
@IBAction func hideBadgeHandler(_: AnyObject) {
|
||||
tabBarItem.badgeValue = nil
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
//
|
||||
// RAMAnimatedTabBarDemoTests.swift
|
||||
// RAMAnimatedTabBarDemoTests
|
||||
//
|
||||
// Created by Alex Kalinkin on 11/18/14.
|
||||
// Copyright (c) 2014 Ramotion. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
import XCTest
|
||||
|
||||
class RAMAnimatedTabBarDemoTests: XCTestCase {
|
||||
|
||||
override func setUp() {
|
||||
super.setUp()
|
||||
// Put setup code here. This method is called before the invocation of each test method in the class.
|
||||
}
|
||||
|
||||
override func tearDown() {
|
||||
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
||||
super.tearDown()
|
||||
}
|
||||
|
||||
func testExample() {
|
||||
// This is an example of a functional test case.
|
||||
XCTAssert(true, "Pass")
|
||||
}
|
||||
|
||||
func testPerformanceExample() {
|
||||
// This is an example of a performance test case.
|
||||
self.measureBlock() {
|
||||
// Put the code you want to measure the time of here.
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>$(EXECUTABLE_NAME)</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>$(PRODUCT_NAME)</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>$(CURRENT_PROJECT_VERSION)</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string></string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// TabBarLib.h
|
||||
// TabBarLib
|
||||
//
|
||||
// Created by Alex K. on 14/10/16.
|
||||
// Copyright © 2016 Ramotion. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
//! Project version number for TabBarLib.
|
||||
FOUNDATION_EXPORT double TabBarLibVersionNumber;
|
||||
|
||||
//! Project version string for TabBarLib.
|
||||
FOUNDATION_EXPORT const unsigned char TabBarLibVersionString[];
|
||||
|
||||
// In this header, you should import all the public headers of your framework using statements like #import <TabBarLib/PublicHeader.h>
|
||||
|
||||
|
||||
@@ -1,28 +1,39 @@
|
||||

|
||||
# RAMAnimatedTabBarController
|
||||
<a href="https://www.ramotion.com/agency/app-development/?utm_source=gthb&utm_medium=repo&utm_campaign=animated-tab-bar"><img src="https://github.com/Ramotion/animated-tab-bar/blob/master/header.png"></a>
|
||||
|
||||
<a href="https://github.com/Ramotion/animated-tab-bar">
|
||||
<img align="left" src="https://github.com/Ramotion/animated-tab-bar/blob/master/Screenshots/animatedTabBar.gif" width="480" height="360" /></a>
|
||||
|
||||
<p><h1 align="left">ANIMATED TAB BAR</h1></p>
|
||||
|
||||
<h4>Swift UI module library for adding animation to iOS tabbar items and icons.</h4>
|
||||
|
||||
|
||||
___
|
||||
|
||||
|
||||
|
||||
<p><h6>We specialize in the designing and coding of custom UI for Mobile Apps and Websites.</h6>
|
||||
<a href="https://www.ramotion.com/agency/app-development/?utm_source=gthb&utm_medium=repo&utm_campaign=animated-tab-bar">
|
||||
<img src="https://github.com/ramotion/gliding-collection/raw/master/contact_our_team@2x.png" width="187" height="34"></a>
|
||||
</p>
|
||||
<p><h6>Stay tuned for the latest updates:</h6>
|
||||
<a href="https://goo.gl/rPFpid" >
|
||||
<img src="https://i.imgur.com/ziSqeSo.png/" width="156" height="28"></a></p>
|
||||
|
||||
</br>
|
||||
|
||||
[](http://cocoapods.org/pods/RAMAnimatedTabBarController)
|
||||
[](http://cocoapods.org/pods/RAMAnimatedTabBarController)
|
||||
[](https://developer.apple.com/swift/)
|
||||
[](https://github.com/Ramotion/animated-tab-bar)
|
||||
[](https://developer.apple.com/swift/)
|
||||
[](http://twitter.com/Ramotion)
|
||||
[](https://travis-ci.org/Ramotion/animated-tab-bar)
|
||||
|
||||
|
||||
|
||||
RAMAnimatedTabBarController is a Swift module for adding animation to tabbar items. It has pre-set of animations which we prepare for you, and ability to use any custom animation you want. With this module you can make your tabbar alive like our [shot on dribbble](https://dribbble.com/shots/1766396-Animated-Tab-Bar-Icons?list=searches&tag=ramotion&offset=...):
|
||||
|
||||

|
||||
|
||||
The [iPhone mockup](https://store.ramotion.com/product/iphone-6-mockups?utm_source=gthb&utm_medium=special&utm_campaign=animated-tab-bar) available [here](https://store.ramotion.com/product/iphone-6-mockups?utm_source=gthb&utm_medium=special&utm_campaign=animated-tab-bar).
|
||||
|
||||
|
||||
Screencast from our Demo
|
||||
|
||||

|
||||
[](https://paypal.me/Ramotion)
|
||||
|
||||
## Requirements
|
||||
|
||||
- iOS 7.0+
|
||||
- Xcode 6.1
|
||||
- iOS 9.0+
|
||||
- Xcode 10.2
|
||||
|
||||
## Installation
|
||||
|
||||
@@ -30,9 +41,17 @@ Just add the RAMAnimatedTabBarController folder to your project.
|
||||
|
||||
or use [CocoaPods](https://cocoapods.org) with Podfile:
|
||||
``` ruby
|
||||
pod 'RAMAnimatedTabBarController', '~> 1.2.1'
|
||||
pod 'RAMAnimatedTabBarController'
|
||||
```
|
||||
|
||||
or [Carthage](https://github.com/Carthage/Carthage) users can simply add to their `Cartfile`:
|
||||
```
|
||||
github "Ramotion/animated-tab-bar"
|
||||
```
|
||||
|
||||
or [Swift Package Manager](https://swift.org/package-manager/)
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
1. Create a new UITabBarController in your storyboard or nib.
|
||||
@@ -43,49 +62,49 @@ pod 'RAMAnimatedTabBarController', '~> 1.2.1'
|
||||
|
||||
4. Add a custom image icon for each RAMAnimatedTabBarItem
|
||||
|
||||
5. Add animation for each RAMAnimatedTabBarItem :
|
||||
* drag and drop an NSObject item into your ViewController
|
||||
5. Add animation for each RAMAnimatedTabBarItem :
|
||||
* drag and drop an NSObject item into your ViewController
|
||||
* set its class to ANIMATION_CLASS (where ANIMATION_CLASS is the class name of the animation you want to use)
|
||||
* connect the outlet animation in RAMAnimatedTabBarItem to your ANIMATION_CLASS
|
||||
[Demonstration video for step 5](http://vimeo.com/112390386)
|
||||
|
||||
|
||||
|
||||
|
||||
## Included Animations
|
||||
|
||||
* RAMBounceAnimation
|
||||
* RAMLeftRotationAnimation
|
||||
* RAMRightRotationAnimation
|
||||
* RAMFlipLeftTransitionItemAniamtions
|
||||
* RAMFlipRightTransitionItemAniamtions
|
||||
* RAMFlipTopTransitionItemAniamtions
|
||||
* RAMFlipBottomTransitionItemAniamtions
|
||||
* RAMFlipLeftTransitionItemAnimations
|
||||
* RAMFlipRightTransitionItemAnimations
|
||||
* RAMFlipTopTransitionItemAnimations
|
||||
* RAMFlipBottomTransitionItemAnimations
|
||||
* RAMFrameItemAnimation
|
||||
* RAMFumeAnimation
|
||||
|
||||
## Creating Custom Animations
|
||||
1. Create a new class which inherits from RAMItemAnimation:
|
||||
|
||||
|
||||
``` swift
|
||||
class NewAnimation : RAMItemAnimation
|
||||
```
|
||||
2. Implement the methods in RAMItemAnimationProtocol:
|
||||
2. Implement the methods in RAMItemAnimationProtocol:
|
||||
|
||||
|
||||
``` swift
|
||||
// method call when Tab Bar Item is selected
|
||||
override func playAnimation(icon : UIImageView, textLable : UILabel) {
|
||||
override func playAnimation(icon: UIImageView, textLabel: UILabel) {
|
||||
// add animation
|
||||
}
|
||||
```
|
||||
``` swift
|
||||
// method call when Tab Bar Item is deselected
|
||||
override func deselectAnimation(icon : UIImageView, textLable : UILabel, defaultTextColor : UIColor) {
|
||||
override func deselectAnimation(icon: UIImageView, textLabel: UILabel, defaultTextColor: UIColor, defaultIconColor: UIColor) {
|
||||
// add animation
|
||||
}
|
||||
```
|
||||
``` swift
|
||||
// method call when TabBarController did load
|
||||
override func selectedState(icon : UIImageView, textLable : UILabel) {
|
||||
override func selectedState(icon: UIImageView, textLabel: UILabel) {
|
||||
// set selected state
|
||||
}
|
||||
```
|
||||
@@ -93,37 +112,52 @@ pod 'RAMAnimatedTabBarController', '~> 1.2.1'
|
||||
3. Example:
|
||||
|
||||
``` swift
|
||||
import RAMAnimatedTabBarController
|
||||
|
||||
class RAMBounceAnimation : RAMItemAnimation {
|
||||
|
||||
override func playAnimation(icon : UIImageView, textLable : UILabel) {
|
||||
|
||||
override func playAnimation(_ icon: UIImageView, textLabel: UILabel) {
|
||||
playBounceAnimation(icon)
|
||||
textLable.textColor = textSelectedColor
|
||||
}
|
||||
|
||||
override func deselectAnimation(icon : UIImageView, textLable : UILabel, defaultTextColor : UIColor) {
|
||||
textLable.textColor = defaultTextColor
|
||||
}
|
||||
|
||||
override func selectedState(icon : UIImageView, textLable : UILabel) {
|
||||
textLable.textColor = textSelectedColor
|
||||
textLabel.textColor = textSelectedColor
|
||||
}
|
||||
|
||||
func playBounceAnimation(icon : UIImageView) {
|
||||
|
||||
override func deselectAnimation(_ icon: UIImageView, textLabel: UILabel, defaultTextColor: UIColor, defaultIconColor: UIColor) {
|
||||
textLabel.textColor = defaultTextColor
|
||||
}
|
||||
|
||||
override func selectedState(_ icon: UIImageView, textLabel: UILabel) {
|
||||
textLabel.textColor = textSelectedColor
|
||||
}
|
||||
|
||||
func playBounceAnimation(_ icon : UIImageView) {
|
||||
|
||||
let bounceAnimation = CAKeyframeAnimation(keyPath: "transform.scale")
|
||||
bounceAnimation.values = [1.0 ,1.4, 0.9, 1.15, 0.95, 1.02, 1.0]
|
||||
bounceAnimation.duration = NSTimeInterval(duration)
|
||||
bounceAnimation.duration = TimeInterval(duration)
|
||||
bounceAnimation.calculationMode = kCAAnimationCubic
|
||||
|
||||
icon.layer.addAnimation(bounceAnimation, forKey: "bounceAnimation")
|
||||
|
||||
icon.layer.add(bounceAnimation, forKey: "bounceAnimation")
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## About
|
||||
The project maintained by [app development agency](https://ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=animated-tab-bar) [Ramotion Inc.](https://ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=animated-tab-bar)
|
||||
See our other [open-source projects](https://github.com/ramotion) or [hire](https://ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=animated-tab-bar) us to design, develop, and grow your product.
|
||||
|
||||
[](https://twitter.com/intent/tweet?text=https://github.com/ramotion/animated-tab-bar)
|
||||
[](https://twitter.com/ramotion)
|
||||
## 📄 License
|
||||
|
||||
Animated Tab Bar is released under the MIT license.
|
||||
See [LICENSE](./LICENSE) for details.
|
||||
|
||||
This library is a part of a <a href="https://github.com/Ramotion/swift-ui-animation-components-and-libraries"><b>selection of our best UI open-source projects.</b></a>
|
||||
|
||||
If you use the open-source library in your project, please make sure to credit and backlink to www.ramotion.com
|
||||
|
||||
## 📱 Get the Showroom App for iOS to give it a try
|
||||
Try this UI component and more like this in our iOS app. Contact us if interested.
|
||||
|
||||
<a href="https://itunes.apple.com/app/apple-store/id1182360240?pt=550053&ct=animated-tab-bar&mt=8" >
|
||||
<img src="https://github.com/ramotion/gliding-collection/raw/master/app_store@2x.png" width="117" height="34"></a>
|
||||
|
||||
<a href="https://www.ramotion.com/agency/app-development/?utm_source=gthb&utm_medium=repo&utm_campaign=animated-tab-bar">
|
||||
<img src="https://github.com/ramotion/gliding-collection/raw/master/contact_our_team@2x.png" width="187" height="34"></a>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
|
After Width: | Height: | Size: 2.1 MiB |
@@ -0,0 +1,337 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Classes Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="js/jquery.min.js" defer></script>
|
||||
<script src="js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a title="Classes Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="index.html">RAMAnimatedTabBarDemo Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="index.html">RAMAnimatedTabBarDemo Reference</a>
|
||||
<img id="carat" src="img/carat.png" />
|
||||
Classes Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMAnimatedTabBarController.html">RAMAnimatedTabBarController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMAnimatedTabBarItem.html">RAMAnimatedTabBarItem</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMBounceAnimation.html">RAMBounceAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMFrameItemAnimation.html">RAMFrameItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMFumeAnimation.html">RAMFumeAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMItemAnimation.html">RAMItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMRotationAnimation.html">RAMRotationAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMTransitionItemAnimations.html">RAMTransitionItemAnimations</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>Classes</h1>
|
||||
<p>The following classes are available globally.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C21RAMAnimatedTabBarDemo21RAMFrameItemAnimation"></a>
|
||||
<a name="//apple_ref/swift/Class/RAMFrameItemAnimation" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C21RAMAnimatedTabBarDemo21RAMFrameItemAnimation">RAMFrameItemAnimation</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The RAMFrameItemAnimation class provides keyframe animation.</p>
|
||||
|
||||
<a href="Classes/RAMFrameItemAnimation.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMFrameItemAnimation</span><span class="p">:</span> <span class="kt">RAMItemAnimation</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<div class="task-name-container">
|
||||
<a name="/Custom%20Badge"></a>
|
||||
<a name="//apple_ref/swift/Section/Custom Badge" class="dashAnchor"></a>
|
||||
<a href="#/Custom%20Badge">
|
||||
<h3 class="section-name">Custom Badge</h3>
|
||||
</a>
|
||||
</div>
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem"></a>
|
||||
<a name="//apple_ref/swift/Class/RAMAnimatedTabBarItem" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem">RAMAnimatedTabBarItem</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>UITabBarItem with animation</p>
|
||||
|
||||
<a href="Classes/RAMAnimatedTabBarItem.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMAnimatedTabBarItem</span><span class="p">:</span> <span class="kt">UITabBarItem</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C21RAMAnimatedTabBarDemo27RAMAnimatedTabBarController"></a>
|
||||
<a name="//apple_ref/swift/Class/RAMAnimatedTabBarController" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C21RAMAnimatedTabBarDemo27RAMAnimatedTabBarController">RAMAnimatedTabBarController</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>UITabBarController with item animations</p>
|
||||
|
||||
<a href="Classes/RAMAnimatedTabBarController.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMAnimatedTabBarController</span><span class="p">:</span> <span class="kt">UITabBarController</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C21RAMAnimatedTabBarDemo20RAMRotationAnimation"></a>
|
||||
<a name="//apple_ref/swift/Class/RAMRotationAnimation" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C21RAMAnimatedTabBarDemo20RAMRotationAnimation">RAMRotationAnimation</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The RAMRotationAnimation class provides rotation animation.</p>
|
||||
|
||||
<a href="Classes/RAMRotationAnimation.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMRotationAnimation</span> <span class="p">:</span> <span class="kt">RAMItemAnimation</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C21RAMAnimatedTabBarDemo16RAMFumeAnimation"></a>
|
||||
<a name="//apple_ref/swift/Class/RAMFumeAnimation" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C21RAMAnimatedTabBarDemo16RAMFumeAnimation">RAMFumeAnimation</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The RAMFumeAnimation class provides bounce animation.</p>
|
||||
|
||||
<a href="Classes/RAMFumeAnimation.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMFumeAnimation</span> <span class="p">:</span> <span class="kt">RAMItemAnimation</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C21RAMAnimatedTabBarDemo27RAMTransitionItemAnimations"></a>
|
||||
<a name="//apple_ref/swift/Class/RAMTransitionItemAnimations" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C21RAMAnimatedTabBarDemo27RAMTransitionItemAnimations">RAMTransitionItemAnimations</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Transition animtion</p>
|
||||
|
||||
<a href="Classes/RAMTransitionItemAnimations.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMTransitionItemAnimations</span> <span class="p">:</span> <span class="kt">RAMItemAnimation</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C21RAMAnimatedTabBarDemo16RAMItemAnimation"></a>
|
||||
<a name="//apple_ref/swift/Class/RAMItemAnimation" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C21RAMAnimatedTabBarDemo16RAMItemAnimation">RAMItemAnimation</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Base class for UITabBarItems animation</p>
|
||||
|
||||
<a href="Classes/RAMItemAnimation.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMItemAnimation</span><span class="p">:</span> <span class="kt">NSObject</span><span class="p">,</span> <span class="kt">RAMItemAnimationProtocol</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C21RAMAnimatedTabBarDemo18RAMBounceAnimation"></a>
|
||||
<a name="//apple_ref/swift/Class/RAMBounceAnimation" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C21RAMAnimatedTabBarDemo18RAMBounceAnimation">RAMBounceAnimation</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The RAMBounceAnimation class provides bounce animation.</p>
|
||||
|
||||
<a href="Classes/RAMBounceAnimation.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMBounceAnimation</span> <span class="p">:</span> <span class="kt">RAMItemAnimation</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="" target="_blank" rel="external">AlexKalinkin</a>. All rights reserved. (Last updated: 2016-06-10)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
@@ -0,0 +1,436 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>RAMAnimatedTabBarController Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/RAMAnimatedTabBarController" class="dashAnchor"></a>
|
||||
<a title="RAMAnimatedTabBarController Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">RAMAnimatedTabBarDemo Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">RAMAnimatedTabBarDemo Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
RAMAnimatedTabBarController Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarController.html">RAMAnimatedTabBarController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarItem.html">RAMAnimatedTabBarItem</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMBounceAnimation.html">RAMBounceAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFrameItemAnimation.html">RAMFrameItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFumeAnimation.html">RAMFumeAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMItemAnimation.html">RAMItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMRotationAnimation.html">RAMRotationAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMTransitionItemAnimations.html">RAMTransitionItemAnimations</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>RAMAnimatedTabBarController</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMAnimatedTabBarController</span><span class="p">:</span> <span class="kt">UITabBarController</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p>UITabBarController with item animations</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<div class="task-name-container">
|
||||
<a name="/life%20circle"></a>
|
||||
<a name="//apple_ref/swift/Section/life circle" class="dashAnchor"></a>
|
||||
<a href="#/life%20circle">
|
||||
<h3 class="section-name">life circle</h3>
|
||||
</a>
|
||||
</div>
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarControllercFT7nibNameGSqSS_6bundleGSqCSo8NSBundle__S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(nibName:bundle:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarControllercFT7nibNameGSqSS_6bundleGSqCSo8NSBundle__S0_">init(nibName:bundle:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Returns a newly initialized view controller with the nib file in the specified bundle.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">override</span> <span class="nf">init</span><span class="p">(</span><span class="n">nibName</span> <span class="nv">nibNameOrNil</span><span class="p">:</span> <span class="kt">String</span><span class="p">?,</span> <span class="n">bundle</span> <span class="nv">nibBundleOrNil</span><span class="p">:</span> <span class="kt">NSBundle</span><span class="p">?)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>nibNameOrNil</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>The name of the nib file to associate with the view controller. The nib file name should not contain any leading path information. If you specify nil, the nibName property is set to nil.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>nibBundleOrNil</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>The bundle in which to search for the nib file. This method looks for the nib file in the bundle’s language-specific project directories first, followed by the Resources directory. If this parameter is nil, the method uses the heuristics described below to locate the nib file.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>A newly initialized RAMAnimatedTabBarController object.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarControllercFT15viewControllersGSaCSo16UIViewController__S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(viewControllers:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarControllercFT15viewControllersGSaCSo16UIViewController__S0_">init(viewControllers:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Returns a newly initialized view controller with the nib file in the specified bundle.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">viewControllers</span><span class="p">:</span> <span class="p">[</span><span class="kt">UIViewController</span><span class="p">])</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>viewControllers</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>Sets the root view controllers of the tab bar controller.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>A newly initialized RAMAnimatedTabBarController object.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarControllercFT5coderCSo7NSCoder_GSqS0__"></a>
|
||||
<a name="//apple_ref/swift/Method/init(coder:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarControllercFT5coderCSo7NSCoder_GSqS0__">init(coder:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Returns a newly initialized view controller with the nib file in the specified bundle.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">required</span> <span class="kd">public</span> <span class="nf">init</span><span class="p">?(</span><span class="n">coder</span> <span class="nv">aDecoder</span><span class="p">:</span> <span class="kt">NSCoder</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>coder</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>An unarchiver object.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>A newly initialized RAMAnimatedTabBarController object.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarController19changeSelectedColorFTCSo7UIColor17iconSelectedColorS1__T_"></a>
|
||||
<a name="//apple_ref/swift/Method/changeSelectedColor(_:iconSelectedColor:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarController19changeSelectedColorFTCSo7UIColor17iconSelectedColorS1__T_">changeSelectedColor(_:iconSelectedColor:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Change selected color for each UITabBarItem</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">changeSelectedColor</span><span class="p">(</span><span class="nv">textSelectedColor</span><span class="p">:</span><span class="kt">UIColor</span><span class="p">,</span> <span class="nv">iconSelectedColor</span><span class="p">:</span><span class="kt">UIColor</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textSelectedColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>set new color for text</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>iconSelectedColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>set new color for icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarController21animationTabBarHiddenFSbT_"></a>
|
||||
<a name="//apple_ref/swift/Method/animationTabBarHidden(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarController21animationTabBarHiddenFSbT_">animationTabBarHidden(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Hide UITabBarController</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">animationTabBarHidden</span><span class="p">(</span><span class="nv">isHidden</span><span class="p">:</span><span class="kt">Bool</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>isHidden</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>A Boolean indicating whether the UITabBarController is displayed</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarController14setSelectIndexFT4fromSi2toSi_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/setSelectIndex(from:to:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarController14setSelectIndexFT4fromSi2toSi_T_">setSelectIndex(from:to:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Selected UITabBarItem with animaton</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">setSelectIndex</span><span class="p">(</span><span class="n">from</span> <span class="nv">from</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">to</span><span class="p">:</span> <span class="kt">Int</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>from</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>Index for unselected animation</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>to</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>Index for selected animation</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="" target="_blank" rel="external">AlexKalinkin</a>. All rights reserved. (Last updated: 2016-06-10)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
@@ -0,0 +1,310 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>RAMAnimatedTabBarItem Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/RAMAnimatedTabBarItem" class="dashAnchor"></a>
|
||||
<a title="RAMAnimatedTabBarItem Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">RAMAnimatedTabBarDemo Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">RAMAnimatedTabBarDemo Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
RAMAnimatedTabBarItem Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarController.html">RAMAnimatedTabBarController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarItem.html">RAMAnimatedTabBarItem</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMBounceAnimation.html">RAMBounceAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFrameItemAnimation.html">RAMFrameItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFumeAnimation.html">RAMFumeAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMItemAnimation.html">RAMItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMRotationAnimation.html">RAMRotationAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMTransitionItemAnimations.html">RAMTransitionItemAnimations</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>RAMAnimatedTabBarItem</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMAnimatedTabBarItem</span><span class="p">:</span> <span class="kt">UITabBarItem</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p>UITabBarItem with animation</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem9animationGSQCS_16RAMItemAnimation_"></a>
|
||||
<a name="//apple_ref/swift/Property/animation" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem9animationGSQCS_16RAMItemAnimation_">animation</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>animation for UITabBarItem. use RAMFumeAnimation, RAMBounceAnimation, RAMRotationAnimation, RAMFrameItemAnimation, RAMTransitionAnimation
|
||||
or create custom anmation inherit RAMItemAnimation</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">@IBOutlet</span> <span class="kd">public</span> <span class="k">var</span> <span class="nv">animation</span><span class="p">:</span> <span class="kt">RAMItemAnimation</span><span class="o">!</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem8textFontCSo6UIFont"></a>
|
||||
<a name="//apple_ref/swift/Property/textFont" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem8textFontCSo6UIFont">textFont</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The font used to render the UITabBarItem text.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">textFont</span><span class="p">:</span> <span class="kt">UIFont</span> <span class="o">=</span> <span class="kt">UIFont</span><span class="o">.</span><span class="nf">systemFontOfSize</span><span class="p">(</span><span class="mi">10</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem9textColorCSo7UIColor"></a>
|
||||
<a name="//apple_ref/swift/Property/textColor" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem9textColorCSo7UIColor">textColor</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The color of the UITabBarItem text.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">@IBInspectable</span> <span class="kd">public</span> <span class="k">var</span> <span class="nv">textColor</span><span class="p">:</span> <span class="kt">UIColor</span> <span class="o">=</span> <span class="kt">UIColor</span><span class="o">.</span><span class="nf">blackColor</span><span class="p">()</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem9iconColorCSo7UIColor"></a>
|
||||
<a name="//apple_ref/swift/Property/iconColor" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem9iconColorCSo7UIColor">iconColor</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The tint color of the UITabBarItem icon.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">@IBInspectable</span> <span class="kd">public</span> <span class="k">var</span> <span class="nv">iconColor</span><span class="p">:</span> <span class="kt">UIColor</span> <span class="o">=</span> <span class="kt">UIColor</span><span class="o">.</span><span class="nf">clearColor</span><span class="p">()</span> <span class="c1">// if alpha color is 0 color ignoring</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem13playAnimationFT_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/playAnimation()" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem13playAnimationFT_T_">playAnimation()</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start selected animation</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">playAnimation</span><span class="p">()</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem17deselectAnimationFT_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/deselectAnimation()" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem17deselectAnimationFT_T_">deselectAnimation()</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start unselected animation</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">deselectAnimation</span><span class="p">()</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem13selectedStateFT_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/selectedState()" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem13selectedStateFT_T_">selectedState()</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Set selected state without animation</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">selectedState</span><span class="p">()</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem10badgeValueGSqSS_"></a>
|
||||
<a name="//apple_ref/swift/Property/badgeValue" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem10badgeValueGSqSS_">badgeValue</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The current badge value</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="k">var</span> <span class="nv">badgeValue</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="" target="_blank" rel="external">AlexKalinkin</a>. All rights reserved. (Last updated: 2016-06-10)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
@@ -0,0 +1,295 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>RAMBounceAnimation Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/RAMBounceAnimation" class="dashAnchor"></a>
|
||||
<a title="RAMBounceAnimation Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">RAMAnimatedTabBarDemo Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">RAMAnimatedTabBarDemo Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
RAMBounceAnimation Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarController.html">RAMAnimatedTabBarController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarItem.html">RAMAnimatedTabBarItem</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMBounceAnimation.html">RAMBounceAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFrameItemAnimation.html">RAMFrameItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFumeAnimation.html">RAMFumeAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMItemAnimation.html">RAMItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMRotationAnimation.html">RAMRotationAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMTransitionItemAnimations.html">RAMTransitionItemAnimations</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>RAMBounceAnimation</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMBounceAnimation</span> <span class="p">:</span> <span class="kt">RAMItemAnimation</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p>The RAMBounceAnimation class provides bounce animation.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo18RAMBounceAnimation13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/playAnimation(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo18RAMBounceAnimation13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_">playAnimation(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is selected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">playAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo18RAMBounceAnimation17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_"></a>
|
||||
<a name="//apple_ref/swift/Method/deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo18RAMBounceAnimation17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_">deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is unselected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">deselectAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">,</span> <span class="n">defaultTextColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">,</span> <span class="n">defaultIconColor</span><span class="p">:</span> <span class="kt">UIColor</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultTextColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem text color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultIconColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem icon color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo18RAMBounceAnimation13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/selectedState(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo18RAMBounceAnimation13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_">selectedState(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Method call when TabBarController did load</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">selectedState</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="" target="_blank" rel="external">AlexKalinkin</a>. All rights reserved. (Last updated: 2016-06-10)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
@@ -0,0 +1,418 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>RAMFrameItemAnimation Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/RAMFrameItemAnimation" class="dashAnchor"></a>
|
||||
<a title="RAMFrameItemAnimation Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">RAMAnimatedTabBarDemo Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">RAMAnimatedTabBarDemo Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
RAMFrameItemAnimation Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarController.html">RAMAnimatedTabBarController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarItem.html">RAMAnimatedTabBarItem</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMBounceAnimation.html">RAMBounceAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFrameItemAnimation.html">RAMFrameItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFumeAnimation.html">RAMFumeAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMItemAnimation.html">RAMItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMRotationAnimation.html">RAMRotationAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMTransitionItemAnimations.html">RAMTransitionItemAnimations</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>RAMFrameItemAnimation</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMFrameItemAnimation</span><span class="p">:</span> <span class="kt">RAMItemAnimation</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p>The RAMFrameItemAnimation class provides keyframe animation.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation19isDeselectAnimationSb"></a>
|
||||
<a name="//apple_ref/swift/Property/isDeselectAnimation" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation19isDeselectAnimationSb">isDeselectAnimation</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>A Boolean value indicated plaing revers animation when UITabBarItem unselected, if false image change immediately, defalut value true</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">@IBInspectable</span> <span class="kd">public</span> <span class="k">var</span> <span class="nv">isDeselectAnimation</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation10imagesPathGSQSS_"></a>
|
||||
<a name="//apple_ref/swift/Property/imagesPath" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation10imagesPathGSQSS_">imagesPath</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>path to array of image names from plist file</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">@IBInspectable</span> <span class="kd">public</span> <span class="k">var</span> <span class="nv">imagesPath</span><span class="p">:</span> <span class="kt">String</span><span class="o">!</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<div class="task-name-container">
|
||||
<a name="/public"></a>
|
||||
<a name="//apple_ref/swift/Section/public" class="dashAnchor"></a>
|
||||
<a href="#/public">
|
||||
<h3 class="section-name">public</h3>
|
||||
</a>
|
||||
</div>
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation18setAnimationImagesFGSaCSo7UIImage_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/setAnimationImages(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation18setAnimationImagesFGSaCSo7UIImage_T_">setAnimationImages(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Set images for keyframe animation</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">setAnimationImages</span><span class="p">(</span><span class="nv">images</span><span class="p">:</span> <span class="kt">Array</span><span class="o"><</span><span class="kt">UIImage</span><span class="o">></span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>images</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>images for keyframe animation</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<div class="task-name-container">
|
||||
<a name="/RAMItemAnimationProtocol"></a>
|
||||
<a name="//apple_ref/swift/Section/RAMItemAnimationProtocol" class="dashAnchor"></a>
|
||||
<a href="#/RAMItemAnimationProtocol">
|
||||
<h3 class="section-name">RAMItemAnimationProtocol</h3>
|
||||
</a>
|
||||
</div>
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/playAnimation(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_">playAnimation(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is selected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">playAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_"></a>
|
||||
<a name="//apple_ref/swift/Method/deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_">deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is unselected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">deselectAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">,</span> <span class="n">defaultTextColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">,</span> <span class="n">defaultIconColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultTextColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem text color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultIconColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem icon color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/selectedState(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_">selectedState(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Method call when TabBarController did load</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">selectedState</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="" target="_blank" rel="external">AlexKalinkin</a>. All rights reserved. (Last updated: 2016-06-10)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
@@ -0,0 +1,295 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>RAMFumeAnimation Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/RAMFumeAnimation" class="dashAnchor"></a>
|
||||
<a title="RAMFumeAnimation Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">RAMAnimatedTabBarDemo Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">RAMAnimatedTabBarDemo Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
RAMFumeAnimation Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarController.html">RAMAnimatedTabBarController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarItem.html">RAMAnimatedTabBarItem</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMBounceAnimation.html">RAMBounceAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFrameItemAnimation.html">RAMFrameItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFumeAnimation.html">RAMFumeAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMItemAnimation.html">RAMItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMRotationAnimation.html">RAMRotationAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMTransitionItemAnimations.html">RAMTransitionItemAnimations</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>RAMFumeAnimation</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMFumeAnimation</span> <span class="p">:</span> <span class="kt">RAMItemAnimation</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p>The RAMFumeAnimation class provides bounce animation.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo16RAMFumeAnimation13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/playAnimation(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo16RAMFumeAnimation13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_">playAnimation(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is selected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">playAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo16RAMFumeAnimation17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_"></a>
|
||||
<a name="//apple_ref/swift/Method/deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo16RAMFumeAnimation17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_">deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is unselected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">deselectAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">,</span> <span class="n">defaultTextColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">,</span> <span class="n">defaultIconColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultTextColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem text color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultIconColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem icon color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo16RAMFumeAnimation13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/selectedState(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo16RAMFumeAnimation13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_">selectedState(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Method call when TabBarController did load</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">selectedState</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="" target="_blank" rel="external">AlexKalinkin</a>. All rights reserved. (Last updated: 2016-06-10)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
@@ -0,0 +1,383 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>RAMItemAnimation Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/RAMItemAnimation" class="dashAnchor"></a>
|
||||
<a title="RAMItemAnimation Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">RAMAnimatedTabBarDemo Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">RAMAnimatedTabBarDemo Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
RAMItemAnimation Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarController.html">RAMAnimatedTabBarController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarItem.html">RAMAnimatedTabBarItem</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMBounceAnimation.html">RAMBounceAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFrameItemAnimation.html">RAMFrameItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFumeAnimation.html">RAMFumeAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMItemAnimation.html">RAMItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMRotationAnimation.html">RAMRotationAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMTransitionItemAnimations.html">RAMTransitionItemAnimations</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>RAMItemAnimation</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMItemAnimation</span><span class="p">:</span> <span class="kt">NSObject</span><span class="p">,</span> <span class="kt">RAMItemAnimationProtocol</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p>Base class for UITabBarItems animation</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<div class="task-name-container">
|
||||
<a name="/properties"></a>
|
||||
<a name="//apple_ref/swift/Section/properties" class="dashAnchor"></a>
|
||||
<a href="#/properties">
|
||||
<h3 class="section-name">properties</h3>
|
||||
</a>
|
||||
</div>
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo16RAMItemAnimation8durationV12CoreGraphics7CGFloat"></a>
|
||||
<a name="//apple_ref/swift/Property/duration" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo16RAMItemAnimation8durationV12CoreGraphics7CGFloat">duration</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The duration of the animation</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">@IBInspectable</span> <span class="kd">public</span> <span class="k">var</span> <span class="nv">duration</span> <span class="p">:</span> <span class="kt">CGFloat</span> <span class="o">=</span> <span class="mf">0.5</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo16RAMItemAnimation17textSelectedColorCSo7UIColor"></a>
|
||||
<a name="//apple_ref/swift/Property/textSelectedColor" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo16RAMItemAnimation17textSelectedColorCSo7UIColor">textSelectedColor</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The text color in selected state.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">@IBInspectable</span> <span class="kd">public</span> <span class="k">var</span> <span class="nv">textSelectedColor</span><span class="p">:</span> <span class="kt">UIColor</span> <span class="o">=</span> <span class="kt">UIColor</span><span class="o">.</span><span class="nf">init</span><span class="p">(</span><span class="nv">red</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span> <span class="nv">green</span><span class="p">:</span> <span class="mf">0.478431</span><span class="p">,</span> <span class="nv">blue</span><span class="p">:</span> <span class="mi">1</span><span class="p">,</span> <span class="nv">alpha</span><span class="p">:</span> <span class="mi">1</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo16RAMItemAnimation17iconSelectedColorGSQCSo7UIColor_"></a>
|
||||
<a name="//apple_ref/swift/Property/iconSelectedColor" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo16RAMItemAnimation17iconSelectedColorGSQCSo7UIColor_">iconSelectedColor</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The icon color in selected state.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">@IBInspectable</span> <span class="kd">public</span> <span class="k">var</span> <span class="nv">iconSelectedColor</span><span class="p">:</span> <span class="kt">UIColor</span><span class="o">!</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo16RAMItemAnimation13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/playAnimation(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo16RAMItemAnimation13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_">playAnimation(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is selected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">playAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo16RAMItemAnimation17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_"></a>
|
||||
<a name="//apple_ref/swift/Method/deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo16RAMItemAnimation17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_">deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is unselected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">deselectAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">,</span> <span class="n">defaultTextColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">,</span> <span class="n">defaultIconColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultTextColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem text color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultIconColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem icon color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo16RAMItemAnimation13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/selectedState(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo16RAMItemAnimation13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_">selectedState(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Method call when TabBarController did load</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">selectedState</span><span class="p">(</span><span class="nv">icon</span><span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="" target="_blank" rel="external">AlexKalinkin</a>. All rights reserved. (Last updated: 2016-06-10)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
@@ -0,0 +1,354 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>RAMRotationAnimation Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/RAMRotationAnimation" class="dashAnchor"></a>
|
||||
<a title="RAMRotationAnimation Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">RAMAnimatedTabBarDemo Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">RAMAnimatedTabBarDemo Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
RAMRotationAnimation Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarController.html">RAMAnimatedTabBarController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarItem.html">RAMAnimatedTabBarItem</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMBounceAnimation.html">RAMBounceAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFrameItemAnimation.html">RAMFrameItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFumeAnimation.html">RAMFumeAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMItemAnimation.html">RAMItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMRotationAnimation.html">RAMRotationAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMTransitionItemAnimations.html">RAMTransitionItemAnimations</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>RAMRotationAnimation</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMRotationAnimation</span> <span class="p">:</span> <span class="kt">RAMItemAnimation</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p>The RAMRotationAnimation class provides rotation animation.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:OC21RAMAnimatedTabBarDemo20RAMRotationAnimation20RAMRotationDirection"></a>
|
||||
<a name="//apple_ref/swift/Enum/RAMRotationDirection" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:OC21RAMAnimatedTabBarDemo20RAMRotationAnimation20RAMRotationDirection">RAMRotationDirection</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Animation direction</p>
|
||||
|
||||
<ul>
|
||||
<li>Left: left direction</li>
|
||||
<li>Right: right direction</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">RAMRotationDirection</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo20RAMRotationAnimation9directionGSQOS0_20RAMRotationDirection_"></a>
|
||||
<a name="//apple_ref/swift/Property/direction" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo20RAMRotationAnimation9directionGSQOS0_20RAMRotationDirection_">direction</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Animation direction (left, right)</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">direction</span> <span class="p">:</span> <span class="kt">RAMRotationDirection</span><span class="o">!</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo20RAMRotationAnimation13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/playAnimation(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo20RAMRotationAnimation13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_">playAnimation(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is selected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">playAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo20RAMRotationAnimation17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_"></a>
|
||||
<a name="//apple_ref/swift/Method/deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo20RAMRotationAnimation17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_">deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is unselected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">deselectAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">,</span> <span class="n">defaultTextColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">,</span> <span class="n">defaultIconColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultTextColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem text color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultIconColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem icon color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo20RAMRotationAnimation13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/selectedState(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo20RAMRotationAnimation13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_">selectedState(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Method call when TabBarController did load</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">selectedState</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="" target="_blank" rel="external">AlexKalinkin</a>. All rights reserved. (Last updated: 2016-06-10)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
@@ -0,0 +1,322 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>RAMTransitionItemAnimations Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/RAMTransitionItemAnimations" class="dashAnchor"></a>
|
||||
<a title="RAMTransitionItemAnimations Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">RAMAnimatedTabBarDemo Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">RAMAnimatedTabBarDemo Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
RAMTransitionItemAnimations Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarController.html">RAMAnimatedTabBarController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarItem.html">RAMAnimatedTabBarItem</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMBounceAnimation.html">RAMBounceAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFrameItemAnimation.html">RAMFrameItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFumeAnimation.html">RAMFumeAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMItemAnimation.html">RAMItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMRotationAnimation.html">RAMRotationAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMTransitionItemAnimations.html">RAMTransitionItemAnimations</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>RAMTransitionItemAnimations</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMTransitionItemAnimations</span> <span class="p">:</span> <span class="kt">RAMItemAnimation</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p>Transition animtion</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo27RAMTransitionItemAnimations17transitionOptionsGSQVSC22UIViewAnimationOptions_"></a>
|
||||
<a name="//apple_ref/swift/Property/transitionOptions" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo27RAMTransitionItemAnimations17transitionOptionsGSQVSC22UIViewAnimationOptions_">transitionOptions</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Options for animating. Default TransitionNone</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">transitionOptions</span> <span class="p">:</span> <span class="kt">UIViewAnimationOptions</span><span class="o">!</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo27RAMTransitionItemAnimations13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/playAnimation(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo27RAMTransitionItemAnimations13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_">playAnimation(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is selected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">playAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo27RAMTransitionItemAnimations17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_"></a>
|
||||
<a name="//apple_ref/swift/Method/deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo27RAMTransitionItemAnimations17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_">deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is unselected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">deselectAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">,</span> <span class="n">defaultTextColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">,</span> <span class="n">defaultIconColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultTextColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem text color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultIconColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem icon color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo27RAMTransitionItemAnimations13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/selectedState(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo27RAMTransitionItemAnimations13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_">selectedState(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Method call when TabBarController did load</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">selectedState</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="" target="_blank" rel="external">AlexKalinkin</a>. All rights reserved. (Last updated: 2016-06-10)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
@@ -0,0 +1,200 @@
|
||||
/* Credit to https://gist.github.com/wataru420/2048287 */
|
||||
.highlight {
|
||||
/* Comment */
|
||||
/* Error */
|
||||
/* Keyword */
|
||||
/* Operator */
|
||||
/* Comment.Multiline */
|
||||
/* Comment.Preproc */
|
||||
/* Comment.Single */
|
||||
/* Comment.Special */
|
||||
/* Generic.Deleted */
|
||||
/* Generic.Deleted.Specific */
|
||||
/* Generic.Emph */
|
||||
/* Generic.Error */
|
||||
/* Generic.Heading */
|
||||
/* Generic.Inserted */
|
||||
/* Generic.Inserted.Specific */
|
||||
/* Generic.Output */
|
||||
/* Generic.Prompt */
|
||||
/* Generic.Strong */
|
||||
/* Generic.Subheading */
|
||||
/* Generic.Traceback */
|
||||
/* Keyword.Constant */
|
||||
/* Keyword.Declaration */
|
||||
/* Keyword.Pseudo */
|
||||
/* Keyword.Reserved */
|
||||
/* Keyword.Type */
|
||||
/* Literal.Number */
|
||||
/* Literal.String */
|
||||
/* Name.Attribute */
|
||||
/* Name.Builtin */
|
||||
/* Name.Class */
|
||||
/* Name.Constant */
|
||||
/* Name.Entity */
|
||||
/* Name.Exception */
|
||||
/* Name.Function */
|
||||
/* Name.Namespace */
|
||||
/* Name.Tag */
|
||||
/* Name.Variable */
|
||||
/* Operator.Word */
|
||||
/* Text.Whitespace */
|
||||
/* Literal.Number.Float */
|
||||
/* Literal.Number.Hex */
|
||||
/* Literal.Number.Integer */
|
||||
/* Literal.Number.Oct */
|
||||
/* Literal.String.Backtick */
|
||||
/* Literal.String.Char */
|
||||
/* Literal.String.Doc */
|
||||
/* Literal.String.Double */
|
||||
/* Literal.String.Escape */
|
||||
/* Literal.String.Heredoc */
|
||||
/* Literal.String.Interpol */
|
||||
/* Literal.String.Other */
|
||||
/* Literal.String.Regex */
|
||||
/* Literal.String.Single */
|
||||
/* Literal.String.Symbol */
|
||||
/* Name.Builtin.Pseudo */
|
||||
/* Name.Variable.Class */
|
||||
/* Name.Variable.Global */
|
||||
/* Name.Variable.Instance */
|
||||
/* Literal.Number.Integer.Long */ }
|
||||
.highlight .c {
|
||||
color: #999988;
|
||||
font-style: italic; }
|
||||
.highlight .err {
|
||||
color: #a61717;
|
||||
background-color: #e3d2d2; }
|
||||
.highlight .k {
|
||||
color: #000000;
|
||||
font-weight: bold; }
|
||||
.highlight .o {
|
||||
color: #000000;
|
||||
font-weight: bold; }
|
||||
.highlight .cm {
|
||||
color: #999988;
|
||||
font-style: italic; }
|
||||
.highlight .cp {
|
||||
color: #999999;
|
||||
font-weight: bold; }
|
||||
.highlight .c1 {
|
||||
color: #999988;
|
||||
font-style: italic; }
|
||||
.highlight .cs {
|
||||
color: #999999;
|
||||
font-weight: bold;
|
||||
font-style: italic; }
|
||||
.highlight .gd {
|
||||
color: #000000;
|
||||
background-color: #ffdddd; }
|
||||
.highlight .gd .x {
|
||||
color: #000000;
|
||||
background-color: #ffaaaa; }
|
||||
.highlight .ge {
|
||||
color: #000000;
|
||||
font-style: italic; }
|
||||
.highlight .gr {
|
||||
color: #aa0000; }
|
||||
.highlight .gh {
|
||||
color: #999999; }
|
||||
.highlight .gi {
|
||||
color: #000000;
|
||||
background-color: #ddffdd; }
|
||||
.highlight .gi .x {
|
||||
color: #000000;
|
||||
background-color: #aaffaa; }
|
||||
.highlight .go {
|
||||
color: #888888; }
|
||||
.highlight .gp {
|
||||
color: #555555; }
|
||||
.highlight .gs {
|
||||
font-weight: bold; }
|
||||
.highlight .gu {
|
||||
color: #aaaaaa; }
|
||||
.highlight .gt {
|
||||
color: #aa0000; }
|
||||
.highlight .kc {
|
||||
color: #000000;
|
||||
font-weight: bold; }
|
||||
.highlight .kd {
|
||||
color: #000000;
|
||||
font-weight: bold; }
|
||||
.highlight .kp {
|
||||
color: #000000;
|
||||
font-weight: bold; }
|
||||
.highlight .kr {
|
||||
color: #000000;
|
||||
font-weight: bold; }
|
||||
.highlight .kt {
|
||||
color: #445588; }
|
||||
.highlight .m {
|
||||
color: #009999; }
|
||||
.highlight .s {
|
||||
color: #d14; }
|
||||
.highlight .na {
|
||||
color: #008080; }
|
||||
.highlight .nb {
|
||||
color: #0086B3; }
|
||||
.highlight .nc {
|
||||
color: #445588;
|
||||
font-weight: bold; }
|
||||
.highlight .no {
|
||||
color: #008080; }
|
||||
.highlight .ni {
|
||||
color: #800080; }
|
||||
.highlight .ne {
|
||||
color: #990000;
|
||||
font-weight: bold; }
|
||||
.highlight .nf {
|
||||
color: #990000; }
|
||||
.highlight .nn {
|
||||
color: #555555; }
|
||||
.highlight .nt {
|
||||
color: #000080; }
|
||||
.highlight .nv {
|
||||
color: #008080; }
|
||||
.highlight .ow {
|
||||
color: #000000;
|
||||
font-weight: bold; }
|
||||
.highlight .w {
|
||||
color: #bbbbbb; }
|
||||
.highlight .mf {
|
||||
color: #009999; }
|
||||
.highlight .mh {
|
||||
color: #009999; }
|
||||
.highlight .mi {
|
||||
color: #009999; }
|
||||
.highlight .mo {
|
||||
color: #009999; }
|
||||
.highlight .sb {
|
||||
color: #d14; }
|
||||
.highlight .sc {
|
||||
color: #d14; }
|
||||
.highlight .sd {
|
||||
color: #d14; }
|
||||
.highlight .s2 {
|
||||
color: #d14; }
|
||||
.highlight .se {
|
||||
color: #d14; }
|
||||
.highlight .sh {
|
||||
color: #d14; }
|
||||
.highlight .si {
|
||||
color: #d14; }
|
||||
.highlight .sx {
|
||||
color: #d14; }
|
||||
.highlight .sr {
|
||||
color: #009926; }
|
||||
.highlight .s1 {
|
||||
color: #d14; }
|
||||
.highlight .ss {
|
||||
color: #990073; }
|
||||
.highlight .bp {
|
||||
color: #999999; }
|
||||
.highlight .vc {
|
||||
color: #008080; }
|
||||
.highlight .vg {
|
||||
color: #008080; }
|
||||
.highlight .vi {
|
||||
color: #008080; }
|
||||
.highlight .il {
|
||||
color: #009999; }
|
||||
@@ -0,0 +1,331 @@
|
||||
html, body, div, span, h1, h3, h4, p, a, code, em, img, ul, li, table, tbody, tr, td {
|
||||
background: transparent;
|
||||
border: 0;
|
||||
margin: 0;
|
||||
outline: 0;
|
||||
padding: 0;
|
||||
vertical-align: baseline; }
|
||||
|
||||
body {
|
||||
background-color: #f2f2f2;
|
||||
font-family: Helvetica, freesans, Arial, sans-serif;
|
||||
font-size: 14px;
|
||||
-webkit-font-smoothing: subpixel-antialiased;
|
||||
word-wrap: break-word; }
|
||||
|
||||
h1, h2, h3 {
|
||||
margin-top: 0.8em;
|
||||
margin-bottom: 0.3em;
|
||||
font-weight: 100;
|
||||
color: black; }
|
||||
|
||||
h1 {
|
||||
font-size: 2.5em; }
|
||||
|
||||
h2 {
|
||||
font-size: 2em;
|
||||
border-bottom: 1px solid #e2e2e2; }
|
||||
|
||||
h4 {
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
margin-top: 21px; }
|
||||
|
||||
h5 {
|
||||
font-size: 1.1em; }
|
||||
|
||||
h6 {
|
||||
font-size: 1.1em;
|
||||
color: #777; }
|
||||
|
||||
.section-name {
|
||||
color: gray;
|
||||
display: block;
|
||||
font-family: Helvetica;
|
||||
font-size: 22px;
|
||||
font-weight: 100;
|
||||
margin-bottom: 15px; }
|
||||
|
||||
pre, code {
|
||||
font: 0.95em Menlo, monospace;
|
||||
color: #777;
|
||||
word-wrap: normal; }
|
||||
|
||||
p code, li code {
|
||||
background-color: #eee;
|
||||
padding: 2px 4px;
|
||||
border-radius: 4px; }
|
||||
|
||||
a {
|
||||
color: #0088cc;
|
||||
text-decoration: none; }
|
||||
|
||||
ul {
|
||||
padding-left: 15px; }
|
||||
|
||||
li {
|
||||
line-height: 1.8em; }
|
||||
|
||||
img {
|
||||
max-width: 100%; }
|
||||
|
||||
blockquote {
|
||||
margin-left: 0;
|
||||
padding: 0 10px;
|
||||
border-left: 4px solid #ccc; }
|
||||
|
||||
.content-wrapper {
|
||||
margin: 0 auto;
|
||||
width: 980px; }
|
||||
|
||||
header {
|
||||
font-size: 0.85em;
|
||||
line-height: 26px;
|
||||
background-color: #414141;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
z-index: 1; }
|
||||
header img {
|
||||
padding-right: 6px;
|
||||
vertical-align: -4px;
|
||||
height: 16px; }
|
||||
header a {
|
||||
color: #fff; }
|
||||
header p {
|
||||
float: left;
|
||||
color: #999; }
|
||||
header .header-right {
|
||||
float: right;
|
||||
margin-left: 16px; }
|
||||
|
||||
#breadcrumbs {
|
||||
background-color: #f2f2f2;
|
||||
height: 27px;
|
||||
padding-top: 17px;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
margin-top: 26px; }
|
||||
#breadcrumbs #carat {
|
||||
height: 10px;
|
||||
margin: 0 5px; }
|
||||
|
||||
.sidebar {
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #e2e2e2;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
position: fixed;
|
||||
top: 70px;
|
||||
bottom: 0;
|
||||
width: 230px;
|
||||
word-wrap: normal; }
|
||||
|
||||
.nav-groups {
|
||||
list-style-type: none;
|
||||
background: #fff;
|
||||
padding-left: 0; }
|
||||
|
||||
.nav-group-name {
|
||||
border-bottom: 1px solid #e2e2e2;
|
||||
font-size: 1.1em;
|
||||
font-weight: 100;
|
||||
padding: 15px 0 15px 20px; }
|
||||
.nav-group-name > a {
|
||||
color: #333; }
|
||||
|
||||
.nav-group-tasks {
|
||||
margin-top: 5px; }
|
||||
|
||||
.nav-group-task {
|
||||
font-size: 0.9em;
|
||||
list-style-type: none; }
|
||||
.nav-group-task a {
|
||||
color: #888; }
|
||||
|
||||
.main-content {
|
||||
background-color: #fff;
|
||||
border: 1px solid #e2e2e2;
|
||||
margin-left: 246px;
|
||||
position: absolute;
|
||||
overflow: hidden;
|
||||
padding-bottom: 60px;
|
||||
top: 70px;
|
||||
width: 734px; }
|
||||
.main-content p, .main-content a, .main-content code, .main-content em, .main-content ul, .main-content table, .main-content blockquote {
|
||||
margin-bottom: 1em; }
|
||||
.main-content p {
|
||||
line-height: 1.8em; }
|
||||
.main-content section .section:first-child {
|
||||
margin-top: 0;
|
||||
padding-top: 0; }
|
||||
.main-content section .task-group-section .task-group:first-of-type {
|
||||
padding-top: 10px; }
|
||||
.main-content section .task-group-section .task-group:first-of-type .section-name {
|
||||
padding-top: 15px; }
|
||||
|
||||
.section {
|
||||
padding: 0 25px; }
|
||||
|
||||
.highlight {
|
||||
background-color: #eee;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid #e2e2e2;
|
||||
border-radius: 4px;
|
||||
overflow-x: auto; }
|
||||
|
||||
.declaration .highlight {
|
||||
overflow-x: initial;
|
||||
padding: 0 40px 40px 0;
|
||||
margin-bottom: -25px;
|
||||
background-color: transparent;
|
||||
border: none; }
|
||||
|
||||
.section-name {
|
||||
margin: 0;
|
||||
margin-left: 18px; }
|
||||
|
||||
.task-group-section {
|
||||
padding-left: 6px;
|
||||
border-top: 1px solid #e2e2e2; }
|
||||
|
||||
.task-group {
|
||||
padding-top: 0px; }
|
||||
|
||||
.task-name-container a[name]:before {
|
||||
content: "";
|
||||
display: block;
|
||||
padding-top: 70px;
|
||||
margin: -70px 0 0; }
|
||||
|
||||
.item {
|
||||
padding-top: 8px;
|
||||
width: 100%;
|
||||
list-style-type: none; }
|
||||
.item a[name]:before {
|
||||
content: "";
|
||||
display: block;
|
||||
padding-top: 70px;
|
||||
margin: -70px 0 0; }
|
||||
.item code {
|
||||
background-color: transparent;
|
||||
padding: 0; }
|
||||
.item .token {
|
||||
padding-left: 3px;
|
||||
margin-left: 15px;
|
||||
font-size: 11.9px; }
|
||||
.item .declaration-note {
|
||||
font-size: .85em;
|
||||
color: gray;
|
||||
font-style: italic; }
|
||||
|
||||
.pointer-container {
|
||||
border-bottom: 1px solid #e2e2e2;
|
||||
left: -23px;
|
||||
padding-bottom: 13px;
|
||||
position: relative;
|
||||
width: 110%; }
|
||||
|
||||
.pointer {
|
||||
background: #f9f9f9;
|
||||
border-left: 1px solid #e2e2e2;
|
||||
border-top: 1px solid #e2e2e2;
|
||||
height: 12px;
|
||||
left: 21px;
|
||||
top: -7px;
|
||||
-webkit-transform: rotate(45deg);
|
||||
-moz-transform: rotate(45deg);
|
||||
-o-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
position: absolute;
|
||||
width: 12px; }
|
||||
|
||||
.height-container {
|
||||
display: none;
|
||||
left: -25px;
|
||||
padding: 0 25px;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
overflow: hidden; }
|
||||
.height-container .section {
|
||||
background: #f9f9f9;
|
||||
border-bottom: 1px solid #e2e2e2;
|
||||
left: -25px;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
padding-top: 10px;
|
||||
padding-bottom: 5px; }
|
||||
|
||||
.aside, .language {
|
||||
padding: 6px 12px;
|
||||
margin: 12px 0;
|
||||
border-left: 5px solid #dddddd;
|
||||
overflow-y: hidden; }
|
||||
.aside .aside-title, .language .aside-title {
|
||||
font-size: 9px;
|
||||
letter-spacing: 2px;
|
||||
text-transform: uppercase;
|
||||
padding-bottom: 0;
|
||||
margin: 0;
|
||||
color: #aaa;
|
||||
-webkit-user-select: none; }
|
||||
.aside p:last-child, .language p:last-child {
|
||||
margin-bottom: 0; }
|
||||
|
||||
.language {
|
||||
border-left: 5px solid #cde9f4; }
|
||||
.language .aside-title {
|
||||
color: #4b8afb; }
|
||||
|
||||
.aside-warning {
|
||||
border-left: 5px solid #ff6666; }
|
||||
.aside-warning .aside-title {
|
||||
color: #ff0000; }
|
||||
|
||||
.graybox {
|
||||
border-collapse: collapse;
|
||||
width: 100%; }
|
||||
.graybox p {
|
||||
margin: 0;
|
||||
word-break: break-word;
|
||||
min-width: 50px; }
|
||||
.graybox td {
|
||||
border: 1px solid #e2e2e2;
|
||||
padding: 5px 25px 5px 10px;
|
||||
vertical-align: middle; }
|
||||
.graybox tr td:first-of-type {
|
||||
text-align: right;
|
||||
padding: 7px;
|
||||
vertical-align: top;
|
||||
word-break: normal;
|
||||
width: 40px; }
|
||||
|
||||
.slightly-smaller {
|
||||
font-size: 0.9em; }
|
||||
|
||||
#footer {
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
margin-left: 25px; }
|
||||
#footer p {
|
||||
margin: 0;
|
||||
color: #aaa;
|
||||
font-size: 0.8em; }
|
||||
|
||||
html.dash header, html.dash #breadcrumbs, html.dash .sidebar {
|
||||
display: none; }
|
||||
html.dash .main-content {
|
||||
width: 980px;
|
||||
margin-left: 0;
|
||||
border: none;
|
||||
width: 100%;
|
||||
top: 0;
|
||||
padding-bottom: 0; }
|
||||
html.dash .height-container {
|
||||
display: block; }
|
||||
html.dash .item .token {
|
||||
margin-left: 0; }
|
||||
html.dash .content-wrapper {
|
||||
width: auto; }
|
||||
html.dash #footer {
|
||||
position: static; }
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.jazzy.ramanimatedtabbardemo</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>RAMAnimatedTabBarDemo</string>
|
||||
<key>DocSetPlatformFamily</key>
|
||||
<string>jazzy</string>
|
||||
<key>isDashDocset</key>
|
||||
<true/>
|
||||
<key>dashIndexFilePath</key>
|
||||
<string>index.html</string>
|
||||
<key>isJavaScriptEnabled</key>
|
||||
<true/>
|
||||
<key>DashDocSetFamily</key>
|
||||
<string>dashtoc</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,337 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Classes Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="js/jquery.min.js" defer></script>
|
||||
<script src="js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a title="Classes Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="index.html">RAMAnimatedTabBarDemo Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="index.html">RAMAnimatedTabBarDemo Reference</a>
|
||||
<img id="carat" src="img/carat.png" />
|
||||
Classes Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMAnimatedTabBarController.html">RAMAnimatedTabBarController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMAnimatedTabBarItem.html">RAMAnimatedTabBarItem</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMBounceAnimation.html">RAMBounceAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMFrameItemAnimation.html">RAMFrameItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMFumeAnimation.html">RAMFumeAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMItemAnimation.html">RAMItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMRotationAnimation.html">RAMRotationAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMTransitionItemAnimations.html">RAMTransitionItemAnimations</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>Classes</h1>
|
||||
<p>The following classes are available globally.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C21RAMAnimatedTabBarDemo21RAMFrameItemAnimation"></a>
|
||||
<a name="//apple_ref/swift/Class/RAMFrameItemAnimation" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C21RAMAnimatedTabBarDemo21RAMFrameItemAnimation">RAMFrameItemAnimation</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The RAMFrameItemAnimation class provides keyframe animation.</p>
|
||||
|
||||
<a href="Classes/RAMFrameItemAnimation.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMFrameItemAnimation</span><span class="p">:</span> <span class="kt">RAMItemAnimation</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<div class="task-name-container">
|
||||
<a name="/Custom%20Badge"></a>
|
||||
<a name="//apple_ref/swift/Section/Custom Badge" class="dashAnchor"></a>
|
||||
<a href="#/Custom%20Badge">
|
||||
<h3 class="section-name">Custom Badge</h3>
|
||||
</a>
|
||||
</div>
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem"></a>
|
||||
<a name="//apple_ref/swift/Class/RAMAnimatedTabBarItem" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem">RAMAnimatedTabBarItem</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>UITabBarItem with animation</p>
|
||||
|
||||
<a href="Classes/RAMAnimatedTabBarItem.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMAnimatedTabBarItem</span><span class="p">:</span> <span class="kt">UITabBarItem</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C21RAMAnimatedTabBarDemo27RAMAnimatedTabBarController"></a>
|
||||
<a name="//apple_ref/swift/Class/RAMAnimatedTabBarController" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C21RAMAnimatedTabBarDemo27RAMAnimatedTabBarController">RAMAnimatedTabBarController</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>UITabBarController with item animations</p>
|
||||
|
||||
<a href="Classes/RAMAnimatedTabBarController.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMAnimatedTabBarController</span><span class="p">:</span> <span class="kt">UITabBarController</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C21RAMAnimatedTabBarDemo20RAMRotationAnimation"></a>
|
||||
<a name="//apple_ref/swift/Class/RAMRotationAnimation" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C21RAMAnimatedTabBarDemo20RAMRotationAnimation">RAMRotationAnimation</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The RAMRotationAnimation class provides rotation animation.</p>
|
||||
|
||||
<a href="Classes/RAMRotationAnimation.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMRotationAnimation</span> <span class="p">:</span> <span class="kt">RAMItemAnimation</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C21RAMAnimatedTabBarDemo16RAMFumeAnimation"></a>
|
||||
<a name="//apple_ref/swift/Class/RAMFumeAnimation" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C21RAMAnimatedTabBarDemo16RAMFumeAnimation">RAMFumeAnimation</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The RAMFumeAnimation class provides bounce animation.</p>
|
||||
|
||||
<a href="Classes/RAMFumeAnimation.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMFumeAnimation</span> <span class="p">:</span> <span class="kt">RAMItemAnimation</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C21RAMAnimatedTabBarDemo27RAMTransitionItemAnimations"></a>
|
||||
<a name="//apple_ref/swift/Class/RAMTransitionItemAnimations" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C21RAMAnimatedTabBarDemo27RAMTransitionItemAnimations">RAMTransitionItemAnimations</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Transition animtion</p>
|
||||
|
||||
<a href="Classes/RAMTransitionItemAnimations.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMTransitionItemAnimations</span> <span class="p">:</span> <span class="kt">RAMItemAnimation</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C21RAMAnimatedTabBarDemo16RAMItemAnimation"></a>
|
||||
<a name="//apple_ref/swift/Class/RAMItemAnimation" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C21RAMAnimatedTabBarDemo16RAMItemAnimation">RAMItemAnimation</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Base class for UITabBarItems animation</p>
|
||||
|
||||
<a href="Classes/RAMItemAnimation.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMItemAnimation</span><span class="p">:</span> <span class="kt">NSObject</span><span class="p">,</span> <span class="kt">RAMItemAnimationProtocol</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C21RAMAnimatedTabBarDemo18RAMBounceAnimation"></a>
|
||||
<a name="//apple_ref/swift/Class/RAMBounceAnimation" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C21RAMAnimatedTabBarDemo18RAMBounceAnimation">RAMBounceAnimation</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The RAMBounceAnimation class provides bounce animation.</p>
|
||||
|
||||
<a href="Classes/RAMBounceAnimation.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMBounceAnimation</span> <span class="p">:</span> <span class="kt">RAMItemAnimation</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="" target="_blank" rel="external">AlexKalinkin</a>. All rights reserved. (Last updated: 2016-06-10)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
@@ -0,0 +1,436 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>RAMAnimatedTabBarController Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/RAMAnimatedTabBarController" class="dashAnchor"></a>
|
||||
<a title="RAMAnimatedTabBarController Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">RAMAnimatedTabBarDemo Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">RAMAnimatedTabBarDemo Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
RAMAnimatedTabBarController Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarController.html">RAMAnimatedTabBarController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarItem.html">RAMAnimatedTabBarItem</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMBounceAnimation.html">RAMBounceAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFrameItemAnimation.html">RAMFrameItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFumeAnimation.html">RAMFumeAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMItemAnimation.html">RAMItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMRotationAnimation.html">RAMRotationAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMTransitionItemAnimations.html">RAMTransitionItemAnimations</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>RAMAnimatedTabBarController</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMAnimatedTabBarController</span><span class="p">:</span> <span class="kt">UITabBarController</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p>UITabBarController with item animations</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<div class="task-name-container">
|
||||
<a name="/life%20circle"></a>
|
||||
<a name="//apple_ref/swift/Section/life circle" class="dashAnchor"></a>
|
||||
<a href="#/life%20circle">
|
||||
<h3 class="section-name">life circle</h3>
|
||||
</a>
|
||||
</div>
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarControllercFT7nibNameGSqSS_6bundleGSqCSo8NSBundle__S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(nibName:bundle:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarControllercFT7nibNameGSqSS_6bundleGSqCSo8NSBundle__S0_">init(nibName:bundle:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Returns a newly initialized view controller with the nib file in the specified bundle.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">override</span> <span class="nf">init</span><span class="p">(</span><span class="n">nibName</span> <span class="nv">nibNameOrNil</span><span class="p">:</span> <span class="kt">String</span><span class="p">?,</span> <span class="n">bundle</span> <span class="nv">nibBundleOrNil</span><span class="p">:</span> <span class="kt">NSBundle</span><span class="p">?)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>nibNameOrNil</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>The name of the nib file to associate with the view controller. The nib file name should not contain any leading path information. If you specify nil, the nibName property is set to nil.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>nibBundleOrNil</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>The bundle in which to search for the nib file. This method looks for the nib file in the bundle’s language-specific project directories first, followed by the Resources directory. If this parameter is nil, the method uses the heuristics described below to locate the nib file.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>A newly initialized RAMAnimatedTabBarController object.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarControllercFT15viewControllersGSaCSo16UIViewController__S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(viewControllers:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarControllercFT15viewControllersGSaCSo16UIViewController__S0_">init(viewControllers:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Returns a newly initialized view controller with the nib file in the specified bundle.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">viewControllers</span><span class="p">:</span> <span class="p">[</span><span class="kt">UIViewController</span><span class="p">])</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>viewControllers</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>Sets the root view controllers of the tab bar controller.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>A newly initialized RAMAnimatedTabBarController object.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarControllercFT5coderCSo7NSCoder_GSqS0__"></a>
|
||||
<a name="//apple_ref/swift/Method/init(coder:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarControllercFT5coderCSo7NSCoder_GSqS0__">init(coder:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Returns a newly initialized view controller with the nib file in the specified bundle.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">required</span> <span class="kd">public</span> <span class="nf">init</span><span class="p">?(</span><span class="n">coder</span> <span class="nv">aDecoder</span><span class="p">:</span> <span class="kt">NSCoder</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>coder</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>An unarchiver object.</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Return Value</h4>
|
||||
<p>A newly initialized RAMAnimatedTabBarController object.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarController19changeSelectedColorFTCSo7UIColor17iconSelectedColorS1__T_"></a>
|
||||
<a name="//apple_ref/swift/Method/changeSelectedColor(_:iconSelectedColor:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarController19changeSelectedColorFTCSo7UIColor17iconSelectedColorS1__T_">changeSelectedColor(_:iconSelectedColor:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Change selected color for each UITabBarItem</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">changeSelectedColor</span><span class="p">(</span><span class="nv">textSelectedColor</span><span class="p">:</span><span class="kt">UIColor</span><span class="p">,</span> <span class="nv">iconSelectedColor</span><span class="p">:</span><span class="kt">UIColor</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textSelectedColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>set new color for text</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>iconSelectedColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>set new color for icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarController21animationTabBarHiddenFSbT_"></a>
|
||||
<a name="//apple_ref/swift/Method/animationTabBarHidden(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarController21animationTabBarHiddenFSbT_">animationTabBarHidden(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Hide UITabBarController</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">animationTabBarHidden</span><span class="p">(</span><span class="nv">isHidden</span><span class="p">:</span><span class="kt">Bool</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>isHidden</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>A Boolean indicating whether the UITabBarController is displayed</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarController14setSelectIndexFT4fromSi2toSi_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/setSelectIndex(from:to:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo27RAMAnimatedTabBarController14setSelectIndexFT4fromSi2toSi_T_">setSelectIndex(from:to:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Selected UITabBarItem with animaton</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">setSelectIndex</span><span class="p">(</span><span class="n">from</span> <span class="nv">from</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">to</span><span class="p">:</span> <span class="kt">Int</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>from</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>Index for unselected animation</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>to</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>Index for selected animation</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="" target="_blank" rel="external">AlexKalinkin</a>. All rights reserved. (Last updated: 2016-06-10)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
@@ -0,0 +1,310 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>RAMAnimatedTabBarItem Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/RAMAnimatedTabBarItem" class="dashAnchor"></a>
|
||||
<a title="RAMAnimatedTabBarItem Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">RAMAnimatedTabBarDemo Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">RAMAnimatedTabBarDemo Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
RAMAnimatedTabBarItem Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarController.html">RAMAnimatedTabBarController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarItem.html">RAMAnimatedTabBarItem</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMBounceAnimation.html">RAMBounceAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFrameItemAnimation.html">RAMFrameItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFumeAnimation.html">RAMFumeAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMItemAnimation.html">RAMItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMRotationAnimation.html">RAMRotationAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMTransitionItemAnimations.html">RAMTransitionItemAnimations</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>RAMAnimatedTabBarItem</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMAnimatedTabBarItem</span><span class="p">:</span> <span class="kt">UITabBarItem</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p>UITabBarItem with animation</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem9animationGSQCS_16RAMItemAnimation_"></a>
|
||||
<a name="//apple_ref/swift/Property/animation" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem9animationGSQCS_16RAMItemAnimation_">animation</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>animation for UITabBarItem. use RAMFumeAnimation, RAMBounceAnimation, RAMRotationAnimation, RAMFrameItemAnimation, RAMTransitionAnimation
|
||||
or create custom anmation inherit RAMItemAnimation</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">@IBOutlet</span> <span class="kd">public</span> <span class="k">var</span> <span class="nv">animation</span><span class="p">:</span> <span class="kt">RAMItemAnimation</span><span class="o">!</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem8textFontCSo6UIFont"></a>
|
||||
<a name="//apple_ref/swift/Property/textFont" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem8textFontCSo6UIFont">textFont</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The font used to render the UITabBarItem text.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">textFont</span><span class="p">:</span> <span class="kt">UIFont</span> <span class="o">=</span> <span class="kt">UIFont</span><span class="o">.</span><span class="nf">systemFontOfSize</span><span class="p">(</span><span class="mi">10</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem9textColorCSo7UIColor"></a>
|
||||
<a name="//apple_ref/swift/Property/textColor" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem9textColorCSo7UIColor">textColor</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The color of the UITabBarItem text.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">@IBInspectable</span> <span class="kd">public</span> <span class="k">var</span> <span class="nv">textColor</span><span class="p">:</span> <span class="kt">UIColor</span> <span class="o">=</span> <span class="kt">UIColor</span><span class="o">.</span><span class="nf">blackColor</span><span class="p">()</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem9iconColorCSo7UIColor"></a>
|
||||
<a name="//apple_ref/swift/Property/iconColor" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem9iconColorCSo7UIColor">iconColor</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The tint color of the UITabBarItem icon.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">@IBInspectable</span> <span class="kd">public</span> <span class="k">var</span> <span class="nv">iconColor</span><span class="p">:</span> <span class="kt">UIColor</span> <span class="o">=</span> <span class="kt">UIColor</span><span class="o">.</span><span class="nf">clearColor</span><span class="p">()</span> <span class="c1">// if alpha color is 0 color ignoring</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem13playAnimationFT_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/playAnimation()" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem13playAnimationFT_T_">playAnimation()</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start selected animation</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">playAnimation</span><span class="p">()</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem17deselectAnimationFT_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/deselectAnimation()" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem17deselectAnimationFT_T_">deselectAnimation()</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start unselected animation</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">deselectAnimation</span><span class="p">()</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem13selectedStateFT_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/selectedState()" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem13selectedStateFT_T_">selectedState()</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Set selected state without animation</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">selectedState</span><span class="p">()</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem10badgeValueGSqSS_"></a>
|
||||
<a name="//apple_ref/swift/Property/badgeValue" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo21RAMAnimatedTabBarItem10badgeValueGSqSS_">badgeValue</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The current badge value</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="k">var</span> <span class="nv">badgeValue</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="" target="_blank" rel="external">AlexKalinkin</a>. All rights reserved. (Last updated: 2016-06-10)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
@@ -0,0 +1,295 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>RAMBounceAnimation Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/RAMBounceAnimation" class="dashAnchor"></a>
|
||||
<a title="RAMBounceAnimation Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">RAMAnimatedTabBarDemo Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">RAMAnimatedTabBarDemo Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
RAMBounceAnimation Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarController.html">RAMAnimatedTabBarController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarItem.html">RAMAnimatedTabBarItem</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMBounceAnimation.html">RAMBounceAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFrameItemAnimation.html">RAMFrameItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFumeAnimation.html">RAMFumeAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMItemAnimation.html">RAMItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMRotationAnimation.html">RAMRotationAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMTransitionItemAnimations.html">RAMTransitionItemAnimations</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>RAMBounceAnimation</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMBounceAnimation</span> <span class="p">:</span> <span class="kt">RAMItemAnimation</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p>The RAMBounceAnimation class provides bounce animation.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo18RAMBounceAnimation13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/playAnimation(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo18RAMBounceAnimation13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_">playAnimation(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is selected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">playAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo18RAMBounceAnimation17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_"></a>
|
||||
<a name="//apple_ref/swift/Method/deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo18RAMBounceAnimation17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_">deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is unselected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">deselectAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">,</span> <span class="n">defaultTextColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">,</span> <span class="n">defaultIconColor</span><span class="p">:</span> <span class="kt">UIColor</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultTextColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem text color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultIconColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem icon color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo18RAMBounceAnimation13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/selectedState(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo18RAMBounceAnimation13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_">selectedState(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Method call when TabBarController did load</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">selectedState</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="" target="_blank" rel="external">AlexKalinkin</a>. All rights reserved. (Last updated: 2016-06-10)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
@@ -0,0 +1,418 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>RAMFrameItemAnimation Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/RAMFrameItemAnimation" class="dashAnchor"></a>
|
||||
<a title="RAMFrameItemAnimation Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">RAMAnimatedTabBarDemo Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">RAMAnimatedTabBarDemo Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
RAMFrameItemAnimation Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarController.html">RAMAnimatedTabBarController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarItem.html">RAMAnimatedTabBarItem</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMBounceAnimation.html">RAMBounceAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFrameItemAnimation.html">RAMFrameItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFumeAnimation.html">RAMFumeAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMItemAnimation.html">RAMItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMRotationAnimation.html">RAMRotationAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMTransitionItemAnimations.html">RAMTransitionItemAnimations</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>RAMFrameItemAnimation</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMFrameItemAnimation</span><span class="p">:</span> <span class="kt">RAMItemAnimation</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p>The RAMFrameItemAnimation class provides keyframe animation.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation19isDeselectAnimationSb"></a>
|
||||
<a name="//apple_ref/swift/Property/isDeselectAnimation" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation19isDeselectAnimationSb">isDeselectAnimation</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>A Boolean value indicated plaing revers animation when UITabBarItem unselected, if false image change immediately, defalut value true</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">@IBInspectable</span> <span class="kd">public</span> <span class="k">var</span> <span class="nv">isDeselectAnimation</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation10imagesPathGSQSS_"></a>
|
||||
<a name="//apple_ref/swift/Property/imagesPath" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation10imagesPathGSQSS_">imagesPath</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>path to array of image names from plist file</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">@IBInspectable</span> <span class="kd">public</span> <span class="k">var</span> <span class="nv">imagesPath</span><span class="p">:</span> <span class="kt">String</span><span class="o">!</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<div class="task-name-container">
|
||||
<a name="/public"></a>
|
||||
<a name="//apple_ref/swift/Section/public" class="dashAnchor"></a>
|
||||
<a href="#/public">
|
||||
<h3 class="section-name">public</h3>
|
||||
</a>
|
||||
</div>
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation18setAnimationImagesFGSaCSo7UIImage_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/setAnimationImages(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation18setAnimationImagesFGSaCSo7UIImage_T_">setAnimationImages(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Set images for keyframe animation</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">setAnimationImages</span><span class="p">(</span><span class="nv">images</span><span class="p">:</span> <span class="kt">Array</span><span class="o"><</span><span class="kt">UIImage</span><span class="o">></span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>images</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>images for keyframe animation</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<div class="task-name-container">
|
||||
<a name="/RAMItemAnimationProtocol"></a>
|
||||
<a name="//apple_ref/swift/Section/RAMItemAnimationProtocol" class="dashAnchor"></a>
|
||||
<a href="#/RAMItemAnimationProtocol">
|
||||
<h3 class="section-name">RAMItemAnimationProtocol</h3>
|
||||
</a>
|
||||
</div>
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/playAnimation(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_">playAnimation(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is selected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">playAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_"></a>
|
||||
<a name="//apple_ref/swift/Method/deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_">deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is unselected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">deselectAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">,</span> <span class="n">defaultTextColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">,</span> <span class="n">defaultIconColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultTextColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem text color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultIconColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem icon color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/selectedState(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo21RAMFrameItemAnimation13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_">selectedState(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Method call when TabBarController did load</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">selectedState</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="" target="_blank" rel="external">AlexKalinkin</a>. All rights reserved. (Last updated: 2016-06-10)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
@@ -0,0 +1,295 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>RAMFumeAnimation Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/RAMFumeAnimation" class="dashAnchor"></a>
|
||||
<a title="RAMFumeAnimation Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">RAMAnimatedTabBarDemo Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">RAMAnimatedTabBarDemo Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
RAMFumeAnimation Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarController.html">RAMAnimatedTabBarController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarItem.html">RAMAnimatedTabBarItem</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMBounceAnimation.html">RAMBounceAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFrameItemAnimation.html">RAMFrameItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFumeAnimation.html">RAMFumeAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMItemAnimation.html">RAMItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMRotationAnimation.html">RAMRotationAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMTransitionItemAnimations.html">RAMTransitionItemAnimations</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>RAMFumeAnimation</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMFumeAnimation</span> <span class="p">:</span> <span class="kt">RAMItemAnimation</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p>The RAMFumeAnimation class provides bounce animation.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo16RAMFumeAnimation13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/playAnimation(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo16RAMFumeAnimation13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_">playAnimation(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is selected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">playAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo16RAMFumeAnimation17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_"></a>
|
||||
<a name="//apple_ref/swift/Method/deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo16RAMFumeAnimation17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_">deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is unselected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">deselectAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">,</span> <span class="n">defaultTextColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">,</span> <span class="n">defaultIconColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultTextColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem text color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultIconColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem icon color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo16RAMFumeAnimation13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/selectedState(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo16RAMFumeAnimation13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_">selectedState(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Method call when TabBarController did load</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">selectedState</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="" target="_blank" rel="external">AlexKalinkin</a>. All rights reserved. (Last updated: 2016-06-10)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
@@ -0,0 +1,383 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>RAMItemAnimation Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/RAMItemAnimation" class="dashAnchor"></a>
|
||||
<a title="RAMItemAnimation Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">RAMAnimatedTabBarDemo Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">RAMAnimatedTabBarDemo Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
RAMItemAnimation Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarController.html">RAMAnimatedTabBarController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarItem.html">RAMAnimatedTabBarItem</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMBounceAnimation.html">RAMBounceAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFrameItemAnimation.html">RAMFrameItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFumeAnimation.html">RAMFumeAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMItemAnimation.html">RAMItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMRotationAnimation.html">RAMRotationAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMTransitionItemAnimations.html">RAMTransitionItemAnimations</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>RAMItemAnimation</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMItemAnimation</span><span class="p">:</span> <span class="kt">NSObject</span><span class="p">,</span> <span class="kt">RAMItemAnimationProtocol</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p>Base class for UITabBarItems animation</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<div class="task-name-container">
|
||||
<a name="/properties"></a>
|
||||
<a name="//apple_ref/swift/Section/properties" class="dashAnchor"></a>
|
||||
<a href="#/properties">
|
||||
<h3 class="section-name">properties</h3>
|
||||
</a>
|
||||
</div>
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo16RAMItemAnimation8durationV12CoreGraphics7CGFloat"></a>
|
||||
<a name="//apple_ref/swift/Property/duration" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo16RAMItemAnimation8durationV12CoreGraphics7CGFloat">duration</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The duration of the animation</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">@IBInspectable</span> <span class="kd">public</span> <span class="k">var</span> <span class="nv">duration</span> <span class="p">:</span> <span class="kt">CGFloat</span> <span class="o">=</span> <span class="mf">0.5</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo16RAMItemAnimation17textSelectedColorCSo7UIColor"></a>
|
||||
<a name="//apple_ref/swift/Property/textSelectedColor" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo16RAMItemAnimation17textSelectedColorCSo7UIColor">textSelectedColor</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The text color in selected state.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">@IBInspectable</span> <span class="kd">public</span> <span class="k">var</span> <span class="nv">textSelectedColor</span><span class="p">:</span> <span class="kt">UIColor</span> <span class="o">=</span> <span class="kt">UIColor</span><span class="o">.</span><span class="nf">init</span><span class="p">(</span><span class="nv">red</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span> <span class="nv">green</span><span class="p">:</span> <span class="mf">0.478431</span><span class="p">,</span> <span class="nv">blue</span><span class="p">:</span> <span class="mi">1</span><span class="p">,</span> <span class="nv">alpha</span><span class="p">:</span> <span class="mi">1</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo16RAMItemAnimation17iconSelectedColorGSQCSo7UIColor_"></a>
|
||||
<a name="//apple_ref/swift/Property/iconSelectedColor" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo16RAMItemAnimation17iconSelectedColorGSQCSo7UIColor_">iconSelectedColor</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The icon color in selected state.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">@IBInspectable</span> <span class="kd">public</span> <span class="k">var</span> <span class="nv">iconSelectedColor</span><span class="p">:</span> <span class="kt">UIColor</span><span class="o">!</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo16RAMItemAnimation13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/playAnimation(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo16RAMItemAnimation13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_">playAnimation(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is selected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">playAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo16RAMItemAnimation17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_"></a>
|
||||
<a name="//apple_ref/swift/Method/deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo16RAMItemAnimation17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_">deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is unselected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">deselectAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">,</span> <span class="n">defaultTextColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">,</span> <span class="n">defaultIconColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultTextColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem text color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultIconColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem icon color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo16RAMItemAnimation13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/selectedState(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo16RAMItemAnimation13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_">selectedState(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Method call when TabBarController did load</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">selectedState</span><span class="p">(</span><span class="nv">icon</span><span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="" target="_blank" rel="external">AlexKalinkin</a>. All rights reserved. (Last updated: 2016-06-10)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
@@ -0,0 +1,354 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>RAMRotationAnimation Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/RAMRotationAnimation" class="dashAnchor"></a>
|
||||
<a title="RAMRotationAnimation Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">RAMAnimatedTabBarDemo Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">RAMAnimatedTabBarDemo Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
RAMRotationAnimation Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarController.html">RAMAnimatedTabBarController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarItem.html">RAMAnimatedTabBarItem</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMBounceAnimation.html">RAMBounceAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFrameItemAnimation.html">RAMFrameItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFumeAnimation.html">RAMFumeAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMItemAnimation.html">RAMItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMRotationAnimation.html">RAMRotationAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMTransitionItemAnimations.html">RAMTransitionItemAnimations</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>RAMRotationAnimation</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMRotationAnimation</span> <span class="p">:</span> <span class="kt">RAMItemAnimation</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p>The RAMRotationAnimation class provides rotation animation.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:OC21RAMAnimatedTabBarDemo20RAMRotationAnimation20RAMRotationDirection"></a>
|
||||
<a name="//apple_ref/swift/Enum/RAMRotationDirection" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:OC21RAMAnimatedTabBarDemo20RAMRotationAnimation20RAMRotationDirection">RAMRotationDirection</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Animation direction</p>
|
||||
|
||||
<ul>
|
||||
<li>Left: left direction</li>
|
||||
<li>Right: right direction</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">RAMRotationDirection</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo20RAMRotationAnimation9directionGSQOS0_20RAMRotationDirection_"></a>
|
||||
<a name="//apple_ref/swift/Property/direction" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo20RAMRotationAnimation9directionGSQOS0_20RAMRotationDirection_">direction</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Animation direction (left, right)</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">direction</span> <span class="p">:</span> <span class="kt">RAMRotationDirection</span><span class="o">!</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo20RAMRotationAnimation13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/playAnimation(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo20RAMRotationAnimation13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_">playAnimation(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is selected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">playAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo20RAMRotationAnimation17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_"></a>
|
||||
<a name="//apple_ref/swift/Method/deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo20RAMRotationAnimation17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_">deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is unselected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">deselectAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">,</span> <span class="n">defaultTextColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">,</span> <span class="n">defaultIconColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultTextColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem text color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultIconColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem icon color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo20RAMRotationAnimation13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/selectedState(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo20RAMRotationAnimation13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_">selectedState(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Method call when TabBarController did load</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">selectedState</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="" target="_blank" rel="external">AlexKalinkin</a>. All rights reserved. (Last updated: 2016-06-10)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
@@ -0,0 +1,322 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>RAMTransitionItemAnimations Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/RAMTransitionItemAnimations" class="dashAnchor"></a>
|
||||
<a title="RAMTransitionItemAnimations Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html">RAMAnimatedTabBarDemo Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html">RAMAnimatedTabBarDemo Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
RAMTransitionItemAnimations Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarController.html">RAMAnimatedTabBarController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMAnimatedTabBarItem.html">RAMAnimatedTabBarItem</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMBounceAnimation.html">RAMBounceAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFrameItemAnimation.html">RAMFrameItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMFumeAnimation.html">RAMFumeAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMItemAnimation.html">RAMItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMRotationAnimation.html">RAMRotationAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/RAMTransitionItemAnimations.html">RAMTransitionItemAnimations</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>RAMTransitionItemAnimations</h1>
|
||||
<div class="declaration">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">RAMTransitionItemAnimations</span> <span class="p">:</span> <span class="kt">RAMItemAnimation</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p>Transition animtion</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC21RAMAnimatedTabBarDemo27RAMTransitionItemAnimations17transitionOptionsGSQVSC22UIViewAnimationOptions_"></a>
|
||||
<a name="//apple_ref/swift/Property/transitionOptions" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC21RAMAnimatedTabBarDemo27RAMTransitionItemAnimations17transitionOptionsGSQVSC22UIViewAnimationOptions_">transitionOptions</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Options for animating. Default TransitionNone</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">transitionOptions</span> <span class="p">:</span> <span class="kt">UIViewAnimationOptions</span><span class="o">!</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo27RAMTransitionItemAnimations13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/playAnimation(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo27RAMTransitionItemAnimations13playAnimationFTCSo11UIImageView9textLabelCSo7UILabel_T_">playAnimation(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is selected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">playAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo27RAMTransitionItemAnimations17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_"></a>
|
||||
<a name="//apple_ref/swift/Method/deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo27RAMTransitionItemAnimations17deselectAnimationFTCSo11UIImageView9textLabelCSo7UILabel16defaultTextColorCSo7UIColor16defaultIconColorS3__T_">deselectAnimation(_:textLabel:defaultTextColor:defaultIconColor:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Start animation, method call when UITabBarItem is unselected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">deselectAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">,</span> <span class="n">defaultTextColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">,</span> <span class="n">defaultIconColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultTextColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem text color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>defaultIconColor</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>default UITabBarItem icon color</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC21RAMAnimatedTabBarDemo27RAMTransitionItemAnimations13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/selectedState(_:textLabel:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC21RAMAnimatedTabBarDemo27RAMTransitionItemAnimations13selectedStateFTCSo11UIImageView9textLabelCSo7UILabel_T_">selectedState(_:textLabel:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Method call when TabBarController did load</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">selectedState</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>icon</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem icon</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>textLabel</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>animating UITabBarItem textLabel</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="" target="_blank" rel="external">AlexKalinkin</a>. All rights reserved. (Last updated: 2016-06-10)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
@@ -0,0 +1,200 @@
|
||||
/* Credit to https://gist.github.com/wataru420/2048287 */
|
||||
.highlight {
|
||||
/* Comment */
|
||||
/* Error */
|
||||
/* Keyword */
|
||||
/* Operator */
|
||||
/* Comment.Multiline */
|
||||
/* Comment.Preproc */
|
||||
/* Comment.Single */
|
||||
/* Comment.Special */
|
||||
/* Generic.Deleted */
|
||||
/* Generic.Deleted.Specific */
|
||||
/* Generic.Emph */
|
||||
/* Generic.Error */
|
||||
/* Generic.Heading */
|
||||
/* Generic.Inserted */
|
||||
/* Generic.Inserted.Specific */
|
||||
/* Generic.Output */
|
||||
/* Generic.Prompt */
|
||||
/* Generic.Strong */
|
||||
/* Generic.Subheading */
|
||||
/* Generic.Traceback */
|
||||
/* Keyword.Constant */
|
||||
/* Keyword.Declaration */
|
||||
/* Keyword.Pseudo */
|
||||
/* Keyword.Reserved */
|
||||
/* Keyword.Type */
|
||||
/* Literal.Number */
|
||||
/* Literal.String */
|
||||
/* Name.Attribute */
|
||||
/* Name.Builtin */
|
||||
/* Name.Class */
|
||||
/* Name.Constant */
|
||||
/* Name.Entity */
|
||||
/* Name.Exception */
|
||||
/* Name.Function */
|
||||
/* Name.Namespace */
|
||||
/* Name.Tag */
|
||||
/* Name.Variable */
|
||||
/* Operator.Word */
|
||||
/* Text.Whitespace */
|
||||
/* Literal.Number.Float */
|
||||
/* Literal.Number.Hex */
|
||||
/* Literal.Number.Integer */
|
||||
/* Literal.Number.Oct */
|
||||
/* Literal.String.Backtick */
|
||||
/* Literal.String.Char */
|
||||
/* Literal.String.Doc */
|
||||
/* Literal.String.Double */
|
||||
/* Literal.String.Escape */
|
||||
/* Literal.String.Heredoc */
|
||||
/* Literal.String.Interpol */
|
||||
/* Literal.String.Other */
|
||||
/* Literal.String.Regex */
|
||||
/* Literal.String.Single */
|
||||
/* Literal.String.Symbol */
|
||||
/* Name.Builtin.Pseudo */
|
||||
/* Name.Variable.Class */
|
||||
/* Name.Variable.Global */
|
||||
/* Name.Variable.Instance */
|
||||
/* Literal.Number.Integer.Long */ }
|
||||
.highlight .c {
|
||||
color: #999988;
|
||||
font-style: italic; }
|
||||
.highlight .err {
|
||||
color: #a61717;
|
||||
background-color: #e3d2d2; }
|
||||
.highlight .k {
|
||||
color: #000000;
|
||||
font-weight: bold; }
|
||||
.highlight .o {
|
||||
color: #000000;
|
||||
font-weight: bold; }
|
||||
.highlight .cm {
|
||||
color: #999988;
|
||||
font-style: italic; }
|
||||
.highlight .cp {
|
||||
color: #999999;
|
||||
font-weight: bold; }
|
||||
.highlight .c1 {
|
||||
color: #999988;
|
||||
font-style: italic; }
|
||||
.highlight .cs {
|
||||
color: #999999;
|
||||
font-weight: bold;
|
||||
font-style: italic; }
|
||||
.highlight .gd {
|
||||
color: #000000;
|
||||
background-color: #ffdddd; }
|
||||
.highlight .gd .x {
|
||||
color: #000000;
|
||||
background-color: #ffaaaa; }
|
||||
.highlight .ge {
|
||||
color: #000000;
|
||||
font-style: italic; }
|
||||
.highlight .gr {
|
||||
color: #aa0000; }
|
||||
.highlight .gh {
|
||||
color: #999999; }
|
||||
.highlight .gi {
|
||||
color: #000000;
|
||||
background-color: #ddffdd; }
|
||||
.highlight .gi .x {
|
||||
color: #000000;
|
||||
background-color: #aaffaa; }
|
||||
.highlight .go {
|
||||
color: #888888; }
|
||||
.highlight .gp {
|
||||
color: #555555; }
|
||||
.highlight .gs {
|
||||
font-weight: bold; }
|
||||
.highlight .gu {
|
||||
color: #aaaaaa; }
|
||||
.highlight .gt {
|
||||
color: #aa0000; }
|
||||
.highlight .kc {
|
||||
color: #000000;
|
||||
font-weight: bold; }
|
||||
.highlight .kd {
|
||||
color: #000000;
|
||||
font-weight: bold; }
|
||||
.highlight .kp {
|
||||
color: #000000;
|
||||
font-weight: bold; }
|
||||
.highlight .kr {
|
||||
color: #000000;
|
||||
font-weight: bold; }
|
||||
.highlight .kt {
|
||||
color: #445588; }
|
||||
.highlight .m {
|
||||
color: #009999; }
|
||||
.highlight .s {
|
||||
color: #d14; }
|
||||
.highlight .na {
|
||||
color: #008080; }
|
||||
.highlight .nb {
|
||||
color: #0086B3; }
|
||||
.highlight .nc {
|
||||
color: #445588;
|
||||
font-weight: bold; }
|
||||
.highlight .no {
|
||||
color: #008080; }
|
||||
.highlight .ni {
|
||||
color: #800080; }
|
||||
.highlight .ne {
|
||||
color: #990000;
|
||||
font-weight: bold; }
|
||||
.highlight .nf {
|
||||
color: #990000; }
|
||||
.highlight .nn {
|
||||
color: #555555; }
|
||||
.highlight .nt {
|
||||
color: #000080; }
|
||||
.highlight .nv {
|
||||
color: #008080; }
|
||||
.highlight .ow {
|
||||
color: #000000;
|
||||
font-weight: bold; }
|
||||
.highlight .w {
|
||||
color: #bbbbbb; }
|
||||
.highlight .mf {
|
||||
color: #009999; }
|
||||
.highlight .mh {
|
||||
color: #009999; }
|
||||
.highlight .mi {
|
||||
color: #009999; }
|
||||
.highlight .mo {
|
||||
color: #009999; }
|
||||
.highlight .sb {
|
||||
color: #d14; }
|
||||
.highlight .sc {
|
||||
color: #d14; }
|
||||
.highlight .sd {
|
||||
color: #d14; }
|
||||
.highlight .s2 {
|
||||
color: #d14; }
|
||||
.highlight .se {
|
||||
color: #d14; }
|
||||
.highlight .sh {
|
||||
color: #d14; }
|
||||
.highlight .si {
|
||||
color: #d14; }
|
||||
.highlight .sx {
|
||||
color: #d14; }
|
||||
.highlight .sr {
|
||||
color: #009926; }
|
||||
.highlight .s1 {
|
||||
color: #d14; }
|
||||
.highlight .ss {
|
||||
color: #990073; }
|
||||
.highlight .bp {
|
||||
color: #999999; }
|
||||
.highlight .vc {
|
||||
color: #008080; }
|
||||
.highlight .vg {
|
||||
color: #008080; }
|
||||
.highlight .vi {
|
||||
color: #008080; }
|
||||
.highlight .il {
|
||||
color: #009999; }
|
||||
@@ -0,0 +1,331 @@
|
||||
html, body, div, span, h1, h3, h4, p, a, code, em, img, ul, li, table, tbody, tr, td {
|
||||
background: transparent;
|
||||
border: 0;
|
||||
margin: 0;
|
||||
outline: 0;
|
||||
padding: 0;
|
||||
vertical-align: baseline; }
|
||||
|
||||
body {
|
||||
background-color: #f2f2f2;
|
||||
font-family: Helvetica, freesans, Arial, sans-serif;
|
||||
font-size: 14px;
|
||||
-webkit-font-smoothing: subpixel-antialiased;
|
||||
word-wrap: break-word; }
|
||||
|
||||
h1, h2, h3 {
|
||||
margin-top: 0.8em;
|
||||
margin-bottom: 0.3em;
|
||||
font-weight: 100;
|
||||
color: black; }
|
||||
|
||||
h1 {
|
||||
font-size: 2.5em; }
|
||||
|
||||
h2 {
|
||||
font-size: 2em;
|
||||
border-bottom: 1px solid #e2e2e2; }
|
||||
|
||||
h4 {
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
margin-top: 21px; }
|
||||
|
||||
h5 {
|
||||
font-size: 1.1em; }
|
||||
|
||||
h6 {
|
||||
font-size: 1.1em;
|
||||
color: #777; }
|
||||
|
||||
.section-name {
|
||||
color: gray;
|
||||
display: block;
|
||||
font-family: Helvetica;
|
||||
font-size: 22px;
|
||||
font-weight: 100;
|
||||
margin-bottom: 15px; }
|
||||
|
||||
pre, code {
|
||||
font: 0.95em Menlo, monospace;
|
||||
color: #777;
|
||||
word-wrap: normal; }
|
||||
|
||||
p code, li code {
|
||||
background-color: #eee;
|
||||
padding: 2px 4px;
|
||||
border-radius: 4px; }
|
||||
|
||||
a {
|
||||
color: #0088cc;
|
||||
text-decoration: none; }
|
||||
|
||||
ul {
|
||||
padding-left: 15px; }
|
||||
|
||||
li {
|
||||
line-height: 1.8em; }
|
||||
|
||||
img {
|
||||
max-width: 100%; }
|
||||
|
||||
blockquote {
|
||||
margin-left: 0;
|
||||
padding: 0 10px;
|
||||
border-left: 4px solid #ccc; }
|
||||
|
||||
.content-wrapper {
|
||||
margin: 0 auto;
|
||||
width: 980px; }
|
||||
|
||||
header {
|
||||
font-size: 0.85em;
|
||||
line-height: 26px;
|
||||
background-color: #414141;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
z-index: 1; }
|
||||
header img {
|
||||
padding-right: 6px;
|
||||
vertical-align: -4px;
|
||||
height: 16px; }
|
||||
header a {
|
||||
color: #fff; }
|
||||
header p {
|
||||
float: left;
|
||||
color: #999; }
|
||||
header .header-right {
|
||||
float: right;
|
||||
margin-left: 16px; }
|
||||
|
||||
#breadcrumbs {
|
||||
background-color: #f2f2f2;
|
||||
height: 27px;
|
||||
padding-top: 17px;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
margin-top: 26px; }
|
||||
#breadcrumbs #carat {
|
||||
height: 10px;
|
||||
margin: 0 5px; }
|
||||
|
||||
.sidebar {
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #e2e2e2;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
position: fixed;
|
||||
top: 70px;
|
||||
bottom: 0;
|
||||
width: 230px;
|
||||
word-wrap: normal; }
|
||||
|
||||
.nav-groups {
|
||||
list-style-type: none;
|
||||
background: #fff;
|
||||
padding-left: 0; }
|
||||
|
||||
.nav-group-name {
|
||||
border-bottom: 1px solid #e2e2e2;
|
||||
font-size: 1.1em;
|
||||
font-weight: 100;
|
||||
padding: 15px 0 15px 20px; }
|
||||
.nav-group-name > a {
|
||||
color: #333; }
|
||||
|
||||
.nav-group-tasks {
|
||||
margin-top: 5px; }
|
||||
|
||||
.nav-group-task {
|
||||
font-size: 0.9em;
|
||||
list-style-type: none; }
|
||||
.nav-group-task a {
|
||||
color: #888; }
|
||||
|
||||
.main-content {
|
||||
background-color: #fff;
|
||||
border: 1px solid #e2e2e2;
|
||||
margin-left: 246px;
|
||||
position: absolute;
|
||||
overflow: hidden;
|
||||
padding-bottom: 60px;
|
||||
top: 70px;
|
||||
width: 734px; }
|
||||
.main-content p, .main-content a, .main-content code, .main-content em, .main-content ul, .main-content table, .main-content blockquote {
|
||||
margin-bottom: 1em; }
|
||||
.main-content p {
|
||||
line-height: 1.8em; }
|
||||
.main-content section .section:first-child {
|
||||
margin-top: 0;
|
||||
padding-top: 0; }
|
||||
.main-content section .task-group-section .task-group:first-of-type {
|
||||
padding-top: 10px; }
|
||||
.main-content section .task-group-section .task-group:first-of-type .section-name {
|
||||
padding-top: 15px; }
|
||||
|
||||
.section {
|
||||
padding: 0 25px; }
|
||||
|
||||
.highlight {
|
||||
background-color: #eee;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid #e2e2e2;
|
||||
border-radius: 4px;
|
||||
overflow-x: auto; }
|
||||
|
||||
.declaration .highlight {
|
||||
overflow-x: initial;
|
||||
padding: 0 40px 40px 0;
|
||||
margin-bottom: -25px;
|
||||
background-color: transparent;
|
||||
border: none; }
|
||||
|
||||
.section-name {
|
||||
margin: 0;
|
||||
margin-left: 18px; }
|
||||
|
||||
.task-group-section {
|
||||
padding-left: 6px;
|
||||
border-top: 1px solid #e2e2e2; }
|
||||
|
||||
.task-group {
|
||||
padding-top: 0px; }
|
||||
|
||||
.task-name-container a[name]:before {
|
||||
content: "";
|
||||
display: block;
|
||||
padding-top: 70px;
|
||||
margin: -70px 0 0; }
|
||||
|
||||
.item {
|
||||
padding-top: 8px;
|
||||
width: 100%;
|
||||
list-style-type: none; }
|
||||
.item a[name]:before {
|
||||
content: "";
|
||||
display: block;
|
||||
padding-top: 70px;
|
||||
margin: -70px 0 0; }
|
||||
.item code {
|
||||
background-color: transparent;
|
||||
padding: 0; }
|
||||
.item .token {
|
||||
padding-left: 3px;
|
||||
margin-left: 15px;
|
||||
font-size: 11.9px; }
|
||||
.item .declaration-note {
|
||||
font-size: .85em;
|
||||
color: gray;
|
||||
font-style: italic; }
|
||||
|
||||
.pointer-container {
|
||||
border-bottom: 1px solid #e2e2e2;
|
||||
left: -23px;
|
||||
padding-bottom: 13px;
|
||||
position: relative;
|
||||
width: 110%; }
|
||||
|
||||
.pointer {
|
||||
background: #f9f9f9;
|
||||
border-left: 1px solid #e2e2e2;
|
||||
border-top: 1px solid #e2e2e2;
|
||||
height: 12px;
|
||||
left: 21px;
|
||||
top: -7px;
|
||||
-webkit-transform: rotate(45deg);
|
||||
-moz-transform: rotate(45deg);
|
||||
-o-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
position: absolute;
|
||||
width: 12px; }
|
||||
|
||||
.height-container {
|
||||
display: none;
|
||||
left: -25px;
|
||||
padding: 0 25px;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
overflow: hidden; }
|
||||
.height-container .section {
|
||||
background: #f9f9f9;
|
||||
border-bottom: 1px solid #e2e2e2;
|
||||
left: -25px;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
padding-top: 10px;
|
||||
padding-bottom: 5px; }
|
||||
|
||||
.aside, .language {
|
||||
padding: 6px 12px;
|
||||
margin: 12px 0;
|
||||
border-left: 5px solid #dddddd;
|
||||
overflow-y: hidden; }
|
||||
.aside .aside-title, .language .aside-title {
|
||||
font-size: 9px;
|
||||
letter-spacing: 2px;
|
||||
text-transform: uppercase;
|
||||
padding-bottom: 0;
|
||||
margin: 0;
|
||||
color: #aaa;
|
||||
-webkit-user-select: none; }
|
||||
.aside p:last-child, .language p:last-child {
|
||||
margin-bottom: 0; }
|
||||
|
||||
.language {
|
||||
border-left: 5px solid #cde9f4; }
|
||||
.language .aside-title {
|
||||
color: #4b8afb; }
|
||||
|
||||
.aside-warning {
|
||||
border-left: 5px solid #ff6666; }
|
||||
.aside-warning .aside-title {
|
||||
color: #ff0000; }
|
||||
|
||||
.graybox {
|
||||
border-collapse: collapse;
|
||||
width: 100%; }
|
||||
.graybox p {
|
||||
margin: 0;
|
||||
word-break: break-word;
|
||||
min-width: 50px; }
|
||||
.graybox td {
|
||||
border: 1px solid #e2e2e2;
|
||||
padding: 5px 25px 5px 10px;
|
||||
vertical-align: middle; }
|
||||
.graybox tr td:first-of-type {
|
||||
text-align: right;
|
||||
padding: 7px;
|
||||
vertical-align: top;
|
||||
word-break: normal;
|
||||
width: 40px; }
|
||||
|
||||
.slightly-smaller {
|
||||
font-size: 0.9em; }
|
||||
|
||||
#footer {
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
margin-left: 25px; }
|
||||
#footer p {
|
||||
margin: 0;
|
||||
color: #aaa;
|
||||
font-size: 0.8em; }
|
||||
|
||||
html.dash header, html.dash #breadcrumbs, html.dash .sidebar {
|
||||
display: none; }
|
||||
html.dash .main-content {
|
||||
width: 980px;
|
||||
margin-left: 0;
|
||||
border: none;
|
||||
width: 100%;
|
||||
top: 0;
|
||||
padding-bottom: 0; }
|
||||
html.dash .height-container {
|
||||
display: block; }
|
||||
html.dash .item .token {
|
||||
margin-left: 0; }
|
||||
html.dash .content-wrapper {
|
||||
width: auto; }
|
||||
html.dash #footer {
|
||||
position: static; }
|
||||
|
After Width: | Height: | Size: 274 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,205 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>RAMAnimatedTabBarDemo Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="js/jquery.min.js" defer></script>
|
||||
<script src="js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a title="RAMAnimatedTabBarDemo Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="index.html">RAMAnimatedTabBarDemo Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="index.html">RAMAnimatedTabBarDemo Reference</a>
|
||||
<img id="carat" src="img/carat.png" />
|
||||
RAMAnimatedTabBarDemo Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMAnimatedTabBarController.html">RAMAnimatedTabBarController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMAnimatedTabBarItem.html">RAMAnimatedTabBarItem</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMBounceAnimation.html">RAMBounceAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMFrameItemAnimation.html">RAMFrameItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMFumeAnimation.html">RAMFumeAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMItemAnimation.html">RAMItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMRotationAnimation.html">RAMRotationAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMTransitionItemAnimations.html">RAMTransitionItemAnimations</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
|
||||
<p><img src="https://raw.githubusercontent.com/Ramotion/animated-tab-bar/master/header.png" alt="header"></p>
|
||||
<a href='#ramanimatedtabbarcontroller' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h1 id='ramanimatedtabbarcontroller'>RAMAnimatedTabBarController</h1>
|
||||
|
||||
<p><a href="http://cocoapods.org/pods/RAMAnimatedTabBarController"><img src="https://img.shields.io/cocoapods/p/RAMAnimatedTabBarController.svg" alt="CocoaPods"></a>
|
||||
<a href="http://cocoapods.org/pods/RAMAnimatedTabBarController"><img src="https://img.shields.io/cocoapods/v/RAMAnimatedTabBarController.svg" alt="CocoaPods"></a>
|
||||
<a href="https://cdn.rawgit.com/Ramotion/animated-tab-bar/master/docs/index.html"><img src="https://img.shields.io/cocoapods/metrics/doc-percent/RAMAnimatedTabBarController.svg" alt="CocoaPods"></a>
|
||||
<a href="https://github.com/Ramotion/animated-tab-bar"><img src="https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat" alt="Carthage compatible"></a>
|
||||
<a href="http://twitter.com/Ramotion"><img src="https://img.shields.io/badge/Twitter-@Ramotion-blue.svg?style=flat" alt="Twitter"></a>
|
||||
<a href="https://travis-ci.org/Ramotion/animated-tab-bar"><img src="https://img.shields.io/travis/Ramotion/animated-tab-bar.svg" alt="Travis"></a></p>
|
||||
|
||||
<p>RAMAnimatedTabBarController is a Swift module for adding animation to tabbar items. It has pre-set of animations which we prepare for you, and ability to use any custom animation you want. With this module you can make your tabbar alive like our <a href="https://dribbble.com/shots/1766396-Animated-Tab-Bar-Icons?list=searches&tag=ramotion&offset=...">shot on dribbble</a>:</p>
|
||||
|
||||
<p><img src="https://raw.githubusercontent.com/Ramotion/animated-tab-bar/master/Screenshots/tab-bar-icons-iphone-ramotion-animation-interface-design.gif" alt="Animation"></p>
|
||||
|
||||
<p>The <a href="https://store.ramotion.com/product/iphone-6-mockups?utm_source=gthb&utm_medium=special&utm_campaign=animated-tab-bar">iPhone mockup</a> available <a href="https://store.ramotion.com/product/iphone-6-mockups?utm_source=gthb&utm_medium=special&utm_campaign=animated-tab-bar">here</a>.</p>
|
||||
|
||||
<p>Screencast from our Demo</p>
|
||||
|
||||
<p><img src="https://raw.githubusercontent.com/Ramotion/animated-tab-bar/master/Screenshots/RAMAnimatedTabBarDemo.gif" alt="Animation"></p>
|
||||
<a href='#requirements' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='requirements'>Requirements</h2>
|
||||
|
||||
<ul>
|
||||
<li>iOS 7.0+</li>
|
||||
<li>Xcode 6.1</li>
|
||||
</ul>
|
||||
<a href='#installation' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='installation'>Installation</h2>
|
||||
|
||||
<p>Just add the RAMAnimatedTabBarController folder to your project.</p>
|
||||
|
||||
<p>or use <a href="https://cocoapods.org">CocoaPods</a> with Podfile:
|
||||
<code>ruby
|
||||
pod 'RAMAnimatedTabBarController'
|
||||
</code></p>
|
||||
|
||||
<p>or <a href="https://github.com/Carthage/Carthage">Carthage</a> users can simply add to their <code>Cartfile</code>:
|
||||
<code>
|
||||
github "Ramotion/animated-tab-bar"
|
||||
</code></p>
|
||||
<a href='#usage' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='usage'>Usage</h2>
|
||||
|
||||
<ol>
|
||||
<li><p>Create a new UITabBarController in your storyboard or nib.</p></li>
|
||||
<li><p>Set the class of the UITabBarController to RAMAnimatedTabBarController in your Storyboard or nib.</p></li>
|
||||
<li><p>For each UITabBarItem, set the class to RAMAnimatedTabBarItem.</p></li>
|
||||
<li><p>Add a custom image icon for each RAMAnimatedTabBarItem</p></li>
|
||||
<li><p>Add animation for each RAMAnimatedTabBarItem :</p>
|
||||
|
||||
<ul>
|
||||
<li>drag and drop an NSObject item into your ViewController</li>
|
||||
<li>set its class to ANIMATION_CLASS (where ANIMATION_CLASS is the class name of the animation you want to use)</li>
|
||||
<li>connect the outlet animation in RAMAnimatedTabBarItem to your ANIMATION_CLASS
|
||||
<a href="http://vimeo.com/112390386">Demonstration video for step 5</a></li>
|
||||
</ul></li>
|
||||
</ol>
|
||||
<a href='#included_animations' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='included_animations'>Included Animations</h2>
|
||||
|
||||
<ul>
|
||||
<li>RAMBounceAnimation</li>
|
||||
<li>RAMLeftRotationAnimation</li>
|
||||
<li>RAMRightRotationAnimation</li>
|
||||
<li>RAMFlipLeftTransitionItemAnimations</li>
|
||||
<li>RAMFlipRightTransitionItemAnimations</li>
|
||||
<li>RAMFlipTopTransitionItemAnimations</li>
|
||||
<li>RAMFlipBottomTransitionItemAnimations</li>
|
||||
<li>RAMFrameItemAnimation</li>
|
||||
<li>RAMFumeAnimation</li>
|
||||
</ul>
|
||||
<a href='#creating_custom_animations' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='creating_custom_animations'>Creating Custom Animations</h2>
|
||||
|
||||
<ol>
|
||||
<li>Create a new class which inherits from RAMItemAnimation:</li>
|
||||
</ol>
|
||||
<pre class="highlight swift"><code> <span class="kd">class</span> <span class="kt">NewAnimation</span> <span class="p">:</span> <span class="kt">RAMItemAnimation</span>
|
||||
</code></pre>
|
||||
|
||||
<ol>
|
||||
<li>Implement the methods in RAMItemAnimationProtocol:</li>
|
||||
</ol>
|
||||
<pre class="highlight swift"><code> <span class="c1">// method call when Tab Bar Item is selected</span>
|
||||
<span class="k">override</span> <span class="kd">func</span> <span class="nf">playAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLable</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span> <span class="p">{</span>
|
||||
<span class="c1">// add animation</span>
|
||||
<span class="p">}</span>
|
||||
</code></pre>
|
||||
<pre class="highlight swift"><code> <span class="c1">// method call when Tab Bar Item is deselected</span>
|
||||
<span class="k">override</span> <span class="kd">func</span> <span class="nf">deselectAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLable</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">,</span> <span class="n">defaultTextColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">)</span> <span class="p">{</span>
|
||||
<span class="c1">// add animation</span>
|
||||
<span class="p">}</span>
|
||||
</code></pre>
|
||||
<pre class="highlight swift"><code> <span class="c1">// method call when TabBarController did load</span>
|
||||
<span class="k">override</span> <span class="kd">func</span> <span class="nf">selectedState</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLable</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span> <span class="p">{</span>
|
||||
<span class="c1">// set selected state </span>
|
||||
<span class="p">}</span>
|
||||
</code></pre>
|
||||
|
||||
<ol>
|
||||
<li>Example:</li>
|
||||
</ol>
|
||||
<pre class="highlight swift"><code><span class="kd">class</span> <span class="kt">RAMBounceAnimation</span> <span class="p">:</span> <span class="kt">RAMItemAnimation</span> <span class="p">{</span>
|
||||
|
||||
<span class="k">override</span> <span class="kd">func</span> <span class="nf">playAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLable</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span> <span class="p">{</span>
|
||||
<span class="nf">playBounceAnimation</span><span class="p">(</span><span class="n">icon</span><span class="p">)</span>
|
||||
<span class="n">textLable</span><span class="o">.</span><span class="n">textColor</span> <span class="o">=</span> <span class="n">textSelectedColor</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="k">override</span> <span class="kd">func</span> <span class="nf">deselectAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLable</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">,</span> <span class="n">defaultTextColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">)</span> <span class="p">{</span>
|
||||
<span class="n">textLable</span><span class="o">.</span><span class="n">textColor</span> <span class="o">=</span> <span class="n">defaultTextColor</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="k">override</span> <span class="kd">func</span> <span class="nf">selectedState</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLable</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span> <span class="p">{</span>
|
||||
<span class="n">textLable</span><span class="o">.</span><span class="n">textColor</span> <span class="o">=</span> <span class="n">textSelectedColor</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="kd">func</span> <span class="nf">playBounceAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">)</span> <span class="p">{</span>
|
||||
|
||||
<span class="k">let</span> <span class="nv">bounceAnimation</span> <span class="o">=</span> <span class="kt">CAKeyframeAnimation</span><span class="p">(</span><span class="nv">keyPath</span><span class="p">:</span> <span class="s">"transform.scale"</span><span class="p">)</span>
|
||||
<span class="n">bounceAnimation</span><span class="o">.</span><span class="n">values</span> <span class="o">=</span> <span class="p">[</span><span class="mf">1.0</span> <span class="p">,</span><span class="mf">1.4</span><span class="p">,</span> <span class="mf">0.9</span><span class="p">,</span> <span class="mf">1.15</span><span class="p">,</span> <span class="mf">0.95</span><span class="p">,</span> <span class="mf">1.02</span><span class="p">,</span> <span class="mf">1.0</span><span class="p">]</span>
|
||||
<span class="n">bounceAnimation</span><span class="o">.</span><span class="n">duration</span> <span class="o">=</span> <span class="kt">NSTimeInterval</span><span class="p">(</span><span class="n">duration</span><span class="p">)</span>
|
||||
<span class="n">bounceAnimation</span><span class="o">.</span><span class="n">calculationMode</span> <span class="o">=</span> <span class="n">kCAAnimationCubic</span>
|
||||
|
||||
<span class="n">icon</span><span class="o">.</span><span class="n">layer</span><span class="o">.</span><span class="nf">addAnimation</span><span class="p">(</span><span class="n">bounceAnimation</span><span class="p">,</span> <span class="nv">forKey</span><span class="p">:</span> <span class="s">"bounceAnimation"</span><span class="p">)</span>
|
||||
<span class="p">}</span>
|
||||
<span class="p">}</span>
|
||||
</code></pre>
|
||||
<a href='#about' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='about'>About</h2>
|
||||
|
||||
<p>The project maintained by <a href="https://ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=animated-tab-bar">app development agency</a> <a href="https://ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=animated-tab-bar">Ramotion Inc.</a>
|
||||
See our other <a href="https://github.com/ramotion">open-source projects</a> or <a href="https://ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=animated-tab-bar">hire</a> us to design, develop, and grow your product.</p>
|
||||
|
||||
<p><a href="https://twitter.com/intent/tweet?text=https://github.com/ramotion/animated-tab-bar"><img src="https://img.shields.io/twitter/url/http/shields.io.svg?style=social" alt="Twitter URL"></a>
|
||||
<a href="https://twitter.com/ramotion"><img src="https://img.shields.io/twitter/follow/ramotion.svg?style=social" alt="Twitter Follow"></a></p>
|
||||
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="" target="_blank" rel="external">AlexKalinkin</a>. All rights reserved. (Last updated: 2016-06-10)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
@@ -0,0 +1,40 @@
|
||||
window.jazzy = {'docset': false}
|
||||
if (typeof window.dash != 'undefined') {
|
||||
document.documentElement.className += ' dash'
|
||||
window.jazzy.docset = true
|
||||
}
|
||||
if (navigator.userAgent.match(/xcode/i)) {
|
||||
document.documentElement.className += ' xcode'
|
||||
window.jazzy.docset = true
|
||||
}
|
||||
|
||||
// On doc load, toggle the URL hash discussion if present
|
||||
$(document).ready(function() {
|
||||
if (!window.jazzy.docset) {
|
||||
var linkToHash = $('a[href="' + window.location.hash +'"]');
|
||||
linkToHash.trigger("click");
|
||||
}
|
||||
});
|
||||
|
||||
// On token click, toggle its discussion and animate token.marginLeft
|
||||
$(".token").click(function(event) {
|
||||
if (window.jazzy.docset) {
|
||||
return;
|
||||
}
|
||||
var link = $(this);
|
||||
var animationDuration = 300;
|
||||
var tokenOffset = "15px";
|
||||
var original = link.css('marginLeft') == tokenOffset;
|
||||
link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration);
|
||||
$content = link.parent().parent().next();
|
||||
$content.slideToggle(animationDuration);
|
||||
|
||||
// Keeps the document from jumping to the hash.
|
||||
var href = $(this).attr('href');
|
||||
if (history.pushState) {
|
||||
history.pushState({}, '', href);
|
||||
} else {
|
||||
location.hash = href;
|
||||
}
|
||||
event.preventDefault();
|
||||
});
|
||||
|
After Width: | Height: | Size: 274 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,205 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>RAMAnimatedTabBarDemo Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="js/jquery.min.js" defer></script>
|
||||
<script src="js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a title="RAMAnimatedTabBarDemo Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="index.html">RAMAnimatedTabBarDemo Docs</a> (100% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="index.html">RAMAnimatedTabBarDemo Reference</a>
|
||||
<img id="carat" src="img/carat.png" />
|
||||
RAMAnimatedTabBarDemo Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMAnimatedTabBarController.html">RAMAnimatedTabBarController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMAnimatedTabBarItem.html">RAMAnimatedTabBarItem</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMBounceAnimation.html">RAMBounceAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMFrameItemAnimation.html">RAMFrameItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMFumeAnimation.html">RAMFumeAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMItemAnimation.html">RAMItemAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMRotationAnimation.html">RAMRotationAnimation</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/RAMTransitionItemAnimations.html">RAMTransitionItemAnimations</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
|
||||
<p><img src="https://raw.githubusercontent.com/Ramotion/animated-tab-bar/master/header.png" alt="header"></p>
|
||||
<a href='#ramanimatedtabbarcontroller' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h1 id='ramanimatedtabbarcontroller'>RAMAnimatedTabBarController</h1>
|
||||
|
||||
<p><a href="http://cocoapods.org/pods/RAMAnimatedTabBarController"><img src="https://img.shields.io/cocoapods/p/RAMAnimatedTabBarController.svg" alt="CocoaPods"></a>
|
||||
<a href="http://cocoapods.org/pods/RAMAnimatedTabBarController"><img src="https://img.shields.io/cocoapods/v/RAMAnimatedTabBarController.svg" alt="CocoaPods"></a>
|
||||
<a href="https://cdn.rawgit.com/Ramotion/animated-tab-bar/master/docs/index.html"><img src="https://img.shields.io/cocoapods/metrics/doc-percent/RAMAnimatedTabBarController.svg" alt="CocoaPods"></a>
|
||||
<a href="https://github.com/Ramotion/animated-tab-bar"><img src="https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat" alt="Carthage compatible"></a>
|
||||
<a href="http://twitter.com/Ramotion"><img src="https://img.shields.io/badge/Twitter-@Ramotion-blue.svg?style=flat" alt="Twitter"></a>
|
||||
<a href="https://travis-ci.org/Ramotion/animated-tab-bar"><img src="https://img.shields.io/travis/Ramotion/animated-tab-bar.svg" alt="Travis"></a></p>
|
||||
|
||||
<p>RAMAnimatedTabBarController is a Swift module for adding animation to tabbar items. It has pre-set of animations which we prepare for you, and ability to use any custom animation you want. With this module you can make your tabbar alive like our <a href="https://dribbble.com/shots/1766396-Animated-Tab-Bar-Icons?list=searches&tag=ramotion&offset=...">shot on dribbble</a>:</p>
|
||||
|
||||
<p><img src="https://raw.githubusercontent.com/Ramotion/animated-tab-bar/master/Screenshots/tab-bar-icons-iphone-ramotion-animation-interface-design.gif" alt="Animation"></p>
|
||||
|
||||
<p>The <a href="https://store.ramotion.com/product/iphone-6-mockups?utm_source=gthb&utm_medium=special&utm_campaign=animated-tab-bar">iPhone mockup</a> avaiLabel <a href="https://store.ramotion.com/product/iphone-6-mockups?utm_source=gthb&utm_medium=special&utm_campaign=animated-tab-bar">here</a>.</p>
|
||||
|
||||
<p>Screencast from our Demo</p>
|
||||
|
||||
<p><img src="https://raw.githubusercontent.com/Ramotion/animated-tab-bar/master/Screenshots/RAMAnimatedTabBarDemo.gif" alt="Animation"></p>
|
||||
<a href='#requirements' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='requirements'>Requirements</h2>
|
||||
|
||||
<ul>
|
||||
<li>iOS 7.0+</li>
|
||||
<li>Xcode 6.1</li>
|
||||
</ul>
|
||||
<a href='#installation' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='installation'>Installation</h2>
|
||||
|
||||
<p>Just add the RAMAnimatedTabBarController folder to your project.</p>
|
||||
|
||||
<p>or use <a href="https://cocoapods.org">CocoaPods</a> with Podfile:
|
||||
<code>ruby
|
||||
pod 'RAMAnimatedTabBarController'
|
||||
</code></p>
|
||||
|
||||
<p>or <a href="https://github.com/Carthage/Carthage">Carthage</a> users can simply add to their <code>Cartfile</code>:
|
||||
<code>
|
||||
github "Ramotion/animated-tab-bar"
|
||||
</code></p>
|
||||
<a href='#usage' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='usage'>Usage</h2>
|
||||
|
||||
<ol>
|
||||
<li><p>Create a new UITabBarController in your storyboard or nib.</p></li>
|
||||
<li><p>Set the class of the UITabBarController to RAMAnimatedTabBarController in your Storyboard or nib.</p></li>
|
||||
<li><p>For each UITabBarItem, set the class to RAMAnimatedTabBarItem.</p></li>
|
||||
<li><p>Add a custom image icon for each RAMAnimatedTabBarItem</p></li>
|
||||
<li><p>Add animation for each RAMAnimatedTabBarItem :</p>
|
||||
|
||||
<ul>
|
||||
<li>drag and drop an NSObject item into your ViewController</li>
|
||||
<li>set its class to ANIMATION_CLASS (where ANIMATION_CLASS is the class name of the animation you want to use)</li>
|
||||
<li>connect the outlet animation in RAMAnimatedTabBarItem to your ANIMATION_CLASS
|
||||
<a href="http://vimeo.com/112390386">Demonstration video for step 5</a></li>
|
||||
</ul></li>
|
||||
</ol>
|
||||
<a href='#included_animations' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='included_animations'>Included Animations</h2>
|
||||
|
||||
<ul>
|
||||
<li>RAMBounceAnimation</li>
|
||||
<li>RAMLeftRotationAnimation</li>
|
||||
<li>RAMRightRotationAnimation</li>
|
||||
<li>RAMFlipLeftTransitionItemAnimations</li>
|
||||
<li>RAMFlipRightTransitionItemAnimations</li>
|
||||
<li>RAMFlipTopTransitionItemAnimations</li>
|
||||
<li>RAMFlipBottomTransitionItemAnimations</li>
|
||||
<li>RAMFrameItemAnimation</li>
|
||||
<li>RAMFumeAnimation</li>
|
||||
</ul>
|
||||
<a href='#creating_custom_animations' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='creating_custom_animations'>Creating Custom Animations</h2>
|
||||
|
||||
<ol>
|
||||
<li>Create a new class which inherits from RAMItemAnimation:</li>
|
||||
</ol>
|
||||
<pre class="highlight swift"><code> <span class="kd">class</span> <span class="kt">NewAnimation</span> <span class="p">:</span> <span class="kt">RAMItemAnimation</span>
|
||||
</code></pre>
|
||||
|
||||
<ol>
|
||||
<li>Implement the methods in RAMItemAnimationProtocol:</li>
|
||||
</ol>
|
||||
<pre class="highlight swift"><code> <span class="c1">// method call when Tab Bar Item is selected</span>
|
||||
<span class="k">override</span> <span class="kd">func</span> <span class="nf">playAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span> <span class="p">{</span>
|
||||
<span class="c1">// add animation</span>
|
||||
<span class="p">}</span>
|
||||
</code></pre>
|
||||
<pre class="highlight swift"><code> <span class="c1">// method call when Tab Bar Item is deselected</span>
|
||||
<span class="k">override</span> <span class="kd">func</span> <span class="nf">deselectAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">,</span> <span class="n">defaultTextColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">)</span> <span class="p">{</span>
|
||||
<span class="c1">// add animation</span>
|
||||
<span class="p">}</span>
|
||||
</code></pre>
|
||||
<pre class="highlight swift"><code> <span class="c1">// method call when TabBarController did load</span>
|
||||
<span class="k">override</span> <span class="kd">func</span> <span class="nf">selectedState</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span> <span class="p">{</span>
|
||||
<span class="c1">// set selected state </span>
|
||||
<span class="p">}</span>
|
||||
</code></pre>
|
||||
|
||||
<ol>
|
||||
<li>Example:</li>
|
||||
</ol>
|
||||
<pre class="highlight swift"><code><span class="kd">class</span> <span class="kt">RAMBounceAnimation</span> <span class="p">:</span> <span class="kt">RAMItemAnimation</span> <span class="p">{</span>
|
||||
|
||||
<span class="k">override</span> <span class="kd">func</span> <span class="nf">playAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span> <span class="p">{</span>
|
||||
<span class="nf">playBounceAnimation</span><span class="p">(</span><span class="n">icon</span><span class="p">)</span>
|
||||
<span class="n">textLabel</span><span class="o">.</span><span class="n">textColor</span> <span class="o">=</span> <span class="n">textSelectedColor</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="k">override</span> <span class="kd">func</span> <span class="nf">deselectAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">,</span> <span class="n">defaultTextColor</span> <span class="p">:</span> <span class="kt">UIColor</span><span class="p">)</span> <span class="p">{</span>
|
||||
<span class="n">textLabel</span><span class="o">.</span><span class="n">textColor</span> <span class="o">=</span> <span class="n">defaultTextColor</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="k">override</span> <span class="kd">func</span> <span class="nf">selectedState</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">,</span> <span class="nv">textLabel</span> <span class="p">:</span> <span class="kt">UILabel</span><span class="p">)</span> <span class="p">{</span>
|
||||
<span class="n">textLabel</span><span class="o">.</span><span class="n">textColor</span> <span class="o">=</span> <span class="n">textSelectedColor</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="kd">func</span> <span class="nf">playBounceAnimation</span><span class="p">(</span><span class="nv">icon</span> <span class="p">:</span> <span class="kt">UIImageView</span><span class="p">)</span> <span class="p">{</span>
|
||||
|
||||
<span class="k">let</span> <span class="nv">bounceAnimation</span> <span class="o">=</span> <span class="kt">CAKeyframeAnimation</span><span class="p">(</span><span class="nv">keyPath</span><span class="p">:</span> <span class="s">"transform.scale"</span><span class="p">)</span>
|
||||
<span class="n">bounceAnimation</span><span class="o">.</span><span class="n">values</span> <span class="o">=</span> <span class="p">[</span><span class="mf">1.0</span> <span class="p">,</span><span class="mf">1.4</span><span class="p">,</span> <span class="mf">0.9</span><span class="p">,</span> <span class="mf">1.15</span><span class="p">,</span> <span class="mf">0.95</span><span class="p">,</span> <span class="mf">1.02</span><span class="p">,</span> <span class="mf">1.0</span><span class="p">]</span>
|
||||
<span class="n">bounceAnimation</span><span class="o">.</span><span class="n">duration</span> <span class="o">=</span> <span class="kt">NSTimeInterval</span><span class="p">(</span><span class="n">duration</span><span class="p">)</span>
|
||||
<span class="n">bounceAnimation</span><span class="o">.</span><span class="n">calculationMode</span> <span class="o">=</span> <span class="n">kCAAnimationCubic</span>
|
||||
|
||||
<span class="n">icon</span><span class="o">.</span><span class="n">layer</span><span class="o">.</span><span class="nf">addAnimation</span><span class="p">(</span><span class="n">bounceAnimation</span><span class="p">,</span> <span class="nv">forKey</span><span class="p">:</span> <span class="s">"bounceAnimation"</span><span class="p">)</span>
|
||||
<span class="p">}</span>
|
||||
<span class="p">}</span>
|
||||
</code></pre>
|
||||
<a href='#about' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='about'>About</h2>
|
||||
|
||||
<p>The project maintained by <a href="https://ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=animated-tab-bar">app development agency</a> <a href="https://ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=animated-tab-bar">Ramotion Inc.</a>
|
||||
See our other <a href="https://github.com/ramotion">open-source projects</a> or <a href="https://ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=animated-tab-bar">hire</a> us to design, develop, and grow your product.</p>
|
||||
|
||||
<p><a href="https://twitter.com/intent/tweet?text=https://github.com/ramotion/animated-tab-bar"><img src="https://img.shields.io/twitter/url/http/shields.io.svg?style=social" alt="Twitter URL"></a>
|
||||
<a href="https://twitter.com/ramotion"><img src="https://img.shields.io/twitter/follow/ramotion.svg?style=social" alt="Twitter Follow"></a></p>
|
||||
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2016 <a class="link" href="" target="_blank" rel="external">AlexKalinkin</a>. All rights reserved. (Last updated: 2016-06-10)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.5.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
||||
@@ -0,0 +1,40 @@
|
||||
window.jazzy = {'docset': false}
|
||||
if (typeof window.dash != 'undefined') {
|
||||
document.documentElement.className += ' dash'
|
||||
window.jazzy.docset = true
|
||||
}
|
||||
if (navigator.userAgent.match(/xcode/i)) {
|
||||
document.documentElement.className += ' xcode'
|
||||
window.jazzy.docset = true
|
||||
}
|
||||
|
||||
// On doc load, toggle the URL hash discussion if present
|
||||
$(document).ready(function() {
|
||||
if (!window.jazzy.docset) {
|
||||
var linkToHash = $('a[href="' + window.location.hash +'"]');
|
||||
linkToHash.trigger("click");
|
||||
}
|
||||
});
|
||||
|
||||
// On token click, toggle its discussion and animate token.marginLeft
|
||||
$(".token").click(function(event) {
|
||||
if (window.jazzy.docset) {
|
||||
return;
|
||||
}
|
||||
var link = $(this);
|
||||
var animationDuration = 300;
|
||||
var tokenOffset = "15px";
|
||||
var original = link.css('marginLeft') == tokenOffset;
|
||||
link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration);
|
||||
$content = link.parent().parent().next();
|
||||
$content.slideToggle(animationDuration);
|
||||
|
||||
// Keeps the document from jumping to the hash.
|
||||
var href = $(this).attr('href');
|
||||
if (history.pushState) {
|
||||
history.pushState({}, '', href);
|
||||
} else {
|
||||
location.hash = href;
|
||||
}
|
||||
event.preventDefault();
|
||||
});
|
||||
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 16 KiB |