mirror of
https://github.com/neon443/NearFuture.git
synced 2026-03-11 06:49:12 +00:00
swift 6 migration complete
This commit is contained in:
@@ -154,25 +154,25 @@ struct EventWidgetView: View {
|
||||
.foregroundColor(event.date < Date() ? .red : .primary)
|
||||
.padding(.trailing, -12)
|
||||
} else {
|
||||
Button(
|
||||
intent: CompleteEvent(
|
||||
eventID: IntentParameter(
|
||||
title: LocalizedStringResource(
|
||||
stringLiteral: event.id.uuidString
|
||||
)
|
||||
)
|
||||
)
|
||||
) {
|
||||
if event.complete {
|
||||
Circle()
|
||||
.frame(width: 10)
|
||||
.foregroundStyle(.green)
|
||||
} else {
|
||||
Circle()
|
||||
.frame(width: 10)
|
||||
.foregroundStyle(.gray)
|
||||
}
|
||||
}
|
||||
// Button(
|
||||
// intent: CompleteEvent(
|
||||
// eventID: IntentParameter(
|
||||
// title: LocalizedStringResource(
|
||||
// stringLiteral: event.id.uuidString
|
||||
// )
|
||||
// )
|
||||
// )
|
||||
// ) {
|
||||
// if event.complete {
|
||||
// Circle()
|
||||
// .frame(width: 10)
|
||||
// .foregroundStyle(.green)
|
||||
// } else {
|
||||
// Circle()
|
||||
// .frame(width: 10)
|
||||
// .foregroundStyle(.gray)
|
||||
// }
|
||||
// }
|
||||
Text(daysUntilEvent(event.date).long)
|
||||
.font(.caption)
|
||||
.multilineTextAlignment(.trailing)
|
||||
|
||||
Reference in New Issue
Block a user