DBMetaballLoading
  • September 25, 2023

Synopsis


A metaball loading written in Swift.

Special thanks to dodola‘s MetaballLoading, which is an android project. The animation is awesome! So I implement it in Swift, DBMetaballLoading’s core algorithm is referenced by it’s core algorithm.

Preview


Usage Example


let loadingView = DBMetaballLoadingView(frame: CGRect(x: 0, y: 100, width: 404, height: 50))
self.view.addSubview(loadingView)

Customizations


  • fillColor: UIColor
  • strokeColor: UIColor
  • ballRadius: CGFloat
  • maxDistance: CGFloat
  • curveAngle: CGFloat
  • handleLenRate: CGFloat
  • spacing: spacing

Installation


CocoaPods

You can use CocoaPods to install DBMetaballLoading by adding it to your Podfile:

platform :ios, ‘8.0’
use_frameworks!
pod ‘DBMetaballLoading’

Manually
  1. Download and drop DBMetaballLoading/Sourcefolder in your project.
  2. Congratulations!

Requirements


  • iOS8+
  • Swift3.0

GitHub


View Github

#ios #loadinganimations #swift #uicomponents
YOU MIGHT ALSO LIKE...
CameraBackground

Features Both front and back camera supported. Flash modes: auto, on, off. Countdown timer. Tap to focus. Pinch to zoom. Usage  

DKCamera

Description A light weight & simple & easy camera for iOS by Swift. It uses CoreMotion framework to detect device orientation, so ...

HorizonSDK-iOS

Horizon SDK is a state of the art real-time video recording / photo shooting iOS library. Some of the features ...

LLSimpleCamera

LLSimpleCamera: A simple customizable camera - video recorder control LLSimpleCamera is a library for creating a customized camera - video ...

RSBarcodes_Swift

RSBarcodes allows you to read 1D and 2D barcodes using the metadata scanning capabilities introduced with iOS 7 and generate ...