## Updated for Swift 4.2
Requires Xcode 10 and Swift 4.2.
## Installation
Drop in the Spring folder to your Xcode project (make sure to enable "Copy items if needed" and "Create groups").
Or via CocoaPods:
```
use_frameworks!
pod 'Spring', :git => 'https://github.com/MengTo/Spring.git'
```
## Usage with Storyboard
In Identity Inspector, connect the UIView to SpringView Class and set the animation properties in Attribute Inspector.
![](http://cl.ly/image/241o0G1G3S36/download/springsetup.jpg)
## Usage with Code
layer.animation = "squeezeDown"
layer.animate()
## Demo The Animations
![](http://cl.ly/image/1n1E2j3W3y24/springscreen.jpg)
## Chaining Animations
layer.y = -50
animateToNext {
layer.animation = "fall"
layer.animateTo()
}
## Functions
animate()
animateNext { ... }
animateTo()
animateToNext { ... }
## Animation
shake
pop
morph
squeeze
wobble
swing
flipX
flipY
fall
squeezeLeft
squeezeRight
squeezeDown
squeezeUp
slideLeft
slideRight
slideDown
slideUp
fadeIn
fadeOut
fadeInLeft
fadeInRight
fadeInDown
fadeInUp
zoomIn
zoomOut
flash
## Curve
spring
linear
easeIn
easeOut
easeInOut
## Properties
force
duration
delay
damping
velocity
repeatCount
scale
x
y
rotate
\* Not all properties work together. Play with the demo app.
## Autostart
Allows you to animate without code. Don't need to use this if you plan to start the animation in code.
## Autohide
Saves you the hassle of adding a line "layer.alpha = 0" in viewDidLoad().
## Known issue
Animations won't autostart when view is reached via performSegueWithIdentifier.
## Tutorials
- Tutorials available on [Design+Code](https://designcode.io/swiftapp).
- [Integrate Spring to existing Objective-C projects](https://medium.com/ios-apprentice/using-swift-in-objective-c-projects-f7e7a09f8be)
## ChangeLog
- At [ChangeLog](https://github.com/MengTo/Spring/wiki/CHANGELOG) wiki page
## License
Spring is released under the MIT license. See LICENSE for details.
没有合适的资源?快使用搜索试试~ 我知道了~
iOS-多媒体-回弹动画-自定义-7SpringCustome
共135个文件
swift:31个
png:15个
plist:10个
需积分: 5 0 下载量 56 浏览量
2023-05-20
19:48:11
上传
评论
收藏 687KB ZIP 举报
温馨提示
iOS_多媒体_回弹动画_自定义_7SpringCustome
资源推荐
资源详情
资源评论
收起资源包目录
iOS-多媒体-回弹动画-自定义-7SpringCustome (135个子文件)
08767942efb50b50b9a3c79288121cd70a2a9f 58B
13406b586b893f26451af665cae83887231633 249B
19b061fec8bc245518acee6aaa2d4be36419f1 84B
1f9f972af2ebade364efafdbd370c7ac3de23b 133B
2e5a135d52a961322b08ce39810b3a71ac88b2 68B
2fe05df2d5b8dd25124190b4ffb537c344d5c8 248B
3348d87704fa6b151e425325bd52055b823c47 101B
3cc9b8ba4e4ae5c6df5ed5e3f199668b7fead0 68B
46e2df5c16a9a315bebadb2ea39f30febb2880 3KB
490aa1b675b26d5197c6bcdb3c5633d37f112b 5KB
4a164c918651cdd1e11dca5cc62c333f097601 65B
5a4d6031d6f8c18b72dfccff19d8f7b4d5cad0 59B
601a348d3b63b433a845d494790b9fc32d7df8 936B
7e86c2a1454021f1cce792169ba5aeb0720689 95B
8e91aa34f2bd4dc559d9fd235516d63ea91edf 51B
99fe48a454e1f2009dd0d21a0dc1de46a4c543 133B
a36129419f8bd7ad73581cb9f07b8c6eec3fcf 792B
a4ce6a06ffe79452c5a9fd5f6ca47cd6e7b9a1 105B
a5f7144cdefdff3cd41b869a4ae0fe8b00225f 207B
b0b42ec057f4a739bb34e31ea9c8592f3bd3f4 146B
bcf38400d14f257132ac2ae8c09f25b844ba1c 758B
be3b681122de83e380d47b840b7d0486f71f86 540B
COMMIT_EDITMSG 15B
config 137B
d981003d68d0546c4804ac2ff47dd97c6e7921 206B
db8d65fd79fd541b2b7eba75c7378af3448f9c 254B
description 73B
.DS_Store 6KB
.DS_Store 6KB
exclude 40B
fb85c5ce4ed75391b4f2a4e8db35e3c55e7ca7 123KB
Pods-DemoApp-umbrella.h 316B
Spring-umbrella.h 304B
HEAD 171B
HEAD 23B
index 2KB
Contents.json 2KB
Contents.json 2KB
Spring.podspec.json 605B
Contents.json 159B
Contents.json 156B
Contents.json 123B
Contents.json 63B
LICENSE 1KB
Manifest.lock 449B
Podfile.lock 449B
Pods-DemoApp-dummy.m 128B
Spring-dummy.m 116B
Pods-DemoApp-acknowledgements.markdown 1KB
master 171B
master 41B
README.md 2KB
Pods-DemoApp.modulemap 114B
Spring.modulemap 102B
project.pbxproj 40KB
project.pbxproj 18KB
Spring-prefix.pch 195B
loading.pdf 96KB
icon-shape.pdf 4KB
Pods-DemoApp-acknowledgements.plist 2KB
Info.plist 2KB
Pods-DemoApp-Info.plist 828B
Spring-Info.plist 828B
xcschememanagement.plist 550B
xcschememanagement.plist 455B
xcschememanagement.plist 342B
xcschememanagement.plist 342B
IDEWorkspaceChecks.plist 238B
IDEWorkspaceChecks.plist 238B
star.png 124KB
appicon@167.png 41KB
appicon@180.png 29KB
appicon@152.png 22KB
PurpleStar.png 18KB
appicon@120.png 16KB
appicon@120-1.png 16KB
appicon@87.png 9KB
appicon@80.png 8KB
appicon@80-1.png 8KB
appicon@76.png 7KB
appicon@58-1.png 5KB
appicon@58.png 5KB
appicon@40.png 3KB
appicon@29.png 2KB
Podfile 179B
README.sample 177B
Pods-DemoApp-frameworks.sh 8KB
LaunchScreen.storyboard 2KB
Main.storyboard 2KB
Spring.swift 24KB
Misc.swift 9KB
DesignableTabBarController.swift 5KB
KeyboardLayoutConstraint.swift 4KB
DesignableTextField.swift 4KB
TransitionManager.swift 4KB
SpringAnimation.swift 4KB
TransitionZoom.swift 3KB
ImageLoader.swift 3KB
LoadingView.swift 3KB
SpringImageView.swift 3KB
共 135 条
- 1
- 2
资源评论
GotoLevel
- 粉丝: 23
- 资源: 37
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功