All Projects → BeauNouvelle → Shimmerswift

BeauNouvelle / Shimmerswift

Licence: unlicense
A swift implementation of Facebooks shimmer effect.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Shimmerswift

Thaumictinkerer
A Spiritual Successor to the Elemental Tinkerer mod. This time Thaumcraft flavoured.
Stars: ✭ 141 (-1.4%)
Mutual labels:  hacktoberfest
Lacmus
Lacmus is a cross-platform application that helps to find people who are lost in the forest using computer vision and neural networks.
Stars: ✭ 142 (-0.7%)
Mutual labels:  hacktoberfest
Android Password Store
Android application compatible with ZX2C4's Pass command line application
Stars: ✭ 1,912 (+1237.06%)
Mutual labels:  hacktoberfest
Byte Sized Code
A collection of Jupyter notebooks for learning Python from the ground up.
Stars: ✭ 142 (-0.7%)
Mutual labels:  hacktoberfest
Python Sc2
A StarCraft II bot api client library for Python 3
Stars: ✭ 141 (-1.4%)
Mutual labels:  hacktoberfest
Tedivms Flask
Flask starter app with celery, bootstrap, and docker environment
Stars: ✭ 142 (-0.7%)
Mutual labels:  hacktoberfest
Ember Model Validator
ember-cli addon adds validation support to your Ember-Data models.
Stars: ✭ 141 (-1.4%)
Mutual labels:  hacktoberfest
Vscode Stylelint
Official Visual Studio Code extension to lint CSS/SCSS/Less with stylelint
Stars: ✭ 141 (-1.4%)
Mutual labels:  hacktoberfest
Ape Ecs
Entity-Component-System library for JavaScript.
Stars: ✭ 137 (-4.2%)
Mutual labels:  hacktoberfest
Magick.net
The .NET library for ImageMagick
Stars: ✭ 2,071 (+1348.25%)
Mutual labels:  hacktoberfest
Kotlin Gradle Plugin Template
🐘 A template to let you started with custom Gradle Plugins + Kotlin in a few seconds
Stars: ✭ 141 (-1.4%)
Mutual labels:  hacktoberfest
2019 Ncov Frontend
🌏 Map, data and timeline of coronavirus (COVID-19)
Stars: ✭ 141 (-1.4%)
Mutual labels:  hacktoberfest
Vue Pure Lightbox
Very simple lightbox plugin (without any dependencies) for Vuejs 🌅
Stars: ✭ 142 (-0.7%)
Mutual labels:  hacktoberfest
So Nice
Small Web interface to control iTunes, Spotify, Rdio, MPD, Rhythmbox, Amarok and XMMS2. ♫
Stars: ✭ 141 (-1.4%)
Mutual labels:  hacktoberfest
Actionsflow
The free Zapier/IFTTT alternative for developers to automate your workflows based on Github actions
Stars: ✭ 2,243 (+1468.53%)
Mutual labels:  hacktoberfest
Netcdf Fortran
Official GitHub repository for netCDF-Fortran libraries, which depend on the netCDF C library. Install the netCDF C library first.
Stars: ✭ 141 (-1.4%)
Mutual labels:  hacktoberfest
Smoke
💨 Simple yet powerful file-based mock server with recording abilities
Stars: ✭ 142 (-0.7%)
Mutual labels:  hacktoberfest
Ultimate Java Resources
Java programming. All in one Java Resource for learning. Updated every day and up to date. All Algorithms and DS along with Development in Java. Beginner to Advanced. Join the Discord link.
Stars: ✭ 143 (+0%)
Mutual labels:  hacktoberfest
Almond Server
The home server version of Almond
Stars: ✭ 142 (-0.7%)
Mutual labels:  hacktoberfest
Webpack Require From
Webpack plugin that allows to configure path or URL for fetching dynamic imports
Stars: ✭ 142 (-0.7%)
Mutual labels:  hacktoberfest

ShimmerSwift

A swift implementation of Facebooks shimmer effect.

demo

✅ Requirements

  • Swift 5.1+
  • iOS 9.0+

👨‍💻 Installation

Manual

Download the .zip from this repo and drag the Shimmer folder into your project.

Carthage

Add github "BeauNouvelle/ShimmerSwift" to your Cartfile.

Cocoapods

Add pod 'ShimmerSwift' to your Podfile.

SPM

In Xcode 11 you can add packages by going to File > Swift Packages > Add Package Dependency. Copy in this repos URL and go from there.

👩‍🍳 Useage

Shimmer is super easy to get started with.

Simply create a ShimmeringView or ShimmeringLayer and add your content.

// Setup ShimmeringView
let shimmerView = ShimmeringView(frame: self.view.bounds)
self.view.addSubview(shimmerView)

// Setup the view you want shimmered
let label = UILabel(frame: shimmerView.bounds)
label.text = "This is my shimmering text"

// Add the view you want shimmered to the `shimmerView`
shimmerView.contentView = label

// Start shimmering
shimmerView.isShimmering = true

// To stop shimmering.
shimmerView.isShimmering = false

👩‍🎨 Customization

All customizable properties are well documented in code, and are reproduced below.


contentView

The content view to be shimmered

contentView: UIView

isShimmering

Set to true to start shimmer animation, and false to stop. Detaults to false.

isShimmering: Bool

shimmerSpeed

The speed of the shimmer animation in points per second. The higher the number, the faster the animation.

Defaults to 230.

shimmerSpeed: CGFloat

shimmerHighlightLength

The highlight length of the shimmer. Range of [0,1], defaults to 1.0.

shimmerHighlightLength: CGFloat

shimmerDirection

The direction of the shimmer animation. Defaults to .right, which will run the animation from left to right.

shimmerDirection: Shimmer.Direction

shimmerPauseDuration

The time interval between shimmers in seconds. Defaults to 0.4.

shimmerPauseDuration: CFTimeInterval

shimmerAnimationOpacity

The opacity of the content during a shimmer. Defaults to 0.5.

shimmerAnimationOpacity: CGFloat

shimmerOpacity

The opacity of the content when not shimmering. Defaults to 1.0.

shimmerOpacity: CGFloat

shimmerBeginFadeDuration

The duration of the fade used when the shimmer begins. Defaults to 0.1.

shimmerBeginFadeDuration: CFTimeInterval

shimmerEndFadeDuration

The duration of the fade used when the shimmer ends. Defaults to 0.3.

shimmerEndFadeDuration: CFTimeInterval
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].