NeumorphicStyle

master

🎛 Simple SwiftUI ‘neumorphic’ button style
hallee/neumorphic-style

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")
    ],
    ...
)

Description

  • Swift Tools 5.1.0
View More Packages from this Author

Dependencies

  • None
Last updated: Thu Feb 02 2023 22:36:55 GMT-0500 (GMT-05:00)