mirror of
https://github.com/neon443/NearFuture.git
synced 2026-03-11 06:49:12 +00:00
add haptic feedback, bump version, update whats new
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user