Swiftpack.co - Package - tsuzukihashi/NeumorphismUI

NeumorphismUI

NeumorphismUI is a very useful library that allows you to easily use Neumorphism designs in SwiftUI.

DemoApp

DemoApp LightDemoApp Dark

Requirements

  • iOS 13.0+
  • Xcode 11+
  • Swift 5+

Installation

Swift Package Manager

Usage

Simple

let neumorphism = NeumorphismManager(
    isDark: false,
    lightColor: Color(hex: "C1D2EB"),
    darkColor: Color(hex: "2C292C")
)

let contentView = ContentView()
    .environmentObject(neumorphism)
import SwiftUI
import NeumorphismUI

struct SimpleView: View {
    @EnvironmentObject var neumorphism: NeumorphismManager

    var body: some View {
        ZStack {
            neumorphism.color.edgesIgnoringSafeArea(.all)
            Circle()
                .fill(neumorphism.color)
                .frame(width: 200, height: 200)
                .neumorphismShadow()
        }
    }
}

Simple View Light

let neumorphism = NeumorphismManager(
    isDark: true,
    lightColor: Color(hex: "C1D2EB"),
    darkColor: Color(hex: "2C292C")
)

let contentView = ContentView()
    .environmentObject(neumorphism)

Simple View Dark

NeumorphismButton

NeumorphismButton(
    shapeType: .roundedRectangle(cornerRadius: 20),
    normalImage: Image(systemName: "star"),
    selectedImage: Image(systemName: "star.fill")
)

Simple Use NeumorphismButton

NeumorphismSlider

Simple Usage!

struct NeumorphismSliderView: View {
    @EnvironmentObject var neumorphism: NeumorphismManager
    @State private var value: Double = 0
    
    var body: some View {
        ZStack {
            neumorphism.color.edgesIgnoringSafeArea(.all)
            VStack {
                Text("VALUE: \(value)")
                    .foregroundColor(self.neumorphism.fontColor())
                
                NeumorphismSlider(value: self.$value, changeHandler: {
                    // call change method
                }) {
                    // call ended method
                }
            }
        }
    }
}

NeumorphismSlider

Github

link
Stars: 31

Dependencies

Used By

Total: 0

Releases

v0.3.6 - 2020-04-01 12:25:26

NewDesign NeumorphismSlider

v0.3.5 - 2020-03-31 16:37:36

v0.3.4 - 2020-03-30 13:20:55

NeumorphismSlider

v0.3.3 - 2020-03-29 17:31:26

Fix neumorphismShadow()

v0.3.2 - 2020-03-25 14:24:12

Fix NeumorphismButton Animation

v0.3.1 - 2020-03-20 21:08:27

bug fix depelop target -> iOS 13

v0.3.0 - 2020-03-20 14:02:55

Changes

  • Frame Optional

v0.2.9 - 2020-03-13 14:30:06

NeumorphismBindingButton!

v0.2.8 - 2020-03-13 13:56:49

fix neumorphism button animation

v0.2.7 - 2020-03-13 13:12:44

NeumorphismCircleDentView

v0.2.6 - 2020-03-13 11:39:53

Delete padding

v0.2.5 - 2020-03-13 10:52:25

Change FontColor

v0.2.4 - 2020-03-13 10:42:53

Default NeumorphismShadow Radius change 8 from 16

v0.2.3 - 2020-03-13 09:54:24

more fix font color

v0.2.2 - 2020-03-13 09:50:55

fix fontColor

v0.2.1 - 2020-03-13 09:48:07

fontColor

v0.2.0 - 2020-03-13 09:33:34

Color to UIColor

v0.1.9 - 2020-03-13 09:16:48

UIColorExtension

v0.1.7 - 2020-03-13 09:00:53

NeumorphismDentView

v0.1.6 - 2020-03-13 05:50:45

Force Padding Deleted

v0.1.5 - 2020-03-13 05:38:33

Sorry man! Fix NeumorphismLabelButton!

v0.1.4 - 2020-03-13 05:33:58

New Arrival!

Add NeumorphismLabelButton

v0.1.3 - 2020-03-11 17:19:38

Use UserDefaults

v0.1.2 - 2020-03-10 20:50:56

More useful

v0.1.1 - 2020-03-01 05:46:47

Add DemoApp

v0.1.0 - 2020-03-01 04:55:08

v0.0.9 - 2020-02-29 18:03:49

Now, I have added DemoApp. So, check it!

v0.0.8 - 2020-02-26 15:47:04

NeumorphismShadowModifier

v0.0.7 - 2020-02-26 13:55:04

Add Shadow Modifiler

v0.0.6 - 2020-02-25 17:31:57