Skip to content

Commit

Permalink
🚨 (swiftformat): --enable opaqueGenericParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed Dec 6, 2023
1 parent a06805b commit f7044a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@
--hexliteralcase uppercase
--exponentcase lowercase

--enable opaqueGenericParameters

# Disabled rules

--disable blankLinesBetweenImports
Expand Down
4 changes: 2 additions & 2 deletions Apps/LekaApp/Sources/Extensions/Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import SwiftUI

// Fill & Stroke with 1 modifier
extension Shape {
func fill<Fill: ShapeStyle, Stroke: ShapeStyle>(
_ fillStyle: Fill, strokeBorder strokeStyle: Stroke, lineWidth: CGFloat = 1
func fill(
_ fillStyle: some ShapeStyle, strokeBorder strokeStyle: some ShapeStyle, lineWidth: CGFloat = 1
) -> some View {
self
.stroke(strokeStyle, lineWidth: lineWidth)
Expand Down
4 changes: 2 additions & 2 deletions Modules/GameEngineKit/Sources/_NewSystem/Utils/Utils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ extension View {
}

extension Shape {
func fill<Fill: ShapeStyle, Stroke: ShapeStyle>(
_ fillStyle: Fill, strokeBorder strokeStyle: Stroke, lineWidth: CGFloat = 1
func fill(
_ fillStyle: some ShapeStyle, strokeBorder strokeStyle: some ShapeStyle, lineWidth: CGFloat = 1
) -> some View {
self
.stroke(strokeStyle, lineWidth: lineWidth)
Expand Down

0 comments on commit f7044a0

Please sign in to comment.