Skip to content

Commit e4e4f77

Browse files
committed
iOS: Minor fix
1 parent 8c6acfb commit e4e4f77

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

iosApp/OPass/Event/EventView.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,20 @@ struct EventView: View {
4949

5050
FeatureGrid(config: config)
5151
}
52-
.onChange(of: eventID) { viewModel.reset() }
52+
.onChange(of: eventID) { Task { await viewModel.loadEvent(reload: true) } }
53+
.navigationBarTitleDisplayMode(.inline)
54+
.toolbar {
55+
ToolbarItem(placement: .principal) {
56+
Text(config.name)
57+
.bold()
58+
}
59+
}
5360
}
5461

5562
@ViewBuilder
5663
private func loadingView() -> some View {
5764
ProgressView("Loading")
65+
.frame(maxWidth: .infinity, maxHeight: .infinity)
5866
.task { await viewModel.loadEvent() }
5967
}
6068
}

iosApp/OPass/Event/FeatureGrid.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ struct FeatureGrid: View {
4141
.renderingMode(.template)
4242
.interpolation(.none)
4343
.resizable()
44-
.scaledToFill()
44+
.scaledToFit()
4545
default:
4646
Image(systemName: feature.symbol)
4747
.resizable()
48-
.scaledToFill()
48+
.scaledToFit()
4949
.padding(3)
5050
}
5151
}
@@ -57,7 +57,6 @@ struct FeatureGrid: View {
5757
.font(.custom("RobotoCondensed-Regular", size: 11, relativeTo: .caption2))
5858
.fixedSize(horizontal: false, vertical: true)
5959
.multilineTextAlignment(.center)
60-
6160
}
6261
}
6362
}

iosApp/Supporting Files/Localizable.xcstrings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"Clean Cache" : {
3838

3939
},
40-
"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." : {
40+
"Clean cache will only remove unnecessary cache to free up space. Some essential cache required for the app to operate will remain intact." : {
4141

4242
},
4343
"Dark Mode" : {

0 commit comments

Comments
 (0)