Skip to content

Commit

Permalink
Minor UI tweaks to the watch display.
Browse files Browse the repository at this point in the history
  • Loading branch information
msimms committed Oct 18, 2023
1 parent 71dff84 commit ea22559
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Watch App/ActivityView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,16 @@ struct ActivityView: View {
var body: some View {
VStack(alignment: .center) {
// Top item
VStack() {
VStack(alignment: .center) {
HStack() {
Text("Stopping...")
.foregroundColor(.red)
.bold()
}
.opacity(self.stopping ? 1 : 0)

HStack() {
VStack(alignment: .center) {
Text(self.activityVM.title1).font(.system(size: 12)).multilineTextAlignment(.center)
Text(self.activityVM.value1).font(.system(size: 48))
.onTapGesture {
self.showingActivityAttributeSelection1 = self.canShowAttributeMenu()
Expand Down Expand Up @@ -418,8 +419,9 @@ struct ActivityView: View {
Text("Cancel")
}
}
.navigationTitle(self.activityType)
.navigationBarTitle(self.activityType)
.navigationBarBackButtonHidden(self.activityVM.isInProgress)
.navigationBarTitleDisplayMode(.inline)
.opacity(self.activityVM.isPaused ? 0.5 : 1)
.onAppear() {
if self.activityVM.isStopped {
Expand Down

0 comments on commit ea22559

Please sign in to comment.