Spinner loader components with liquid animation

Related tags

UI LiquidLoader
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
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
Material design components for iOS written in Swift

MaterialKit NOTE: This project is unmaintained. Material design components (inspired by Google Material Design) for iOS written in Swift Please feel f

Le Van Nghia 2.5k Jan 5, 2023
SwiftUI: Components Library Inspired by Twitter's Bootstrap

bootswiftui SwiftUI: Components Library Inspired by Twitter's Bootstrap Warning This is just SwiftUI exercise. Please do not consider using this repo

Robert Sandru 1 Oct 27, 2022
A few drop-in SwiftUI components for easily importing and thumb-nailing files

FilesUI A few drop-in SwiftUI components for easily importing and thumb-nailing files Usage 1. Import Files To import files you can use the FileImport

Brianna Zamora 3 Oct 19, 2022
Swift Package for distributing Mozilla's Rust-based application components

Swift Package for Mozilla's Rust Components This repository is a Swift Package for distributing releases of Mozilla's various Rust-based application c

Mozilla 19 Dec 30, 2022
It provides UI components such as popover, popup, dialog supporting iOS apps

Overview LCUIComponents is an on-going project, which supports creating transient views appearing above other content onscreen when a control is selec

Linh Chu 7 Apr 8, 2020
NotSwiftUI is designed to help you create UI components quickly and efficiently with code!

NotSwiftUI NotSwiftUI is designed to help you create UI components quickly and efficiently with code! Capitalizing on the idea that most of the UI ele

Jonathan G. 50 Dec 20, 2022
A paging scroll view for SwiftUI, using internal SwiftUI components

PagingView A paging scroll view for SwiftUI, using internal SwiftUI components. This is basically the same as TabView in the paging mode with the inde

Eric Lewis 18 Dec 25, 2022
SwiftUI components and extensions that seem to be highly reusable

SwiftUI components and extensions that seem to be highly reusable

Yusuke Hosonuma 56 Dec 15, 2022
An easy to use UI component to help display a signal bar with an added customizable fill animation

TZSignalStrengthView for iOS Introduction TZSignalStrengthView is an easy to use UI component to help display a signal bar with an added customizable

TrianglZ LLC 22 May 14, 2022
A radio button with a pretty animation

LTHRadioButton Slightly inspired by Google's material radio button. The clip below has 3 sections: full speed, 25% and 10%, but after converting it to

Roland Leth 368 Dec 16, 2022
A beautiful radar view to show nearby items (users, restaurants, ...) with ripple animation, fully customizable

HGRippleRadarView Example To run the example project, clone the repo, and run pod install from the Example directory first. This project is inspired b

Hamza Ghazouani 352 Dec 4, 2022
Matrix-rust-components-swift - Swift package providing components from the matrix-rust-sdk

Swift package for Matrix Rust components This repository is a Swift Package for

matrix.org 10 Nov 4, 2022
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