Compare commits
363 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 | |||
| a533b4a166 | |||
| 52f832d1de | |||
| c666164865 | |||
| d4ca06e367 | |||
| cd4aeb230c | |||
| 4cb5054a17 | |||
| 87b1e4b71f | |||
| a67c903165 | |||
| b02e86c380 | |||
| bb80a6cbd1 | |||
| 3dc8161627 | |||
| 937eca99f8 | |||
| e2e22fa33f | |||
| dc34bc1fde | |||
| eeb2f4e81b | |||
| 2542ee11ef | |||
| 93324c8d58 | |||
| 1e2f94b011 | |||
| 44b93433b5 | |||
| ef8ad9c999 | |||
| c55ca0d301 | |||
| 57f3d632fd | |||
| bba5010de9 | |||
| f5711de86a | |||
| 5f5b3799e5 | |||
| 953352b09e | |||
| 2731a63b9a | |||
| 2713332ee8 | |||
| ac4741d808 | |||
| c948f16814 | |||
| 392cca7ba0 | |||
| a571edad71 | |||
| 5d376c4b7d | |||
| 3f8ba698ef | |||
| b81f91bf7a | |||
| 75ff882345 | |||
| c913c8d954 | |||
| bf548125a2 | |||
| 2cadba9a69 | |||
| 092f894c4a | |||
| 6edacba031 | |||
| 681d93709a | |||
| 9df9ba8d6d | |||
| b3041edcad | |||
| 015332182f | |||
| ff66c75976 | |||
| cb4efd4e6f | |||
| 1ce82edf18 | |||
| 059df1592f | |||
| 252266b65b | |||
| fd0cb7e97c | |||
| a8d8f2af2b | |||
| 253a032261 | |||
| 3bea4850e9 | |||
| cd69785d7f | |||
| d0f894bdc4 | |||
| b6c431d09a | |||
| ae8e9db854 | |||
| d90d64cb80 | |||
| 6e4916670c | |||
| 5dce00868d | |||
| bd9da2228a | |||
| 76973a0092 | |||
| 887557ddef | |||
| 6703bd9b60 | |||
| 8a5312d7c8 | |||
| b09bbe44ec | |||
| f9f0e4b53e | |||
| 0ce0be1172 | |||
| c37cf2fe67 | |||
| fd471dd7ea | |||
| 9382972935 | |||
| 7db8147477 | |||
| 4d88cb6154 | |||
| ed43b56490 | |||
| 768509e3e1 | |||
| 6656feeb6e | |||
| 3c4af1c52a | |||
| 75e6283b4a | |||
| 93fdfb3dbb | |||
| cb42d3a0da | |||
| e6f046851a | |||
| cc01bdd861 | |||
| b305bb917d | |||
| d7a4933c22 |
@@ -1,45 +1,6 @@
|
||||
# Compiled source #
|
||||
###################
|
||||
*.com
|
||||
*.class
|
||||
*.dll
|
||||
*.exe
|
||||
*.o
|
||||
*.so
|
||||
|
||||
# Packages #
|
||||
############
|
||||
# it's better to unpack these files and commit the raw source
|
||||
# git has its own built in compression methods
|
||||
*.7z
|
||||
*.dmg
|
||||
*.gz
|
||||
*.iso
|
||||
*.jar
|
||||
*.rar
|
||||
*.tar
|
||||
*.zip
|
||||
|
||||
# Logs and databases #
|
||||
######################
|
||||
*.log
|
||||
*.sql
|
||||
*.sqlite
|
||||
|
||||
# OS generated files #
|
||||
######################
|
||||
.DS_Store*
|
||||
ehthumbs.db
|
||||
Icon?
|
||||
Thumbs.db
|
||||
|
||||
# AppCode files#
|
||||
################
|
||||
.idea/
|
||||
|
||||
# Xcode
|
||||
.DS_Store
|
||||
*/build/*
|
||||
#
|
||||
build/
|
||||
*.pbxuser
|
||||
!default.pbxuser
|
||||
*.mode1v3
|
||||
@@ -48,32 +9,28 @@ Thumbs.db
|
||||
!default.mode2v3
|
||||
*.perspectivev3
|
||||
!default.perspectivev3
|
||||
*.xcworkspace
|
||||
!default.xcworkspace
|
||||
xcuserdata
|
||||
profile
|
||||
*.xccheckout
|
||||
*.moved-aside
|
||||
|
||||
# Exclude temp nibs and swap files #
|
||||
####################################
|
||||
*~.nib
|
||||
DerivedData
|
||||
*.hmap
|
||||
*.xccheckout
|
||||
*.swp
|
||||
*.ipa
|
||||
*.xcuserstate
|
||||
|
||||
# Exclude user-specific XCode 3 and 4 files #
|
||||
#############################################
|
||||
*.mode1
|
||||
*.mode1v3
|
||||
*.mode2v3
|
||||
*.perspective
|
||||
*.perspectivev3
|
||||
*.pbxuser
|
||||
*.xcworkspace
|
||||
xcuserdata
|
||||
xcshareddata
|
||||
*~.nib
|
||||
build/
|
||||
# CocoaPods
|
||||
#
|
||||
# We recommend against adding the Pods directory to your .gitignore. However
|
||||
# you should judge for yourself, the pros and cons are mentioned at:
|
||||
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
|
||||
#
|
||||
# Pods/
|
||||
|
||||
Pods/
|
||||
# Carthage
|
||||
#
|
||||
# Add this line if you want to avoid checking in source code from Carthage dependencies.
|
||||
# Carthage/Checkouts
|
||||
|
||||
Carthage/Build
|
||||
Status API Training Shop Blog About Pricing
|
||||
|
||||
.DS_Store
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
4.2
|
||||
@@ -0,0 +1,11 @@
|
||||
osx_image: xcode10.2
|
||||
language: objective-c
|
||||
xcode_sdk: iphonesimulator12.1
|
||||
|
||||
xcode_project: RAMAnimatedTabBarDemo/RAMAnimatedTabBarDemo.xcodeproj
|
||||
xcode_scheme: RAMAnimatedTabBarController
|
||||
|
||||
# whitelist
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
@@ -0,0 +1,33 @@
|
||||
# Contributing to a Project
|
||||
Now that you’ve found the material for understanding the project, here is how you can take action.
|
||||
|
||||
### Create an Issue
|
||||
|
||||
If you find a bug in a project you’re using (and you don’t know how to fix it), have trouble following the documentation or have a question about the project – create an issue! There’s nothing to it and whatever issue you’re having, you’re likely not the only one, so others will find your issue helpful, too. For more information on how issues work, check out our Issues guide.
|
||||
|
||||
#### Issues Pro Tips
|
||||
|
||||
Check existing issues for your issue. Duplicating an issue is slower for both parties so search through open and closed issues to see if what you’re running into has been addressed already.
|
||||
Be clear about what your problem is: what was the expected outcome, what happened instead? Detail how someone else can recreate the problem.
|
||||
Link to demos recreating the problem on things like JSFiddle or CodePen.
|
||||
Include system details like what the browser, library or operating system you’re using and its version.
|
||||
Paste error output or logs in your issue or in a Gist. If pasting them in the issue, wrap it in three backticks: ``` so that it renders nicely.
|
||||
|
||||
### Pull Request
|
||||
|
||||
If you’re able to patch the bug or add the feature yourself – fantastic, make a pull request with the code! Be sure you’ve read any documents on contributing, understand the license and have signed a CLA if required. Once you’ve submitted a pull request the maintainer(s) can compare your branch to the existing one and decide whether or not to incorporate (pull in) your changes.
|
||||
|
||||
#### Pull Request Pro Tips
|
||||
|
||||
Fork the repository and clone it locally. Connect your local to the original ‘upstream’ repository by adding it as a remote. Pull in changes from ‘upstream’ often so that you stay up to date so that when you submit your pull request, merge conflicts will be less likely. See more detailed instructions here.
|
||||
Create a branch for your edits.
|
||||
Be clear about what problem is occurring and how someone can recreate that problem or why your feature will help. Then be equally as clear about the steps you took to make your changes.
|
||||
It’s best to test. Run your changes against any existing tests if they exist and create new ones when needed. Whether tests exist or not, make sure your changes don’t break the existing project.
|
||||
Include screenshots of the before and after if your changes include differences in HTML/CSS. Drag and drop the images into the body of your pull request.
|
||||
Contribute in the style of the project to the best of your abilities. This may mean using indents, semi colons or comments differently than you would in your own repository, but makes it easier for the maintainer to merge, others to understand and maintain in the future.
|
||||
|
||||
#### Open Pull Requests
|
||||
|
||||
Once you’ve opened a pull request a discussion will start around your proposed changes. Other contributors and users may chime in, but ultimately the decision is made by the maintainer(s). You may be asked to make some changes to your pull request, if so, add more commits to your branch and push them – they’ll automatically go into the existing pull request.
|
||||
|
||||
If your pull request is merged – great! If it is not, no sweat, it may not be what the project maintainer had in mind, or they were already working on it. This happens, so our recommendation is to take any feedback you’ve received and go forth and pull request again – or create your own open source project.
|
||||
@@ -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,13 +1,11 @@
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'RAMAnimatedTabBarController'
|
||||
s.version = '1.0.0'
|
||||
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 => '1.0.0' }
|
||||
|
||||
s.ios.deployment_target = '7.0'
|
||||
|
||||
s.source_files = 'RAMAnimatedTabBarController/*.swift', 'RAMAnimatedTabBarController/**/*.swift'
|
||||
end
|
||||
s.source = { :git => 'https://github.com/Ramotion/animated-tab-bar.git', :tag => s.version.to_s }
|
||||
s.ios.deployment_target = '9.0'
|
||||
s.source_files = "RAMAnimatedTabBarController/*.swift", "RAMAnimatedTabBarController/**/*.swift"
|
||||
end
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
{
|
||||
"name": "RAMAnimatedTabBarController",
|
||||
"version": "1.0.0",
|
||||
"license": "MIT",
|
||||
"summary": "RAMAnimatedTabBarController is a Swift module for adding animation to tabbar items.",
|
||||
"homepage": "https://github.com/Ramotion/animated-tab-bar",
|
||||
"authors": {
|
||||
"Juri Vasylenko": "juri.v@ramotion.com"
|
||||
},
|
||||
"source": {
|
||||
"git": "https://github.com/Ramotion/animated-tab-bar.git",
|
||||
"tag": "1.0.0"
|
||||
},
|
||||
"platforms": {
|
||||
"ios": "7.0"
|
||||
},
|
||||
"source_files": [
|
||||
"RAMAnimatedTabBarController/*.swift",
|
||||
"RAMAnimatedTabBarController/**/*.swift"
|
||||
]
|
||||
}
|
||||
@@ -22,42 +22,69 @@
|
||||
|
||||
import UIKit
|
||||
|
||||
/// The RAMBounceAnimation class provides bounce animation.
|
||||
open class RAMBounceAnimation: RAMItemAnimation {
|
||||
|
||||
class RAMBounceAnimation : RAMItemAnimation {
|
||||
/**
|
||||
Start animation, method call when UITabBarItem is selected
|
||||
|
||||
override 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 func deselectAnimation(icon : UIImageView, textLabel : UILabel, defaultTextColor : 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
|
||||
|
||||
let renderImage = icon.image?.imageWithRenderingMode(.AlwaysTemplate)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = defaultTextColor
|
||||
|
||||
if let iconImage = icon.image {
|
||||
let renderMode = defaultIconColor.cgColor.alpha == 0 ? UIImage.RenderingMode.alwaysOriginal :
|
||||
UIImage.RenderingMode.alwaysTemplate
|
||||
let renderImage = iconImage.withRenderingMode(renderMode)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = defaultIconColor
|
||||
}
|
||||
}
|
||||
|
||||
override 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
|
||||
|
||||
let renderImage = icon.image?.imageWithRenderingMode(.AlwaysTemplate)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = textSelectedColor
|
||||
|
||||
if let iconImage = icon.image {
|
||||
let renderImage = iconImage.withRenderingMode(.alwaysTemplate)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = iconSelectedColor
|
||||
}
|
||||
}
|
||||
|
||||
func playBounceAnimation(icon : UIImageView) {
|
||||
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.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.addAnimation(bounceAnimation, forKey: "bounceAnimation")
|
||||
|
||||
let renderImage = icon.image?.imageWithRenderingMode(.AlwaysTemplate)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = iconSelectedColor
|
||||
icon.layer.add(bounceAnimation, forKey: nil)
|
||||
|
||||
if let iconImage = icon.image {
|
||||
let renderImage = iconImage.withRenderingMode(.alwaysTemplate)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = iconSelectedColor
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -20,67 +20,113 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
// THE SOFTWARE.
|
||||
|
||||
import UIKit
|
||||
import QuartzCore
|
||||
import UIKit
|
||||
|
||||
class RAMFrameItemAnimation: RAMItemAnimation {
|
||||
/// The RAMFrameItemAnimation class provides keyframe animation.
|
||||
open class RAMFrameItemAnimation: RAMItemAnimation {
|
||||
|
||||
var animationImages : Array<CGImage> = Array()
|
||||
@nonobjc fileprivate var animationImages: Array<CGImage> = Array()
|
||||
|
||||
var selectedImage : UIImage!
|
||||
var selectedImage: UIImage!
|
||||
|
||||
@IBInspectable var isDeselectAnimation: Bool = true
|
||||
@IBInspectable 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 func awakeFromNib() {
|
||||
/// path to array of image names from plist file
|
||||
@IBInspectable open var imagesPath: String!
|
||||
|
||||
let path = NSBundle.mainBundle().pathForResource(imagesPath, ofType:"plist")
|
||||
open override func awakeFromNib() {
|
||||
|
||||
let dict : NSDictionary = NSDictionary(contentsOfFile: path!)!
|
||||
guard let path = Bundle.main.path(forResource: imagesPath, ofType: "plist") else {
|
||||
fatalError("don't found plist")
|
||||
}
|
||||
|
||||
guard case let animationImagesName as [String] = NSArray(contentsOfFile: path) else {
|
||||
fatalError()
|
||||
}
|
||||
|
||||
let animationImagesName = dict["images"] as! Array<String>
|
||||
createImagesArray(animationImagesName)
|
||||
|
||||
// selected image
|
||||
var selectedImageName = animationImagesName[animationImagesName.endIndex - 1]
|
||||
let selectedImageName = animationImagesName[animationImagesName.endIndex - 1]
|
||||
selectedImage = UIImage(named: selectedImageName)
|
||||
}
|
||||
|
||||
|
||||
func createImagesArray(imageNames : Array<String>) {
|
||||
for name : String in imageNames {
|
||||
let image = UIImage(named: name)?.CGImage
|
||||
animationImages.append(image!)
|
||||
func createImagesArray(_ imageNames: Array<String>) {
|
||||
for name: String in imageNames {
|
||||
if let image = UIImage(named: name)?.cgImage {
|
||||
animationImages.append(image)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override func playAnimation(icon : UIImageView, textLabel : UILabel) {
|
||||
// MARK: public
|
||||
|
||||
playFrameAnimation(icon, images:animationImages)
|
||||
/**
|
||||
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
|
||||
}
|
||||
|
||||
// MARK: RAMItemAnimationProtocol
|
||||
|
||||
/**
|
||||
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 func deselectAnimation(icon : UIImageView, textLabel : UILabel, defaultTextColor : 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 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
|
||||
}
|
||||
|
||||
func playFrameAnimation(icon : UIImageView, images : Array<CGImage>) {
|
||||
var frameAnimation = CAKeyframeAnimation(keyPath: "contents")
|
||||
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: "frameAnimation")
|
||||
frameAnimation.repeatCount = 1
|
||||
frameAnimation.isRemovedOnCompletion = false
|
||||
frameAnimation.fillMode = CAMediaTimingFillMode.forwards
|
||||
icon.layer.add(frameAnimation, forKey: nil)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,85 +23,113 @@
|
||||
|
||||
import UIKit
|
||||
|
||||
/// The RAMFumeAnimation class provides bounce animation.
|
||||
open class RAMFumeAnimation: RAMItemAnimation {
|
||||
|
||||
class RAMFumeAnimation : RAMItemAnimation {
|
||||
/**
|
||||
Start animation, method call when UITabBarItem is selected
|
||||
|
||||
override 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
|
||||
|
||||
let renderImage = icon.image?.imageWithRenderingMode(.AlwaysTemplate)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = textSelectedColor
|
||||
|
||||
if let iconImage = icon.image {
|
||||
let renderImage = iconImage.withRenderingMode(.alwaysTemplate)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = iconSelectedColor
|
||||
}
|
||||
}
|
||||
|
||||
override func deselectAnimation(icon : UIImageView, textLabel : UILabel, defaultTextColor : 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
|
||||
|
||||
let renderImage = icon.image?.imageWithRenderingMode(.AlwaysTemplate)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = defaultTextColor
|
||||
|
||||
if let iconImage = icon.image {
|
||||
let renderMode = defaultIconColor.cgColor.alpha == 0 ? UIImage.RenderingMode.alwaysOriginal :
|
||||
UIImage.RenderingMode.alwaysTemplate
|
||||
let renderImage = iconImage.withRenderingMode(renderMode)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = defaultIconColor
|
||||
}
|
||||
}
|
||||
|
||||
override func selectedState(icon : UIImageView, textLabel : UILabel) {
|
||||
/**
|
||||
Method call when TabBarController did load
|
||||
|
||||
playMoveIconAnimation(icon, values:[icon.center.y + 8.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
|
||||
|
||||
let renderImage = icon.image?.imageWithRenderingMode(.AlwaysTemplate)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = textSelectedColor
|
||||
|
||||
if let iconImage = icon.image {
|
||||
let renderImage = iconImage.withRenderingMode(.alwaysTemplate)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = iconSelectedColor
|
||||
}
|
||||
}
|
||||
|
||||
func playMoveIconAnimation(icon : UIImageView, values: [AnyObject]) {
|
||||
func playMoveIconAnimation(_ icon: UIImageView, values: [AnyObject]) {
|
||||
|
||||
let yPositionAnimation = createAnimation("position.y", values:values, duration:duration / 2)
|
||||
let yPositionAnimation = createAnimation(Constants.AnimationKeys.positionY, values: values, duration: duration / 2)
|
||||
|
||||
icon.layer.addAnimation(yPositionAnimation, forKey: "yPositionAnimation")
|
||||
icon.layer.add(yPositionAnimation, forKey: nil)
|
||||
}
|
||||
|
||||
// MARK: select animation
|
||||
|
||||
func playLabelAnimation(textLabel: UILabel) {
|
||||
func playLabelAnimation(_ textLabel: UILabel) {
|
||||
|
||||
let yPositionAnimation = createAnimation("position.y", values:[textLabel.center.y, textLabel.center.y - 60.0], duration:duration)
|
||||
yPositionAnimation.fillMode = kCAFillModeRemoved
|
||||
yPositionAnimation.removedOnCompletion = true
|
||||
textLabel.layer.addAnimation(yPositionAnimation, forKey: "yLabelPostionAnimation")
|
||||
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("transform.scale", values:[1.0 ,2.0], duration:duration)
|
||||
scaleAnimation.fillMode = kCAFillModeRemoved
|
||||
scaleAnimation.removedOnCompletion = true
|
||||
textLabel.layer.addAnimation(scaleAnimation, forKey: "scaleLabelAnimation")
|
||||
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("opacity", values:[1.0 ,0.0], duration:duration)
|
||||
textLabel.layer.addAnimation(opacityAnimation, forKey: "opacityLabelAnimation")
|
||||
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("position.y", values:[textLabel.center.y + 15, textLabel.center.y], duration:duration)
|
||||
textLabel.layer.addAnimation(yPositionAnimation, forKey: "yLabelPostionAnimation")
|
||||
func playDeselectLabelAnimation(_ textLabel: UILabel) {
|
||||
|
||||
let opacityAnimation = createAnimation("opacity", values:[0, 1], duration:duration)
|
||||
textLabel.layer.addAnimation(opacityAnimation, forKey: "opacityLabelAnimation")
|
||||
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,75 +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
|
||||
|
||||
enum RAMRotationDirection {
|
||||
case Left
|
||||
case Right
|
||||
}
|
||||
/// The RAMRotationAnimation class provides rotation animation.
|
||||
open class RAMRotationAnimation: RAMItemAnimation {
|
||||
|
||||
class RAMRotationAnimation : RAMItemAnimation {
|
||||
/**
|
||||
Animation direction
|
||||
|
||||
var direction : RAMRotationDirection!
|
||||
- Left: left direction
|
||||
- Right: right direction
|
||||
*/
|
||||
public enum RAMRotationDirection {
|
||||
case left
|
||||
case right
|
||||
}
|
||||
|
||||
override 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 func deselectAnimation(icon : UIImageView, textLabel : UILabel, defaultTextColor : 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
|
||||
|
||||
let renderImage = icon.image?.imageWithRenderingMode(.AlwaysTemplate)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = defaultTextColor
|
||||
|
||||
if let iconImage = icon.image {
|
||||
let renderMode = defaultIconColor.cgColor.alpha == 0 ? UIImage.RenderingMode.alwaysOriginal :
|
||||
UIImage.RenderingMode.alwaysTemplate
|
||||
let renderImage = iconImage.withRenderingMode(renderMode)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = defaultIconColor
|
||||
}
|
||||
}
|
||||
|
||||
override 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
|
||||
|
||||
let renderImage = icon.image?.imageWithRenderingMode(.AlwaysTemplate)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = textSelectedColor
|
||||
|
||||
if let iconImage = icon.image {
|
||||
let renderImage = iconImage.withRenderingMode(.alwaysTemplate)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = iconSelectedColor
|
||||
}
|
||||
}
|
||||
|
||||
func playRoatationAnimation(icon : UIImageView) {
|
||||
func playRoatationAnimation(_ icon: UIImageView) {
|
||||
|
||||
let rotateAnimation = CABasicAnimation(keyPath: "transform.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.addAnimation(rotateAnimation, forKey: "rotation360")
|
||||
|
||||
let renderImage = icon.image?.imageWithRenderingMode(.AlwaysTemplate)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = iconSelectedColor
|
||||
icon.layer.add(rotateAnimation, forKey: nil)
|
||||
|
||||
if let iconImage = icon.image {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,104 +0,0 @@
|
||||
// RAMTransitionItemAniamtions.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 UIKit
|
||||
|
||||
class RAMTransitionItemAniamtions : RAMItemAnimation {
|
||||
|
||||
var transitionOptions : UIViewAnimationOptions!
|
||||
|
||||
override init() {
|
||||
super.init()
|
||||
|
||||
transitionOptions = UIViewAnimationOptions.TransitionNone
|
||||
}
|
||||
|
||||
override func playAnimation(icon : UIImageView, textLabel : UILabel) {
|
||||
|
||||
selectedColor(icon, textLabel: textLabel)
|
||||
|
||||
UIView.transitionWithView(icon, duration: NSTimeInterval(duration), options: transitionOptions, animations: {
|
||||
}, completion: { finished in
|
||||
})
|
||||
}
|
||||
|
||||
override func deselectAnimation(icon : UIImageView, textLabel : UILabel, defaultTextColor : UIColor) {
|
||||
|
||||
var renderImage = icon.image?.imageWithRenderingMode(UIImageRenderingMode.AlwaysOriginal)
|
||||
icon.image = renderImage;
|
||||
textLabel.textColor = defaultTextColor
|
||||
}
|
||||
|
||||
override func selectedState(icon : UIImageView, textLabel : UILabel) {
|
||||
|
||||
selectedColor(icon, textLabel: textLabel)
|
||||
}
|
||||
|
||||
|
||||
func selectedColor(icon : UIImageView, textLabel : UILabel) {
|
||||
|
||||
if iconSelectedColor != nil {
|
||||
var renderImage = icon.image?.imageWithRenderingMode(UIImageRenderingMode.AlwaysTemplate)
|
||||
icon.image = renderImage;
|
||||
icon.tintColor = iconSelectedColor
|
||||
}
|
||||
|
||||
textLabel.textColor = textSelectedColor
|
||||
}
|
||||
}
|
||||
|
||||
class RAMFlipLeftTransitionItemAniamtions : RAMTransitionItemAniamtions {
|
||||
|
||||
override init() {
|
||||
super.init()
|
||||
|
||||
transitionOptions = UIViewAnimationOptions.TransitionFlipFromLeft
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class RAMFlipRightTransitionItemAniamtions : RAMTransitionItemAniamtions {
|
||||
|
||||
override init() {
|
||||
super.init()
|
||||
|
||||
transitionOptions = UIViewAnimationOptions.TransitionFlipFromRight
|
||||
}
|
||||
}
|
||||
|
||||
class RAMFlipTopTransitionItemAniamtions : RAMTransitionItemAniamtions {
|
||||
|
||||
override init() {
|
||||
super.init()
|
||||
|
||||
transitionOptions = UIViewAnimationOptions.TransitionFlipFromTop
|
||||
}
|
||||
}
|
||||
|
||||
class RAMFlipBottomTransitionItemAniamtions : RAMTransitionItemAniamtions {
|
||||
|
||||
override init() {
|
||||
super.init()
|
||||
|
||||
transitionOptions = UIViewAnimationOptions.TransitionFlipFromBottom
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
// RAMTransitionItemAnimations.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 UIKit
|
||||
|
||||
/// Transition animtion
|
||||
open class RAMTransitionItemAnimations: RAMItemAnimation {
|
||||
|
||||
/// Options for animating. Default TransitionNone
|
||||
open var transitionOptions: UIView.AnimationOptions!
|
||||
|
||||
override init() {
|
||||
super.init()
|
||||
|
||||
transitionOptions = UIView.AnimationOptions()
|
||||
}
|
||||
|
||||
/**
|
||||
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.transition(with: icon, duration: TimeInterval(duration), options: transitionOptions, animations: {
|
||||
}, completion: { _ in
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
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 = defaultIconColor.cgColor.alpha == 0 ? UIImage.RenderingMode.alwaysOriginal :
|
||||
UIImage.RenderingMode.alwaysTemplate
|
||||
let renderImage = iconImage.withRenderingMode(renderMode)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = defaultIconColor
|
||||
}
|
||||
textLabel.textColor = defaultTextColor
|
||||
}
|
||||
|
||||
/**
|
||||
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) {
|
||||
|
||||
if let iconImage = icon.image, iconSelectedColor != nil {
|
||||
let renderImage = iconImage.withRenderingMode(.alwaysTemplate)
|
||||
icon.image = renderImage
|
||||
icon.tintColor = iconSelectedColor
|
||||
}
|
||||
|
||||
textLabel.textColor = textSelectedColor
|
||||
}
|
||||
}
|
||||
|
||||
open class RAMFlipLeftTransitionItemAnimations: RAMTransitionItemAnimations {
|
||||
|
||||
public override init() {
|
||||
super.init()
|
||||
|
||||
transitionOptions = UIView.AnimationOptions.transitionFlipFromLeft
|
||||
}
|
||||
}
|
||||
|
||||
open class RAMFlipRightTransitionItemAnimations: RAMTransitionItemAnimations {
|
||||
|
||||
public override init() {
|
||||
super.init()
|
||||
|
||||
transitionOptions = UIView.AnimationOptions.transitionFlipFromRight
|
||||
}
|
||||
}
|
||||
|
||||
open class RAMFlipTopTransitionItemAnimations: RAMTransitionItemAnimations {
|
||||
|
||||
public override init() {
|
||||
super.init()
|
||||
|
||||
transitionOptions = UIView.AnimationOptions.transitionFlipFromTop
|
||||
}
|
||||
}
|
||||
|
||||
open class RAMFlipBottomTransitionItemAnimations: RAMTransitionItemAnimations {
|
||||
|
||||
public override init() {
|
||||
super.init()
|
||||
|
||||
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,223 +22,313 @@
|
||||
|
||||
import UIKit
|
||||
|
||||
class RAMAnimatedTabBarItem: UITabBarItem {
|
||||
/// UITabBarController with item animations
|
||||
open class RAMAnimatedTabBarController: UITabBarController {
|
||||
|
||||
/**
|
||||
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() }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
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
|
||||
|
||||
@IBOutlet weak var animation: RAMItemAnimation!
|
||||
@IBInspectable var textColor: UIColor = UIColor.blackColor()
|
||||
|
||||
func playAnimation(icon: UIImageView, textLabel: UILabel) {
|
||||
|
||||
assert(animation != nil, "add animation in UITabBarItem")
|
||||
if animation != nil {
|
||||
animation.playAnimation(icon, textLabel: textLabel)
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
||||
func deselectAnimation(icon: UIImageView, textLabel: UILabel) {
|
||||
if animation != nil {
|
||||
animation.deselectAnimation(icon, textLabel: textLabel, defaultTextColor: textColor)
|
||||
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
|
||||
|
||||
func selectedState(icon: UIImageView, textLabel: UILabel) {
|
||||
if animation != nil {
|
||||
animation.selectedState(icon, textLabel: textLabel)
|
||||
- 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)
|
||||
}
|
||||
}
|
||||
|
||||
class RAMAnimatedTabBarController: UITabBarController {
|
||||
|
||||
var iconsView: [(icon: UIImageView, textLabel: UILabel)] = Array()
|
||||
extension RAMAnimatedTabBarController {
|
||||
|
||||
// MARK: life circle
|
||||
/**
|
||||
Change selected color for each UITabBarItem
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
- parameter textSelectedColor: set new color for text
|
||||
- parameter iconSelectedColor: set new color for icon
|
||||
*/
|
||||
open func changeSelectedColor(_ textSelectedColor: UIColor, iconSelectedColor: UIColor) {
|
||||
|
||||
let containers = createViewContainers()
|
||||
let items = tabBar.items as! [RAMAnimatedTabBarItem]
|
||||
for index in 0 ..< items.count {
|
||||
let item = items[index]
|
||||
|
||||
createCustomIcons(containers)
|
||||
item.animation.textSelectedColor = textSelectedColor
|
||||
item.animation.iconSelectedColor = iconSelectedColor
|
||||
|
||||
|
||||
}
|
||||
|
||||
// MARK: create methods
|
||||
|
||||
func createCustomIcons(containers : NSDictionary) {
|
||||
|
||||
if let items = tabBar.items {
|
||||
let itemsCount = tabBar.items!.count as Int - 1
|
||||
var index = 0
|
||||
for item in self.tabBar.items as! [RAMAnimatedTabBarItem] {
|
||||
|
||||
assert(item.image != nil, "add image icon in UITabBarItem")
|
||||
|
||||
var container : UIView = containers["container\(itemsCount-index)"] as! UIView
|
||||
container.tag = index
|
||||
|
||||
var icon = UIImageView(image: item.image)
|
||||
icon.setTranslatesAutoresizingMaskIntoConstraints(false)
|
||||
icon.tintColor = UIColor.clearColor()
|
||||
|
||||
// text
|
||||
var textLabel = UILabel()
|
||||
textLabel.text = item.title
|
||||
textLabel.backgroundColor = UIColor.clearColor()
|
||||
textLabel.textColor = item.textColor
|
||||
textLabel.font = UIFont.systemFontOfSize(10)
|
||||
textLabel.textAlignment = NSTextAlignment.Center
|
||||
textLabel.setTranslatesAutoresizingMaskIntoConstraints(false)
|
||||
|
||||
container.addSubview(icon)
|
||||
createConstraints(icon, container: container, size: item.image!.size, yOffset: -5)
|
||||
|
||||
container.addSubview(textLabel)
|
||||
let textLabelWidth = tabBar.frame.size.width / CGFloat(tabBar.items!.count) - 5.0
|
||||
createConstraints(textLabel, container: container, size: CGSize(width: textLabelWidth , height: 10), yOffset: 16)
|
||||
|
||||
let iconsAndLabels = (icon:icon, textLabel:textLabel)
|
||||
iconsView.append(iconsAndLabels)
|
||||
|
||||
if 0 == index { // selected first elemet
|
||||
item.selectedState(icon, textLabel: textLabel)
|
||||
}
|
||||
|
||||
item.image = nil
|
||||
item.title = ""
|
||||
index++
|
||||
if item == tabBar.selectedItem {
|
||||
item.selectedState()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func createConstraints(view:UIView, container:UIView, size:CGSize, yOffset:CGFloat) {
|
||||
/**
|
||||
Selected UITabBarItem with animaton
|
||||
|
||||
var constX = NSLayoutConstraint(item: view,
|
||||
attribute: NSLayoutAttribute.CenterX,
|
||||
relatedBy: NSLayoutRelation.Equal,
|
||||
toItem: container,
|
||||
attribute: NSLayoutAttribute.CenterX,
|
||||
multiplier: 1,
|
||||
constant: 0)
|
||||
container.addConstraint(constX)
|
||||
|
||||
var constY = NSLayoutConstraint(item: view,
|
||||
attribute: NSLayoutAttribute.CenterY,
|
||||
relatedBy: NSLayoutRelation.Equal,
|
||||
toItem: container,
|
||||
attribute: NSLayoutAttribute.CenterY,
|
||||
multiplier: 1,
|
||||
constant: yOffset)
|
||||
container.addConstraint(constY)
|
||||
|
||||
var constW = NSLayoutConstraint(item: view,
|
||||
attribute: NSLayoutAttribute.Width,
|
||||
relatedBy: NSLayoutRelation.Equal,
|
||||
toItem: nil,
|
||||
attribute: NSLayoutAttribute.NotAnAttribute,
|
||||
multiplier: 1,
|
||||
constant: size.width)
|
||||
view.addConstraint(constW)
|
||||
|
||||
var constH = NSLayoutConstraint(item: view,
|
||||
attribute: NSLayoutAttribute.Height,
|
||||
relatedBy: NSLayoutRelation.Equal,
|
||||
toItem: nil,
|
||||
attribute: NSLayoutAttribute.NotAnAttribute,
|
||||
multiplier: 1,
|
||||
constant: size.height)
|
||||
view.addConstraint(constH)
|
||||
}
|
||||
|
||||
func createViewContainers() -> NSDictionary {
|
||||
|
||||
var containersDict = NSMutableDictionary()
|
||||
let itemsCount : Int = tabBar.items!.count as Int - 1
|
||||
|
||||
for index in 0...itemsCount {
|
||||
var viewContainer = createViewContainer()
|
||||
containersDict.setValue(viewContainer, forKey: "container\(index)")
|
||||
- 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")
|
||||
}
|
||||
|
||||
var keys = containersDict.allKeys
|
||||
let containerFrom = items[from].iconView?.icon.superview
|
||||
containerFrom?.backgroundColor = items[from].bgDefaultColor
|
||||
items[from].deselectAnimation()
|
||||
|
||||
var formatString = "H:|-(0)-[container0]"
|
||||
for index in 1...itemsCount {
|
||||
formatString += "-(0)-[container\(index)(==container0)]"
|
||||
}
|
||||
formatString += "-(0)-|"
|
||||
var constranints = NSLayoutConstraint.constraintsWithVisualFormat(formatString,
|
||||
options:NSLayoutFormatOptions.DirectionRightToLeft,
|
||||
metrics: nil,
|
||||
views: containersDict as [NSObject : AnyObject])
|
||||
view.addConstraints(constranints)
|
||||
|
||||
return containersDict
|
||||
}
|
||||
|
||||
func createViewContainer() -> UIView {
|
||||
var viewContainer = UIView();
|
||||
viewContainer.backgroundColor = UIColor.clearColor() // for test
|
||||
viewContainer.setTranslatesAutoresizingMaskIntoConstraints(false)
|
||||
view.addSubview(viewContainer)
|
||||
|
||||
// add gesture
|
||||
var tapGesture = UITapGestureRecognizer(target: self, action: "tapHandler:")
|
||||
tapGesture.numberOfTouchesRequired = 1
|
||||
viewContainer.addGestureRecognizer(tapGesture)
|
||||
|
||||
// add constrains
|
||||
var constY = NSLayoutConstraint(item: viewContainer,
|
||||
attribute: NSLayoutAttribute.Bottom,
|
||||
relatedBy: NSLayoutRelation.Equal,
|
||||
toItem: view,
|
||||
attribute: NSLayoutAttribute.Bottom,
|
||||
multiplier: 1,
|
||||
constant: 0)
|
||||
|
||||
view.addConstraint(constY)
|
||||
|
||||
var 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) {
|
||||
|
||||
let items = tabBar.items as! [RAMAnimatedTabBarItem]
|
||||
|
||||
let currentIndex = gesture.view!.tag
|
||||
if selectedIndex != currentIndex {
|
||||
var animationItem : RAMAnimatedTabBarItem = items[currentIndex]
|
||||
var icon = iconsView[currentIndex].icon
|
||||
var textLabel = iconsView[currentIndex].textLabel
|
||||
animationItem.playAnimation(icon, textLabel: textLabel)
|
||||
|
||||
let deselelectIcon = iconsView[selectedIndex].icon
|
||||
let deselelectTextLabel = iconsView[selectedIndex].textLabel
|
||||
let deselectItem = items[selectedIndex]
|
||||
deselectItem.deselectAnimation(deselelectIcon, textLabel: deselelectTextLabel)
|
||||
|
||||
selectedIndex = gesture.view!.tag
|
||||
}
|
||||
}
|
||||
|
||||
func setSelectIndex(#from:Int,to:Int) {
|
||||
self.selectedIndex = to
|
||||
let items = self.tabBar.items as! [RAMAnimatedTabBarItem]
|
||||
items[from].deselectAnimation(iconsView[from].icon, textLabel: iconsView[from].textLabel)
|
||||
items[to].playAnimation(iconsView[to].icon, textLabel: iconsView[to].textLabel)
|
||||
let containerTo = items[to].iconView?.icon.superview
|
||||
containerTo?.backgroundColor = items[to].bgSelectedColor
|
||||
items[to].playAnimation()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
// RAMBadge.swift
|
||||
//
|
||||
// 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
|
||||
|
||||
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
|
||||
|
||||
// constraints
|
||||
createSizeConstraints(frame.size)
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
internal func createSizeConstraints(_ size: CGSize) {
|
||||
let widthConstraint = NSLayoutConstraint(
|
||||
item: self,
|
||||
attribute: .width,
|
||||
relatedBy: .greaterThanOrEqual,
|
||||
toItem: nil,
|
||||
attribute: .notAnAttribute,
|
||||
multiplier: 1,
|
||||
constant: size.width)
|
||||
addConstraint(widthConstraint)
|
||||
|
||||
let heightConstraint = NSLayoutConstraint(
|
||||
item: self,
|
||||
attribute: .height,
|
||||
relatedBy: .equal,
|
||||
toItem: nil,
|
||||
attribute: NSLayoutConstraint.Attribute.notAnAttribute,
|
||||
multiplier: 1,
|
||||
constant: size.height)
|
||||
addConstraint(heightConstraint)
|
||||
}
|
||||
|
||||
fileprivate func configureNumberLabel() {
|
||||
textAlignment = .center
|
||||
font = .systemFont(ofSize: 13)
|
||||
textColor = .white
|
||||
}
|
||||
|
||||
// PRAGMA: public
|
||||
|
||||
open func addBadgeOnView(_ onView: UIView) {
|
||||
|
||||
onView.addSubview(self)
|
||||
|
||||
// create constraints
|
||||
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,29 +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)
|
||||
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)
|
||||
}
|
||||
|
||||
class RAMItemAnimation: NSObject, RAMItemAnimationProtocol {
|
||||
/// Base class for UITabBarItems animation
|
||||
open class RAMItemAnimation: NSObject, RAMItemAnimationProtocol {
|
||||
|
||||
@IBInspectable var duration : CGFloat = 0.5;
|
||||
@IBInspectable var textSelectedColor: UIColor = UIColor.blackColor()
|
||||
@IBInspectable var iconSelectedColor: UIColor!
|
||||
// MARK: constants
|
||||
|
||||
func playAnimation(icon : UIImageView, textLabel : UILabel) {
|
||||
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"
|
||||
}
|
||||
}
|
||||
|
||||
func deselectAnimation(icon : UIImageView, textLabel : UILabel, defaultTextColor : UIColor) {
|
||||
// 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")
|
||||
}
|
||||
|
||||
func selectedState(icon: UIImageView, textLabel : UILabel) {
|
||||
/**
|
||||
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")
|
||||
}
|
||||
|
||||
/**
|
||||
(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,11 +3,11 @@
|
||||
<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>
|
||||
<string>com.Ramotion.$(PRODUCT_NAME:rfc1034identifier)</string>
|
||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</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,76 +7,176 @@
|
||||
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 /* RAMTransitionItemAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE41469C1A1B944D0037F03C /* RAMTransitionItemAnimation.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 */
|
||||
CE4146721A1B923D0037F03C /* RAMAnimatedTabBarDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RAMAnimatedTabBarDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
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>"; };
|
||||
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 /* RAMTransitionItemAnimation.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RAMTransitionItemAnimation.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 = (
|
||||
84BC64211C22E4C800B89B79 /* RAMBadge.swift */,
|
||||
);
|
||||
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>";
|
||||
@@ -84,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>";
|
||||
@@ -113,27 +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 */,
|
||||
);
|
||||
@@ -164,7 +252,7 @@
|
||||
CE41469B1A1B944D0037F03C /* TransitionAniamtions */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CE41469C1A1B944D0037F03C /* RAMTransitionItemAnimation.swift */,
|
||||
CE41469C1A1B944D0037F03C /* RAMTransitionItemAnimations.swift */,
|
||||
);
|
||||
path = TransitionAniamtions;
|
||||
sourceTree = "<group>";
|
||||
@@ -180,7 +268,7 @@
|
||||
CE90A8441A1CB1A2002D8931 /* Resources */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CE90A8451A1CB1E0002D8931 /* ToolsAnimation.plist */,
|
||||
849507001D05772B0005EC1A /* ToolsAnimation.plist */,
|
||||
);
|
||||
path = Resources;
|
||||
sourceTree = "<group>";
|
||||
@@ -203,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" */;
|
||||
@@ -211,56 +346,48 @@
|
||||
CE41466E1A1B923D0037F03C /* Sources */,
|
||||
CE41466F1A1B923D0037F03C /* Frameworks */,
|
||||
CE4146701A1B923D0037F03C /* Resources */,
|
||||
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 = {
|
||||
LastUpgradeCheck = 0610;
|
||||
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;
|
||||
DevelopmentTeam = 34MUF9YXTA;
|
||||
};
|
||||
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,
|
||||
@@ -272,33 +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 PBXSourcesBuildPhase section */
|
||||
5A1F33B52126AA3D004B8735 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
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;
|
||||
};
|
||||
CE41466E1A1B923D0037F03C /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
@@ -306,30 +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 /* RAMTransitionItemAnimation.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 */
|
||||
|
||||
@@ -353,28 +516,149 @@
|
||||
/* 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";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
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",
|
||||
@@ -387,11 +671,12 @@
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
|
||||
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;
|
||||
@@ -400,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";
|
||||
@@ -418,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 = 7.0;
|
||||
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;
|
||||
};
|
||||
@@ -435,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 = 7.0;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.ramotion.dev;
|
||||
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 = 7.0;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.ramotion.dev;
|
||||
PRODUCT_NAME = "Animated Tab Bar";
|
||||
PROVISIONING_PROFILE = "";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
CE4146951A1B923D0037F03C /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(SDKROOT)/Developer/Library/Frameworks",
|
||||
"$(inherited)",
|
||||
);
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"DEBUG=1",
|
||||
"$(inherited)",
|
||||
);
|
||||
INFOPLIST_FILE = RAMAnimatedTabBarDemoTests/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
||||
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 = (
|
||||
"$(SDKROOT)/Developer/Library/Frameworks",
|
||||
"$(inherited)",
|
||||
);
|
||||
INFOPLIST_FILE = RAMAnimatedTabBarDemoTests/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
||||
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 = (
|
||||
@@ -515,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>
|
||||
@@ -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>IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded</key>
|
||||
<false/>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,99 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "1020"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "84D4B79C1DB0D35500EE38C6"
|
||||
BuildableName = "RAMAnimatedTabBarController.framework"
|
||||
BlueprintName = "RAMAnimatedTabBarController"
|
||||
ReferencedContainer = "container:RAMAnimatedTabBarDemo.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||
<Testables>
|
||||
<TestableReference
|
||||
skipped = "NO">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "5A1F33B82126AA3D004B8735"
|
||||
BuildableName = "AnimatedTabBarTests.xctest"
|
||||
BlueprintName = "AnimatedTabBarTests"
|
||||
ReferencedContainer = "container:RAMAnimatedTabBarDemo.xcodeproj">
|
||||
</BuildableReference>
|
||||
</TestableReference>
|
||||
</Testables>
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "84D4B79C1DB0D35500EE38C6"
|
||||
BuildableName = "RAMAnimatedTabBarController.framework"
|
||||
BlueprintName = "RAMAnimatedTabBarController"
|
||||
ReferencedContainer = "container:RAMAnimatedTabBarDemo.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
debugServiceExtension = "internal"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "84D4B79C1DB0D35500EE38C6"
|
||||
BuildableName = "RAMAnimatedTabBarController.framework"
|
||||
BlueprintName = "RAMAnimatedTabBarController"
|
||||
ReferencedContainer = "container:RAMAnimatedTabBarDemo.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
buildConfiguration = "Release"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "84D4B79C1DB0D35500EE38C6"
|
||||
BuildableName = "RAMAnimatedTabBarController.framework"
|
||||
BlueprintName = "RAMAnimatedTabBarController"
|
||||
ReferencedContainer = "container:RAMAnimatedTabBarDemo.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
||||
@@ -13,34 +13,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
|
||||
var window: UIWindow?
|
||||
|
||||
|
||||
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
|
||||
// Override point for customization after application launch.
|
||||
public func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func applicationWillResignActive(application: UIApplication) {
|
||||
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
|
||||
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
|
||||
}
|
||||
|
||||
func applicationDidEnterBackground(application: UIApplication) {
|
||||
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
|
||||
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
|
||||
}
|
||||
|
||||
func applicationWillEnterForeground(application: UIApplication) {
|
||||
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
|
||||
}
|
||||
|
||||
func applicationDidBecomeActive(application: UIApplication) {
|
||||
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
|
||||
}
|
||||
|
||||
func applicationWillTerminate(application: UIApplication) {
|
||||
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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,52 +1,43 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6250" systemVersion="14B25" 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="6244"/>
|
||||
<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="146" y="150" 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" constant="-20" id="1l9-FQ-w0o"/>
|
||||
<constraint firstAttribute="centerY" secondItem="UxN-OP-GHb" secondAttribute="centerY" constant="114" 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"/>
|
||||
@@ -59,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="RAMFlipLeftTransitionItemAniamtions" 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>
|
||||
@@ -114,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>
|
||||
@@ -164,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"/>
|
||||
@@ -186,48 +154,56 @@
|
||||
<!--Item4-->
|
||||
<scene sceneID="ttZ-oS-sRQ">
|
||||
<objects>
|
||||
<viewController id="eCt-4k-9Vu" 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="-4" y="580" width="190.5" height="30"/>
|
||||
<state key="normal" title="Show Badge"/>
|
||||
<connections>
|
||||
<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="188.5" y="580" width="190.5" height="30"/>
|
||||
<state key="normal" title="Hide Badge"/>
|
||||
<connections>
|
||||
<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 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="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 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"/>
|
||||
@@ -241,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 |
@@ -7,7 +7,7 @@
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>$(EXECUTABLE_NAME)</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.ramotion.developer</string>
|
||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -10,16 +10,16 @@ import UIKit
|
||||
|
||||
class ViewController: UIViewController {
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
// Do any additional setup after loading the view, typically from a nib.
|
||||
var index: NSInteger = 0
|
||||
|
||||
// PRAGMA: actions
|
||||
@IBAction func showBadgeHandelr(_: AnyObject) {
|
||||
// example for showing badges
|
||||
index += 1
|
||||
tabBarItem.badgeValue = "\(index)"
|
||||
}
|
||||
|
||||
override func didReceiveMemoryWarning() {
|
||||
super.didReceiveMemoryWarning()
|
||||
// Dispose of any resources that can be recreated.
|
||||
@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,22 +1,57 @@
|
||||
# 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>
|
||||
|
||||
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=...):
|
||||
<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>
|
||||
|
||||
Screencast from our Demo
|
||||
<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://github.com/Ramotion/animated-tab-bar)
|
||||
[](https://developer.apple.com/swift/)
|
||||
[](http://twitter.com/Ramotion)
|
||||
[](https://travis-ci.org/Ramotion/animated-tab-bar)
|
||||
[](https://paypal.me/Ramotion)
|
||||
|
||||
## Requirements
|
||||
|
||||
- iOS 7.0+
|
||||
- Xcode 6.1
|
||||
- iOS 9.0+
|
||||
- Xcode 10.2
|
||||
|
||||
## Installation
|
||||
|
||||
Just add the RAMAnimatedTabBarController folder to your project.
|
||||
|
||||
or use [CocoaPods](https://cocoapods.org) with Podfile:
|
||||
``` ruby
|
||||
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.
|
||||
@@ -27,49 +62,49 @@ Just add the RAMAnimatedTabBarController folder to your project.
|
||||
|
||||
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
|
||||
}
|
||||
```
|
||||
@@ -77,34 +112,52 @@ Just add the RAMAnimatedTabBarController folder to your project.
|
||||
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 Us](http://ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=animated-tab-bar)
|
||||
|
||||
[Ramotion](http://ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=animated-tab-bar) is an iPhone app design and development company. We are ready for new interesting iOS app development projects.
|
||||
|
||||
Follow us on [Twitter](http://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();
|
||||
});
|
||||
|
After Width: | Height: | Size: 16 KiB |