Skip to content

Commit

Permalink
1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
nathantannar4 committed Feb 28, 2024
1 parent 21771ea commit b71236b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let package = Package(
),
],
dependencies: [
.package(url: "https://github.com/nathantannar4/Engine", from: "1.3.0"),
.package(url: "https://github.com/nathantannar4/Engine", from: "1.5.1"),
],
targets: [
.target(
Expand Down
7 changes: 3 additions & 4 deletions Sources/Turbocharger/Sources/View/LabeledView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import Engine
@available(watchOS, introduced: 6.0, deprecated: 100000.0, message: "Please use the built in LabeledContentStyle with LabeledContent")
@available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "Please use the built in LabeledContentStyle with LabeledContent")
public protocol LabeledViewStyle: ViewStyle where Configuration == LabeledViewStyleConfiguration {
associatedtype Configuration = Configuration
}

/// The configuration parameters for ``LabeledView``
Expand Down Expand Up @@ -101,7 +100,7 @@ extension VerticalAlignment {
}

public struct DefaultLabeledViewStyle: LabeledViewStyle {
public func makeBody(configuration: Configuration) -> some View {
public func makeBody(configuration: LabeledViewStyleConfiguration) -> some View {
HStack(alignment: .label) {
configuration.label
configuration.content
Expand All @@ -113,7 +112,7 @@ public struct DefaultLabeledViewStyle: LabeledViewStyle {
// MARK: - Previews

struct CustomLabeledViewStyle: LabeledViewStyle {
func makeBody(configuration: Configuration) -> some View {
func makeBody(configuration: LabeledViewStyleConfiguration) -> some View {
VStack(alignment: .leading) {
configuration.label
configuration.content
Expand All @@ -122,7 +121,7 @@ struct CustomLabeledViewStyle: LabeledViewStyle {
}

struct RedLabeledViewStyle: LabeledViewStyle {
func makeBody(configuration: Configuration) -> some View {
func makeBody(configuration: LabeledViewStyleConfiguration) -> some View {
LabeledView {
configuration.content
} label: {
Expand Down

0 comments on commit b71236b

Please sign in to comment.