Skip to content

Commit

Permalink
fix design
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuzukihashi committed Apr 25, 2020
1 parent ab8122d commit 3fbf302
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
18 changes: 14 additions & 4 deletions DemoApp/DemoApp/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,27 @@ struct ContentView: View {
ScrollView(.vertical, showsIndicators: false) {
VStack (spacing: 0){
HStack {
Text("NeumorphismUI")
.foregroundColor(self.neumorphism.fontColor())
.font(.title)
ZStack {
RoundedRectangle(cornerRadius: 24)
.fill(self.neumorphism.color)
.neumorphismShadow()
.frame(width: 300, height: 64, alignment: .center)

Text("NeumorphismUI")
.shadow(color: self.neumorphism.color.darkerColor(), radius: 4, x: 4, y: 4)
.shadow(color: self.neumorphism.color.lighterColor(), radius: 4, x: -4, y: -4)
.foregroundColor(self.neumorphism.color.darkerColor())
.font(.system(size: 36, weight: .bold, design: .rounded))
}

NeumorphismBindingButton(isSelected: $isDark, shapeType: .circle, normalImage: Image(systemName: "sun.max"), selectedImage: Image(systemName: "moon"), width: 44, height: 44, imageWidth: 20, imageHeight: 20, shadowRadius: 4) {
self.neumorphism.changeMode()
}.onAppear() {
self.isDark = self.neumorphism.isDark
}
}
NeumorphismDentView(width: 300, height: 8, cornerRadius: 4)

Spacer()

NavigationLink(destination: SimpleView()) {
BaseView(name: "SimpleView", desc: "most simple neumorphism")
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ struct NeumorphismSliderView: View {
}
```

![NeumorphismSlider](https://lh3.googleusercontent.com/ysSXR8ooZy4X42bBkO-Mrr_0N78RTizBpRpfyHMn5N9TtJoCfEUR-9KxDanfshKlhUaFhZXM_OdM-9Q_jduBE4w0HmotYYrC6uGGiKa_FulHsmA85RWkjg10oGyIsKzcUZPxz6FYTlJ2OEug7GnJlc_Dwk8SeZPS3HsnYUFxsnIRSAXuIm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u5JwwhFiX8X2SVYG4B_RBLunBm0eX_h_jF1ECT5a2Aq2nbudEamYRcryyR5qaTBjufuquoYnfOMwulpsbmTo8eeePKvSKpVIkjzFCQtpc5VvojgWIKGTqpeP715YH3Njj2vDvVDHBG7X7mTebKy3V4pWy8AV9fdYlFOZukvnXLCxz9mcURpNvz8xNIJJcvXsnZbHwHZm_2MwvQVyzdG8s0HQ-AbmSgU9otEJNrqJ2lJVJC8JvtN8GQ3941alt9jv_lWAfS-HOM1Fbia2y3FEWXAJzfjkxwZLX_EJA56tTuVBOfcOVSDR4eYyeZ6=w736-h220-no)

0 comments on commit 3fbf302

Please sign in to comment.