Skip to content

Commit

Permalink
more nits
Browse files Browse the repository at this point in the history
  • Loading branch information
cbaker6 committed Jul 6, 2024
1 parent 770d363 commit cca01f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Sources/CareKitEssentials/Cards/Shared/CustomLabelView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public extension CustomLabelView {
initialValue: OCKOutcomeValue = OCKOutcomeValue(0.0),
detailsTitle: String? = nil,
detailsInformation: String? = nil,
action: ((OCKOutcomeValue?) async -> OCKAnyOutcome)? = nil,
action: ((OCKOutcomeValue?) async throws -> OCKAnyOutcome)? = nil,
@ViewBuilder header: () -> Header) {
self.init(
viewModel: .init(
Expand Down Expand Up @@ -160,7 +160,7 @@ public extension CustomLabelView where Header == InformationHeaderView {
initialValue: OCKOutcomeValue = OCKOutcomeValue(0.0),
detailsTitle: String? = nil,
detailsInformation: String? = nil,
action: ((OCKOutcomeValue?) async -> OCKAnyOutcome)? = nil) {
action: ((OCKOutcomeValue?) async throws -> OCKAnyOutcome)? = nil) {
self.init(viewModel: .init(event: event.result,
initialValue: initialValue,
detailsTitle: detailsTitle,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public extension SliderLogTaskView {
detailsInformation: String? = nil,
range: ClosedRange<Double>,
step: Double = 1,
action: ((OCKOutcomeValue?) async -> OCKAnyOutcome)? = nil,
action: ((OCKOutcomeValue?) async throws -> OCKAnyOutcome)? = nil,
@ViewBuilder header: () -> Header,
@ViewBuilder slider: () -> Slider) {
self.init(isHeaderPadded: false,
Expand Down Expand Up @@ -309,7 +309,7 @@ public extension SliderLogTaskView where Header == InformationHeaderView, Slider
initialValue: Double? = 0,
range: ClosedRange<Double>,
step: Double = 1,
action: ((OCKOutcomeValue?) async -> OCKAnyOutcome)? = nil,
action: ((OCKOutcomeValue?) async throws -> OCKAnyOutcome)? = nil,
minimumImage: Image? = nil,
maximumImage: Image? = nil,
minimumDescription: String? = nil,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public extension DigitalCrownView where Footer == DigitalCrownViewFooter {
incrementValue: Double = 1,
emojis: [String] = [],
colorRatio: Double = 0.2,
action: ((OCKOutcomeValue?) async -> OCKAnyOutcome)? = nil,
action: ((OCKOutcomeValue?) async throws -> OCKAnyOutcome)? = nil,
@ViewBuilder header: () -> Header
) {
let viewModel = DigitalCrownViewModel(
Expand Down

0 comments on commit cca01f3

Please sign in to comment.