mirror of
https://github.com/neon443/NearFuture.git
synced 2026-03-11 06:49:12 +00:00
fixed whatsnewview's horizontal layout
This commit is contained in:
@@ -44,6 +44,7 @@ struct WhatsNewView: View {
|
||||
.bold()
|
||||
AboutView()
|
||||
Divider()
|
||||
VStack(alignment: .leading) {
|
||||
ForEach(whatsNewChunks) { new in
|
||||
WhatsNewChunkView(
|
||||
symbol: new.symbol,
|
||||
@@ -51,11 +52,7 @@ struct WhatsNewView: View {
|
||||
subtitle: new.subtitle
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
.onDisappear {
|
||||
settingsModel.settings.prevAppVersion = getVersion()+getBuildID()
|
||||
settingsModel.saveSettings()
|
||||
}
|
||||
}
|
||||
Button() {
|
||||
@@ -78,6 +75,10 @@ struct WhatsNewView: View {
|
||||
$0.presentationBackground(.ultraThinMaterial)
|
||||
}
|
||||
}
|
||||
.onDisappear {
|
||||
settingsModel.settings.prevAppVersion = getVersion()+getBuildID()
|
||||
settingsModel.saveSettings()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,14 +95,13 @@ struct WhatsNewChunkView: View {
|
||||
@State var title: String
|
||||
@State var subtitle: String
|
||||
var body: some View {
|
||||
// GeometryReader { geo in
|
||||
HStack {
|
||||
Image(systemName: symbol)
|
||||
.resizable()
|
||||
.scaledToFit()
|
||||
.frame(width: 30, height: 30)
|
||||
.foregroundStyle(.accent)
|
||||
.padding(.trailing, 5)
|
||||
.padding(.trailing, 15)
|
||||
VStack(alignment: .leading) {
|
||||
Text(title)
|
||||
.font(.headline)
|
||||
@@ -111,6 +111,5 @@ struct WhatsNewChunkView: View {
|
||||
.font(.subheadline)
|
||||
}
|
||||
}
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user