Swiftpack.co -  maustinstar/liquid as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
maustinstar/liquid
Create a playful backsplash in SwiftUI.
.package(url: "https://github.com/maustinstar/liquid.git", from: "v0.0.1")

Liquid

Add a Splash to Your SwiftUI Interface

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

For Xcode Projects

File > Swift Packages > Add Package Dependency: https://github.com/maustinstar/liquid

For Swift Packages

Add a dependency in your your Package.swift

.package(url: "https://github.com/maustinstar/liquid.git", from: "0.0.1"),

Basic Usage

Just import Liquid, and add it to your View to get started.

struct ContentView: View {
    var body: some View {
        Liquid().frame(width: 200, height: 200)
    }
}

See the full Reference Guide.

Example

Layered Liquid

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)
        }
    }
}

See more Examples.

Contributing

To get started, read the full Implementation Guide.

See Contributing.md.

🚀 Looking for more fun SwiftUI Packages?

Take your SwiftUI apps to the next level with these Packages!

Credits

GitHub

link
Stars: 208
Last commit: Yesterday

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

38 weeks ago

Welcome to Liquid!

This initial release introduces the Liquid() view.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API