Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Rhplaceholder | 237 | 1 | a year ago | 5 | October 06, 2019 | 2 | mit | Makefile | ||
Show pleasant loading view for your users 😍 | ||||||||||
Bottomactionsheet | 21 | 3 years ago | 5 | September 29, 2019 | 1 | mit | Makefile | |||
it picker view like keyboard view with animation | ||||||||||
Led Cube | 20 | 7 years ago | gpl-3.0 | Eagle | ||||||
8x8x8 LED Cube, AtMega32 | ||||||||||
Build | 18 | 5 years ago | 7 | apache-2.0 | Makefile | |||||
25th Hour | 15 | 4 years ago | mit | Makefile | ||||||
🌄 25th Hour — A dynamic desktop wallpaper for macOS 10.14+ | ||||||||||
Custom_login_ui | 11 | 4 years ago | mit | Makefile | ||||||
Flutter screen with a nice login UI with awesome animations. | ||||||||||
Plymouth Theme Sega | 9 | 4 years ago | bsd-3-clause | Makefile | ||||||
Generate a Plymouth theme to spoof the SEGA 'glint' animation using a custom logo. | ||||||||||
Nmanimatedtabbaritem | 9 | 1 | 4 years ago | 4 | July 21, 2019 | mit | Makefile | |||
A UI library to Animate UITabBar Items | ||||||||||
Fullingswiper | 8 | 7 years ago | 3 | April 15, 2016 | mit | Makefile | ||||
Particleanimation | 6 | 4 years ago | mit | C++ | ||||||
Just a cool animation of particles exploding in a Big Bang style. |
Because traditional loading view
like UIActivityIndicatorView
or similar one are no longer so trendy (Facebook or Instagram apps are moving away from these approaches), I decided to create very simple library which will give you oportunity to have Facebook or Instagram 'view loading state' in your great project without big effort 💥! 🍕
You can install library using Cocoapods:
pod 'RHPlaceholder'
or using Carthage:
add
github "robertherdzik/RHPlaceholder"
to your Cartfile and perform carthage update --platform iOS.
WOW... it is soo easy to use 🙊! Base integration with your storyboard VC will take couple minutes 💥
just create instance const of Placeholder
in your ViewController
:
private let placeholderMarker = Placeholder() // By default you will have Insta like gradient animation
bear in mind, that you can choose between couple of predefined animations (like e.g. RainbowAnimatorGradient):
private let placeholderMarker = Placeholder(layerAnimator: RainbowAnimatorGradient.self)
... and then just bind up library with your views which needs to be animated:
private func addPlaceholder() {
let viewElements: [UIView] = [
name,
surname,
age,
email,
birthDate
]
placeholderMarker.register(viewElements)
}
call addPlaceholder()
method in viewDidLoad()
.
Boom 😲 library has been associated with your views 👏
all what left, is to controll showing 'loading state' animation on your views using startAnimation()
and remove()
func fetchUserData() {
placeholderMarker.startAnimation()
apiManager.fetchUser() { [weak self] user in
self?.placeholderMarker.remove()
// .. rest of the method
}
}
default
) InstaLayerAnimatorGradient
BackAndForthLayerAnimatorGradient | BlinkAnimator | RainbowAnimatorGradient |
---|---|---|
![]() |
![]() |
![]() |
You can add your own Animators, by conforming to the LayerAnimating
protocol and passing your new Animator as a param to the Placeholder
init.
Library ver | Swift ver | Note |
---|---|---|
0.0.3 | 4.1 | Very early version, API may change |
0.0.5 | 4.2 | Very early version, API may change |
0.0.6 | 5.0 | Very early version, API may change |
Please check out the demo project, you can see there how Library has been implemented in details.
Layout inspiration has been taken from one of the Dribbble projects, unfortunately I cannot find now this project anymore, because of that I cannot annotate creator in here 😦...