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

If you want to have a custom camera using SwiftUI and not using the UIPickerController that will display the original ...

CameraView for SwiftUI 📷

CameraView allows you to have a SnapChat-style screen on your SwiftUI app that gives a realtime view of the iPhone ...

Camera-SwiftUI

SwiftUI has proven to be a really awesome new framework to build and design apps in a quick and reliable ...

ECWeekView

See the swiftui branch for updates. An iOS calendar library for displaying calendar events in a week view.