mirror of
https://github.com/neon443/NearFuture.git
synced 2026-03-11 06:49:12 +00:00
add success haptic and indentation
This commit is contained in:
@@ -43,6 +43,9 @@ struct CompleteEventButton: View {
|
|||||||
if progress >= 1 {
|
if progress >= 1 {
|
||||||
withAnimation { completeInProgress = false }
|
withAnimation { completeInProgress = false }
|
||||||
viewModel.completeEvent(&event)
|
viewModel.completeEvent(&event)
|
||||||
|
#if canImport(UIKit)
|
||||||
|
UINotificationFeedbackGenerator().notificationOccurred(.success)
|
||||||
|
#endif
|
||||||
timer.invalidate()
|
timer.invalidate()
|
||||||
progress = 0
|
progress = 0
|
||||||
}
|
}
|
||||||
@@ -103,10 +106,10 @@ struct CircularProgressView: View {
|
|||||||
.stroke(
|
.stroke(
|
||||||
.one,
|
.one,
|
||||||
lineWidth: 5
|
lineWidth: 5
|
||||||
// style: StrokeStyle(
|
// style: StrokeStyle(
|
||||||
// lineWidth: 5,
|
// lineWidth: 5,
|
||||||
// lineCap: .round
|
// lineCap: .round
|
||||||
// )
|
// )
|
||||||
)
|
)
|
||||||
.rotationEffect(.degrees(-90))
|
.rotationEffect(.degrees(-90))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user