Swiftpack.co - hallee/neumorphic-style as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by hallee.
hallee/neumorphic-style 0.0.1
🎛 Simple SwiftUI ‘neumorphic’ button style
⭐️ 68
🕓 4 years ago
iOS macOS tvOS
.package(url: "https://github.com/hallee/neumorphic-style.git", from: "0.0.1")

SwiftUI Neumorphic Button Style

This is a SwiftUI ButtonStyle for styling buttons in a neumorphic style.

I wrote a blog post about it.

You can download this as an interactive Swift Playground.

Usage

import NeumorphicStyle

// ...

@Environment(\.colorScheme) private var colorScheme

var body: some View {
    Button("Hello world") { }
    	.buttonStyle(NeumorphicButtonStyle(colorScheme: colorScheme))
}

Installation

let package = Package(
    ...
    dependencies: [
        .package(url: "https://github.com/hallee/neumorphic-style", from: "0.0.1")
    ],
    ...
)

GitHub

link
Stars: 68
Last commit: 4 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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