feat: add hover effect

This commit is contained in:
dscyrescotti
2024-06-24 21:26:31 +07:00
parent a2ed7c43bb
commit 36904f2879
2 changed files with 2 additions and 0 deletions

View File

@@ -101,6 +101,7 @@ struct MemoView: View {
.clipShape(.rect(cornerRadius: 8)) .clipShape(.rect(cornerRadius: 8))
.padding(10) .padding(10)
} }
.hoverEffect(.lift)
.transition(.move(edge: .bottom).combined(with: .blurReplace)) .transition(.move(edge: .bottom).combined(with: .blurReplace))
} }
} }

View File

@@ -241,6 +241,7 @@ struct PenDock: View {
.frame(width: size + 2, height: size + 2) .frame(width: size + 2, height: size + 2)
} }
} }
.hoverEffect(.lift)
.pickerStyle(.wheel) .pickerStyle(.wheel)
.frame(width: width * factor - 18, height: 35) .frame(width: width * factor - 18, height: 35)
.onChange(of: pen.thickness) { _, _ in .onChange(of: pen.thickness) { _, _ in