Skip to content
🎛 Simple SwiftUI ‘neumorphic’ button style
Swift
Branch: master
Clone or download

Latest commit

Latest commit 1028e2f Feb 15, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sources/NeumorphicStyle NeumorphicStyle Feb 15, 2020
.editorconfig
.gitattributes Initial commit Feb 15, 2020
.gitignore
.swiftlint.yml NeumorphicStyle Feb 15, 2020
Package.swift NeumorphicStyle Feb 15, 2020
README.md Swift Playground download Feb 15, 2020

README.md

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")
    ],
    ...
)
You can’t perform that action at this time.