Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ShapeStyle support #161

Merged
merged 15 commits into from
Nov 24, 2024
2 changes: 1 addition & 1 deletion Scripts/openswiftui_swiftinterface.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ OPENSWIFTUI_ROOT="$(dirname $(dirname $(filepath $0)))"

cd $OPENSWIFTUI_ROOT

swift build -Xswiftc -emit-module-interface -Xswiftc -enable-library-evolution
swift build -Xswiftc -emit-module-interface -Xswiftc -enable-library-evolution -Xswiftc -no-verify-emitted-module-interface
4 changes: 0 additions & 4 deletions Sources/OpenSwiftUICore/Data/Environment/EnvironmentKey.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@ public protocol EnvironmentKey {

static var defaultValue: Value { get }

#if OPENSWIFTUI_SUPPORT_2022_API
static func _valuesEqual(_ lhs: Self.Value, _ rhs: Self.Value) -> Bool
#endif
}

#if OPENSWIFTUI_SUPPORT_2022_API
extension EnvironmentKey {
public static func _valuesEqual(_ lhs: Self.Value, _ rhs: Self.Value) -> Bool {
compareValues(lhs, rhs)
Expand All @@ -29,7 +26,6 @@ extension EnvironmentKey where Value: Equatable {
lhs == rhs
}
}
#endif

package protocol DerivedEnvironmentKey {
associatedtype Value: Equatable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
// Audited for iOS 15.5
// Status: WIP

import Foundation
package import Foundation
import OpenSwiftUI_SPI

protocol ContentResponder {
package protocol ContentResponder {
func contains(points: [CGPoint], size: CGSize) -> BitVector64
func contentPath(size: CGSize) -> Path
func contentPath(size: CGSize, kind: ContentShapeKinds) -> Path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ public enum ColorRenderingMode: Sendable {
case extendedLinear
}

extension ColorRenderingMode: Equatable {}
extension ColorRenderingMode: Hashable {}

extension ColorRenderingMode: ProtobufEnum {
package var protobufValue: UInt {
switch self {
Expand Down
Loading
Loading