- July 11, 2025
- Mins Read
Create a subtle and playful backsplash with Liquid()
. Try liquid behind your artwork, as a button, or even with your own shapes. Just add Liquid()
to your view to get started!
Contents
Package
File > Swift Packages > Add Package Dependency: https://github.com/maustinstar/liquid
Add a dependency in your your Package.swift
.package(url: “https://github.com/maustinstar/liquid.git”, from: “0.0.1”),
struct ContentView: View {
var body: some View {
Liquid().frame(width: 200, height: 200)
}
}
See the full Reference Guide.
struct ContentView: View {
var body: some View {
ZStack {
Liquid()
.frame(width: 240, height: 240)
.foregroundColor(.blue)
.opacity(0.3)
Liquid()
.frame(width: 220, height: 220)
.foregroundColor(.blue)
.opacity(0.6)
Liquid(samples: 5)
.frame(width: 200, height: 200)
.foregroundColor(.blue)
Text(“Liquid”).font(.largeTitle).foregroundColor(.white)
}
}
}
A SwiftUI View that emits confetti with user-defined shapes, images, and text.
A colour wheel made all in SwiftUI. There are 2 different colour wheels to choose from. The first main one ...
A color picker implementation with color wheel appearance written in plain SwiftUI. It is compatible with UIColor and NSColor.
This repository is no longer maintained. Here's why: with the release of iOS 16 SwiftUI now enables most of the ...