Skip to content

Commit

Permalink
iOS: Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
viere1234 committed Nov 6, 2024
1 parent 8c6acfb commit e4e4f77
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
10 changes: 9 additions & 1 deletion iosApp/OPass/Event/EventView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,20 @@ struct EventView: View {

FeatureGrid(config: config)
}
.onChange(of: eventID) { viewModel.reset() }
.onChange(of: eventID) { Task { await viewModel.loadEvent(reload: true) } }
.navigationBarTitleDisplayMode(.inline)
.toolbar {
ToolbarItem(placement: .principal) {
Text(config.name)
.bold()
}
}
}

@ViewBuilder
private func loadingView() -> some View {
ProgressView("Loading")
.frame(maxWidth: .infinity, maxHeight: .infinity)
.task { await viewModel.loadEvent() }
}
}
Expand Down
5 changes: 2 additions & 3 deletions iosApp/OPass/Event/FeatureGrid.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ struct FeatureGrid: View {
.renderingMode(.template)
.interpolation(.none)
.resizable()
.scaledToFill()
.scaledToFit()
default:
Image(systemName: feature.symbol)
.resizable()
.scaledToFill()
.scaledToFit()
.padding(3)
}
}
Expand All @@ -57,7 +57,6 @@ struct FeatureGrid: View {
.font(.custom("RobotoCondensed-Regular", size: 11, relativeTo: .caption2))
.fixedSize(horizontal: false, vertical: true)
.multilineTextAlignment(.center)

}
}
}
2 changes: 1 addition & 1 deletion iosApp/Supporting Files/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"Clean Cache" : {

},
"Clean cache will only remove unnecessary cache to free up space and improve performance. Some essential cache required for the app to operate will remain intact." : {
"Clean cache will only remove unnecessary cache to free up space. Some essential cache required for the app to operate will remain intact." : {

},
"Dark Mode" : {
Expand Down

0 comments on commit e4e4f77

Please sign in to comment.