add haptic feedback, bump version, update whats new

This commit is contained in:
neon443
2025-05-19 15:13:38 +01:00
parent 940a8f4ebd
commit db05da3043
3 changed files with 18 additions and 1 deletions

View File

@@ -12,6 +12,6 @@ TEAM_ID = 8JGND254B7
BUNDLE_ID = com.neon443.NearFuture
BUNDLE_ID_WIDGETS = com.neon443.NearFuture.widgets
GROUP_ID = group.NearFuture
VERSION = 4.3.8
VERSION = 4.4.0
NAME = Near Future
BUILD_NUMBER = 1

View File

@@ -111,6 +111,11 @@ struct EventListView: View {
.frame(maxWidth: 25, maxHeight: 25)
.shadow(radius: 5)
.padding(.trailing, 5)
.apply {
if #available(iOS 17, *) {
$0.sensoryFeedback(.success, trigger: event.complete)
}
}
}
.transition(.opacity)
.padding(.vertical, 5)

View File

@@ -16,8 +16,14 @@ struct WhatsNewView: View {
var title: String
var subtitle: String
}
@State var bye = false
var whatsNewChunks: [WhatsNewChunk] {
return [
WhatsNewChunk(
symbol: "iphone.radiowaves.left.and.right",
title: "Haptic Feedback",
subtitle: "Lovely haptic feedback when completing and adding events, and selecting tabs"
),
WhatsNewChunk(
symbol: "app",
title: "App Icons",
@@ -66,6 +72,7 @@ struct WhatsNewView: View {
}
}
Button() {
bye.toggle()
dismiss()
} label: {
Text("Continue")
@@ -77,6 +84,11 @@ struct WhatsNewView: View {
.buttonStyle(BorderedProminentButtonStyle())
.clipShape(RoundedRectangle(cornerRadius: 15))
.padding().padding()
.apply {
if #available(iOS 17, *) {
$0.sensoryFeedback(.impact(weight: .heavy, intensity: 1), trigger: bye)
}
}
}
.scrollContentBackground(.hidden)
.presentationDragIndicator(.visible)