Skip to content

Commit 569701a

Browse files
committed
2.9.0
1 parent f5cd5a7 commit 569701a

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/swift.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
- name: Build for visionOS
3434
run: xcodebuild -scheme Engine -destination 'generic/platform=visionOS Simulator' build
3535
- name: Test for macOS
36-
run: xcodebuild -scheme EngineTests -destination 'platform=macOS' test
36+
run: xcodebuild -scheme Engine-Package -destination 'platform=macOS' test
3737
- name: Test for iOS
38-
run: xcodebuild -scheme EngineTests -destination 'platform=iOS Simulator,name=iPhone 16' test
38+
run: xcodebuild -scheme Engine-Package -destination 'platform=iOS Simulator,name=iPhone 16' test
3939
build-26:
4040
runs-on: macos-latest
4141
steps:
@@ -59,6 +59,6 @@ jobs:
5959
- name: Build for visionOS
6060
run: xcodebuild -scheme Engine -destination 'generic/platform=visionOS Simulator' build
6161
- name: Test for macOS
62-
run: xcodebuild -scheme EngineTests -destination 'platform=macOS' test
62+
run: xcodebuild -scheme Engine-Package -destination 'platform=macOS' test
6363
- name: Test for iOS
64-
run: xcodebuild -scheme EngineTests -destination 'platform=iOS Simulator,name=iPhone 17' test
64+
run: xcodebuild -scheme Engine-Package -destination 'platform=iOS Simulator,name=iPhone 17' test

Sources/Engine/Sources/UnevenRectangle.swift renamed to Sources/Engine/Sources/RoundedCornersRectangle.swift

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@ import SwiftUI
1010
@available(tvOS, introduced: 13.0, deprecated: 100000.0, message: "Please use the built in UnevenRoundedRectangle")
1111
@available(watchOS, introduced: 6.0, deprecated: 100000.0, message: "Please use the built in UnevenRoundedRectangle")
1212
@available(visionOS, introduced: 1.0, deprecated: 100000.0, message: "Please use the built in UnevenRoundedRectangle")
13-
public struct UnevenRoundedRectangle: Shape {
13+
public struct RoundedCornersRectangle: Shape {
1414

1515
public var topLeadingRadius: CGFloat
1616
public var bottomLeadingRadius: CGFloat
1717
public var topTrailingRadius: CGFloat
1818
public var bottomTrailingRadius: CGFloat
1919
public var style: RoundedCornerStyle
2020

21-
@_disfavoredOverload
2221
@inlinable
2322
public init(
2423
topLeadingRadius: CGFloat = 0,
@@ -92,15 +91,15 @@ public struct UnevenRoundedRectangle: Shape {
9291

9392
// MARK: - Previews
9493

95-
struct UnevenRoundedRectangle_Previews: PreviewProvider {
94+
struct RoundedCornersRectangle_Previews: PreviewProvider {
9695
static var previews: some View {
9796
VStack {
98-
UnevenRoundedRectangle(topLeadingRadius: 12, bottomLeadingRadius: 0, bottomTrailingRadius: 12, topTrailingRadius: 0)
97+
RoundedCornersRectangle(topLeadingRadius: 12, bottomLeadingRadius: 0, bottomTrailingRadius: 12, topTrailingRadius: 0)
9998
.fill(Color.blue)
10099
.frame(height: 50)
101100

102101
if #available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *) {
103-
SwiftUI.UnevenRoundedRectangle(topLeadingRadius: 12, bottomLeadingRadius: 0, bottomTrailingRadius: 12, topTrailingRadius: 0)
102+
UnevenRoundedRectangle(topLeadingRadius: 12, bottomLeadingRadius: 0, bottomTrailingRadius: 12, topTrailingRadius: 0)
104103
.fill(Color.blue)
105104
.frame(height: 50)
106105
}

0 commit comments

Comments
 (0)