@@ -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