Spinner loader components with liquid animation

Overview

LiquidLoader

LiquidLoader is the spinner loader UI components with liquid animation, inspired by Spinner Loader - Gooey light Effect

CI Status Version License Platform [Carthage compatible] (https://github.com/Carthage/Carthage)

GrowCircle

GrowCircle

GrowLine

GrowLine

Usage

let loader = LiquidLoader(frame: loaderFrame, effect: .growCircle(circleColor, 10, 1.0, growColor)) //color, number of circles, duration, growColor.
view.addSubview(loader)

Show/Hide

You can show and hide a loader.

loader.show()
loader.hide()

Effect Type

You can use the following effects.

  • .growCircle
  • .growLine
  • .circle
  • .line

If you want to avoid grow effects, you should use .circle or .line.

Installation

LiquidLoader is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "LiquidLoader"

or, if you use Carthage, add the following line to your Carthage file.

github "yoavlt/LiquidLoader"

License

LiquidLoader is available under the MIT license. See the LICENSE file for more info.

Comments
  • CocoaPods package seems non updated to support Swift 2.2

    CocoaPods package seems non updated to support Swift 2.2

    Using pod installation I had received few unsupported code errors (function "find" as example), that were fixed by using code from current master branch

    opened by ORuban 6
  • stop timer on view removal

    stop timer on view removal

    This PR stops the NSTimer if the view is removed, to help prevent cpu being consumed in the background while not visible. It also cleans up some minor Xcode warnings.

    opened by cowboyrushforth 3
  • Swift3, problem with liquid effect.

    Swift3, problem with liquid effect.

    When I change the default color, then liquid effect stops working ! just a simple circlle moves around !

    growCircle effect does not work for me if I change the default color of backGround circles...

    opened by HappyIosDeveloper 2
  • Swift 3

    Swift 3

    Hello and thanks for this framework,

    Is there a Swift 3 branch on its way?

    I can't use it with Xcode 8 and Swift 3 beta and Cocoapods... Or couldn't find how to.

    Thanks!

    opened by Tulleb 2
  • Support of Swift Package Manager

    Support of Swift Package Manager

    Adds Package.swift file which enables usage with SPM. Note, that the most correct usage with SPM will be possible only when there is new release that includes Package.swift. Until then, dependency can be added by branch or commit hash which is not allowed in published packages.

    opened by TwoDollarsEsq 1
  • How to use Cocoapods for Swift 2.0

    How to use Cocoapods for Swift 2.0

    Hi,

    I'm impressive with this effect and found the Swift 2.0 branch which can run the example. However, the current pod "LiquidLoader" is not for Swift 2.0. Is there any way I can use it?

    opened by willowcheng 1
  • Swift 2 compatibility

    Swift 2 compatibility

    Getting the error "'find' is unavailable: call the indexOf() method on the collection" on this portion of code:

        func indexOf <U: Equatable> (item: U) -> Int? {
        if item is Element {
            return Swift.find(unsafeBitCast(self, [U].self), item)
        }
    
        return nil
    }
    
    opened by bryan1anderson 1
  • In LiquidLineEffect, the distance between circles are hard coded.

    In LiquidLineEffect, the distance between circles are hard coded.

    self.circleInter = (loader.frame.width - 2 * circleRadius * 5) / 6

    The distance between circles are always calculated as if there were 5 circles, which generates the effect below when creating a 7 circle effect.

    screen shot 2018-05-16 at 4 24 35 pm
    opened by yehe01 0
  • Typo error in README

    Typo error in README

    The sample code in README file has a typo error. There is a comma between '1.0' and 'growColor' which should be removed.

    let loader = LiquidLoader(frame: loaderFrame, effect: .GrowCircle(circleColor, 10, 1.0, , growColor))

    opened by coybit 0
  • Carthage integration

    Carthage integration

    Hi, When I try to integrate LiquidLoader with Carthage, I got this issue:

    *** Skipped building LiquidLoader due to the error:
    Dependency "LiquidLoader" has no shared framework schemes for any of the platforms: iOS
    
    If you believe this to be an error, please file an issue with the maintainers at https://github.com/yoavlt/LiquidLoader/issues/new
    

    Hope this help you to fix the issue. Nicolas

    opened by NicolasLourenco 2
  • Auto-Layout Issue

    Auto-Layout Issue

    Been trying GrowLine and I think this lib has a problem with auto-layout. "Moving Point" is offset by some pixels.

    Btw this could become a great lib if properly maintained. Thanks.

    opened by emouawad 0
  • Crash when return

    Crash when return

    I add LiquidLoader when ViewDidLoad, but the app will crash when I return to the previous view。

    0x101e02588 <+44>: brk #0x1

    the breakpoint is: let frame = self.loader!.frame.center.minus(self.loader!.frame.origin)

    fatal error: unexpectedly found nil while unwrapping an Optional value

    opened by Jinkeycode 1
  • LiquidLoader does not update when embedded in UITableViewCell or other UIScrollView based view

    LiquidLoader does not update when embedded in UITableViewCell or other UIScrollView based view

    The LiquidLoader stops it updates when scrolling an UITableViewCell and UIScrollView.

    Fix: Consider using the update timer in the NSRunLoopCommonModes instead of the default scheduledTimerWithTimeInterval.

    opened by okipol88 0
Owner
Takuma Yoshida
Takuma Yoshida
Basic components for setting up UIKit components programmatically.

UIKit Components Package This repository contains basic components for setting up UIKit components programmatically. It is made by SPACE SQUAD! We mak

SPACE SQUAD 2 Sep 22, 2022
Material Design Floating Action Button in liquid state

LiquidFloatingActionButton [] (https://github.com/Carthage/Carthage) LiquidFloatingActionButton is floating action button component of material design

Takuma Yoshida 3.8k Dec 29, 2022
Liquid SDK for iOS & Apple Watch

Quick Start to Liquid SDK for iOS & Apple Watch This document is just a quick start introduction to Liquid SDK for iOS. You can read the full document

Liquid 26 Nov 15, 2021
A lightweight and fast image loader for iOS written in Swift.

ImageLoader ImageLoader is an instrument for asynchronous image loading written in Swift. It is a lightweight and fast image loader for iOS. Features

Hirohisa Kawasaki 293 Nov 24, 2022
An extremely high-performance, lightweight, and energy-efficient pure Swift async web image loader with memory and disk caching for iOS and  Watch.

KFSwiftImageLoader KFSwiftImageLoader is an extremely high-performance, lightweight, and energy-efficient pure Swift async web image loader with memor

Kiavash Faisali 343 Oct 29, 2022
Animated sharingan loader for iOS projects.

Animated sharingan loader for iOS projects. This is a fun project created using SwiftUI with love for the Uchiha clan. More types of eyes to come with tons of customizations...

Manas Aggarwal 16 Nov 30, 2022
Basic STL loader for SceneKit

HxSTLParser HxSTLParser is a basic STL parser capable of loading STL files into an SCNNode. Installing Via Carthage Just add it to your Cartfile githu

Victor 23 Dec 16, 2022
Very easy to use image loader for swift

Silo Silo is a extremely easy to use and very basic image loader for iOS built in Swift. if you use Silo in your project please let me know! Version 2

Jose Quintero 17 Dec 17, 2022
A Wordpress Article Loader for SwiftUI.

SwiftUIWPArticleLoader Hello to WPArticleLoader! With the WPArticleLoader, you can easily load Articles from your WordPress Website. How to use? The u

Torben Köhler 10 Sep 27, 2022
Swift RSA Key Loader

Swift RSA Key Loader Requirements iOS 9.0+ Installation See the subsections below for details about the different installation methods. Swift Package

Dmytrii Golovanov 1 Jun 13, 2022
Simple Interface Core Animation. Run type-safe animation sequencially or parallelly

Simple Interface Core Animation Sica can execute various animations sequentially or parallelly. Features Animation with duration and delay parallel /

CATS Open Source Softwares 1k Nov 10, 2022
SwiftUI, peek scrolling animation and card tapped animation, using GeometryReader

SwiftUI, peek scrolling animation and card tapped animation, using GeometryReader, follow the livestream tutorial by MengTo.

Terry Kuo 4 Jun 10, 2022
An experiment for using SwiftUI's custom timing Animation to create an orbital-like animation.

Orbital-SwiftUI-Animation An experiment for using SwiftUI's custom timing curve to create an orbital-like animation. How it looks: How it works: Apply

Mostafa Abdellateef 7 Jan 2, 2023
SwiftUI-Text-Animation-Library - Text animation library for SwiftUI

⚠️ This repository is under construction. SwiftUI Text Animation Library Make yo

null 28 Jan 8, 2023
Swiftui-animation-observer - Track SwiftUI animation progress and completion via callbacks

SwiftUI Animation Observer Track SwiftUI animation progress and completion via c

Gordan Glavaš 9 Nov 5, 2022
Repository for the first challenge of the SwiftUI Animation Challenges. Create the likeable now playing animation from the Spotify app.

Repository for the first challenge of the SwiftUI Animation Challenges. Create the likeable now playing animation from the Spotify app.

null 18 Aug 16, 2022
An easy way to create and layout UI components for iOS (Swift version).

Introduction Cupcake is a framework that allow you to easily create and layout UI components for iOS 8.0+. It use chaining syntax and provides some fr

nerdycat 288 Oct 9, 2022
💾 A collection of classic-style UI components for iOS

A collection of classic-style UI components for UIKit, influenced by Windows 95 Introduction This is a little exploration into applying '90s-era desig

Blake Tsuzaki 2.2k Dec 22, 2022
Modular and customizable Material Design UI components for iOS

Material Components for iOS Material Components for iOS (MDC-iOS) helps developers execute Material Design. Developed by a core team of engineers and

Material Components 4.6k Dec 29, 2022