Skip to content

Commit

Permalink
Update DashboardView.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
nriedman committed Apr 4, 2024
1 parent 11d0b1f commit 3639028
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions ENGAGEHF/Dashboard/DashboardView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,15 @@ struct Dashboard: View {
}
.navigationTitle("Home")

.toolbar {
ToolbarItem(placement: .topBarTrailing) {
AccountButton(isPresented: $presentingAccount)
.toolbar {
ToolbarItem(placement: .topBarTrailing) {
AccountButton(isPresented: $presentingAccount)
}
}
}
}
}
}

#Preview {
@State var presentingAccount = false
return Dashboard(presentingAccount: $presentingAccount)
return Dashboard(presentingAccount: .constant(false))

Check failure on line 34 in ENGAGEHF/Dashboard/DashboardView.swift

View workflow job for this annotation

GitHub Actions / SwiftLint / SwiftLint

Implicit Return Violation: Prefer implicit returns in closures, functions and getters (implicit_return)
}

0 comments on commit 3639028

Please sign in to comment.