All Projects → robertherdzik → Rhplaceholder

robertherdzik / Rhplaceholder

Licence: mit
Show pleasant loading view for your users 😍

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Rhplaceholder

Skeletonview
☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting
Stars: ✭ 10,804 (+4439.5%)
Mutual labels:  facebook, instagram, ios-ui, ios-animation, placeholder, loading-animations
Nvactivityindicatorview
A collection of awesome loading animations
Stars: ✭ 10,031 (+4114.71%)
Mutual labels:  ios-lib, cocoapods, ios-ui, ios-animation, loader, loading-animations
Ocskeleton
[OCSkeleton] - Make your loading view a little difference.
Stars: ✭ 184 (-22.69%)
Mutual labels:  loader, placeholder, gradient, loading-animations
Skeletonui
☠️ Elegant skeleton loading animation in SwiftUI and Combine
Stars: ✭ 275 (+15.55%)
Mutual labels:  cocoapods, placeholder, gradient
Iosproject
IOS综合项目,完善的框架,路由模块化设计,集成科大讯飞SDK方便iOS基本输入控件实现语音辅助输入,UI效果参照京东APP,JS与OC交互,ionic跨平台开发,MQTT 协议,即时通讯协议,视屏播放,跑马灯效果 仿美团地图定位,城市收索, 友盟分享,基础动画 增加FCUIID帮助类,引导页功能模块,照片上传 ,UIView自定义导航栏,文件下载,Masonry 案例,fmdb,数据库,sqlite,百度地图,二维码,照片上传,照片上传有进度,列表倒计时,H5和原生交互,自定义各种弹框,常见表单类型,人脸识别,列表加载图片,列表拖拽,日历操作,导航条渐变,核心动画,动画特效等等
Stars: ✭ 291 (+22.27%)
Mutual labels:  ios-lib, ios-ui, ios-animation
Tabanimated
A skeleton screen framework based on native for iOS. (一个由iOS原生组件映射出骨架屏的框架,包含快速植入,低耦合,兼容复杂视图等特点,提供国内主流骨架屏动画的加载方案,同时支持上拉加载更多、自定制动画。)
Stars: ✭ 2,909 (+1122.27%)
Mutual labels:  ios-animation, placeholder, loading-animations
Wobbly
(Animate CSS) animations for iOS. An easy to use library of iOS animations. As easy to use as an easy thing.
Stars: ✭ 150 (-36.97%)
Mutual labels:  cocoapods, ios-ui, ios-animation
Kdintroview
Stars: ✭ 300 (+26.05%)
Mutual labels:  ios-lib, ios-ui, ios-animation
Calendarkit
📅 Calendar for Apple platforms in Swift
Stars: ✭ 2,049 (+760.92%)
Mutual labels:  ios-lib, cocoapods, ios-ui
Gradientloadingbar
⌛️A customizable animated gradient loading bar.
Stars: ✭ 569 (+139.08%)
Mutual labels:  cocoapods, gradient, loading-animations
Vue Content Loading
Vue component to easily build (or use presets) SVG loading cards Facebook like.
Stars: ✭ 729 (+206.3%)
Mutual labels:  facebook, placeholder, loading-animations
Listplaceholder
ListPlaceholder is a swift library allows you to easily add facebook style animated loading placeholder to your tableviews or collection views.
Stars: ✭ 511 (+114.71%)
Mutual labels:  cocoapods, facebook, placeholder
Mycoretextlabel
图文混排 , 实现图片文字混排 , 可显示常规链接比如网址,@,#话题#,手机号 , 邮箱号等 , 可以自定义链接字,设置关键字高亮等功能 . 适用于微博,微信,IM聊天对话等场景 . 实现这些功能仅用了几百行代码,耦合性也较低
Stars: ✭ 192 (-19.33%)
Mutual labels:  ios-lib, ios-ui, ios-animation
Pvview
A small library that helps you to make an amazing parallax view
Stars: ✭ 227 (-4.62%)
Mutual labels:  ios-lib, ios-ui, ios-animation
Cminputview
💪之前代码是基于UITextView进行的封装,侵入性较强,不方便使用,现使用Category重构代码,支持Cocoapods
Stars: ✭ 149 (-37.39%)
Mutual labels:  cocoapods, placeholder
Pow assent
Multi-provider authentication for your Pow enabled app
Stars: ✭ 236 (-0.84%)
Mutual labels:  facebook, instagram
Shift
Animate gradient changes with time or motion for iOS Swift
Stars: ✭ 165 (-30.67%)
Mutual labels:  ios-animation, gradient
Eureka
Elegant iOS form builder in Swift
Stars: ✭ 11,345 (+4666.81%)
Mutual labels:  cocoapods, ios-ui
Streamwall
Display a mosaic of livestreams. Built for streaming.
Stars: ✭ 160 (-32.77%)
Mutual labels:  facebook, instagram
React Loading Skeleton
Create skeleton screens that automatically adapt to your app!
Stars: ✭ 2,533 (+964.29%)
Mutual labels:  placeholder, loading-animations

Build Status Version License Platform Language Twitter

RHPlaceholder 💾

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 💥! 🍕

Play with it 😎

Installation

You can install library using Cocoapods:

pod 'RHPlaceholder'

or using Carthage:

add

github "robertherdzik/RHPlaceholder"

to your Cartfile and perform carthage update --platform iOS.

Usage

WOW... it is soo easy to use 🙊! Base integration with your storyboard VC will take couple minutes 💥

Base Usage

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
    }
}

List of available animatotrs:

(default) InstaLayerAnimatorGradient

BackAndForthLayerAnimatorGradient BackAndForthLayerAnimatorGradient BackAndForthLayerAnimatorGradient

Customization

You can add your own Animators, by conforming to the LayerAnimating protocol and passing your new Animator as a param to the Placeholder init.

Swift support

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

Check the Demo project

Please check out the demo project, you can see there how Library has been implemented in details.

Layout Inspiration

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 😦...

Assets


  • Great 😍 tab bar icons from:
Icons made by Freepik from www.flaticon.com is licensed by CC 3.0 BY

  • Cool 😎 profile icon from:
Icons made by Freepik from www.flaticon.com is licensed by CC 3.0 BY
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].