Swiftpack.co -  heestand-xyz/Noise as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
heestand-xyz/Noise
*Random Smooth Cloudy* Noise for SwiftUI
.package(url: "https://github.com/heestand-xyz/Noise.git", from: "1.0.0")

Noise

Generate random smooth cloudy noise.

Install

Swift Package

.package(url: "https://github.com/heestand-xyz/Noise", from: "1.0.0")

Import Package

import SwiftUI
import Noise
struct ContentView: View {
    var body: some View {
        Noise()
    }
}
struct ContentView: View {
    var body: some View {
        Noise(smoothness: 1.0)
    }
}
struct ContentView: View {
    var body: some View {
        Noise(smoothness: nil)
    }
}
struct ContentView: View {
    var body: some View {
        Noise(smoothness: 0.75)
            .foregroundColors()
    }
}
struct ContentView: View {
    var body: some View {
        ZStack {
            Color.black
            Noise(smoothness: 0.5)
                .foregroundColor(.red)
            Noise(smoothness: 1.0)
                .foregroundColor(.yellow)
                .seed(2)
        }
    }
}
struct ContentView: View {
    var body: some View {
        Noise(smoothness: 1.0, speed: 1.0)
    }
}

Graphics Powered by PixelKit

Original Noise by Eliot Eshelman

GitHub

link
Stars: 7
Last commit: 5 weeks ago

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.

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