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

     

camerakit-ios

CameraKit helps you add reliable camera to your app quickly. Our open source camera platform provides consistent capture results, service ...

HybridCamera

[video width="192" height="416" mp4="https://swiftgit.com/wp-content/uploads/2024/12/68747470733a2f2f7261776769742e636f6d2f7374796c656b69742f696d672f6d61737465722f7669645f6564697465645f325f326d622e676966.mp4"][/video]

TakeASelfie

An iOS framework that uses the front camera, detects your face and takes a selfie. This api opens the front ...

iOS-Depth-Sampler

Code examples of Depth APIs in iOS