Skip to content

Commit

Permalink
🐛 Fix aspect ratio again
Browse files Browse the repository at this point in the history
  • Loading branch information
KrLite committed Dec 19, 2024
1 parent 1e10d9c commit 89bf424
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Sources/Luminare/Utilities/Extensions/View+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -252,19 +252,12 @@ public extension View {
}

@ViewBuilder func luminareAspectRatio(
_ aspectRatio: CGFloat?, contentMode: ContentMode, hasFixedHeight: Bool? = nil
_ aspectRatio: CGFloat? = nil, contentMode: ContentMode, hasFixedHeight: Bool? = nil
) -> some View {
environment(\.luminareAspectRatio, aspectRatio)
environment(\.luminareAspectRatioContentMode, contentMode)
.assigning(\.luminareAspectRatioHasFixedHeight, hasFixedHeight)
}

@ViewBuilder func luminareAspectRatio(
contentMode: ContentMode, hasFixedHeight: Bool? = nil
) -> some View {
environment(\.luminareAspectRatioContentMode, contentMode)
.assigning(\.luminareAspectRatioHasFixedHeight, hasFixedHeight)
}

@ViewBuilder func luminareAspectRatio(
_ aspectRatio: CGSize, contentMode: ContentMode, hasFixedHeight: Bool? = nil
Expand Down

0 comments on commit 89bf424

Please sign in to comment.