You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
TokamakStaticHTML 0.11.0 fails to compile on macOS 13, Xcode 14.1, Swift 5.7.1
To Reproduce
Steps to reproduce the behavior:
Download 0.11.0 source or HEAD
Open on macOS 13.0, Xcode 14.1
Switch to target TokamakStaticHTML, make sure you're compiling for "My Mac"
Compile
Expected behavior
Build succeeds
Actual behavior
Build errors (warning: a lot of text) - result of calling swift build --target TokamakStaticHTML -c release
.build/checkouts/Tokamak/Sources/TokamakCore/Animation/Animatable.swift:145:39: error: cannot assign value of type '(CGFloat, CGFloat)' to type '(Double, Double)'
@inlinable set { (x, y) = newValue[] }
~~~~~~~~^~
as! (Double, Double)
.build/checkouts/Tokamak/Sources/TokamakCore/Animation/Animatable.swift:152:48: error: cannot assign value of type '(CGFloat, CGFloat)' to type '(Double, Double)'
@inlinable set { (width, height) = newValue[] }
~~~~~~~~^~
as! (Double, Double)
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Fiber+CustomDebugStringConvertible.swift:32:30: error: type 'CGPoint' has no member 'zero'
origin: .init(origin: .zero),
~^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Fiber+CustomDebugStringConvertible.swift:33:32: error: type 'CGSize' has no member 'zero'
dimensions: .init(size: .zero, alignmentGuides: [:]),
~^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/FiberReconciler.swift:96:31: error: value of type 'CGRect' has no member 'midX'
at: .init(x: bounds.midX, y: bounds.midY),
~~~~~~ ^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/FiberReconciler.swift:96:47: error: value of type 'CGRect' has no member 'midY'
at: .init(x: bounds.midX, y: bounds.midY),
~~~~~~ ^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/FiberReconciler.swift:98:41: error: value of type 'CGRect' has no member 'width'
proposal: .init(width: bounds.width, height: bounds.height)
~~~~~~ ^~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/FiberReconciler.swift:98:63: error: value of type 'CGRect' has no member 'height'
proposal: .init(width: bounds.width, height: bounds.height)
~~~~~~ ^~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/FiberReconciler.swift:126:37: error: referencing instance method 'removeDuplicates()' on 'Publisher' requires that 'CGSize' conform to 'Equatable'
sceneSizeCancellable = renderer.sceneSize.removeDuplicates().sink { [weak self] _ in
^
Combine.Publisher:2:11: note: where 'Self.Output' = 'CGSize'
extension Publisher where Self.Output : Equatable {
^
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/FiberReconciler.swift:154:37: error: referencing instance method 'removeDuplicates()' on 'Publisher' requires that 'CGSize' conform to 'Equatable'
sceneSizeCancellable = renderer.sceneSize.removeDuplicates().sink { [weak self] _ in
^
Combine.Publisher:2:11: note: where 'Self.Output' = 'CGSize'
extension Publisher where Self.Output : Equatable {
^
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/FiberRenderer.swift:126:21: error: type 'CGSize' has no member 'zero'
{ _, _, _ in .zero }
~^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/FiberRenderer.swift:137:21: error: type 'CGSize' has no member 'zero'
{ _, _, _ in .zero }
~^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/ContainedZLayout.swift:55:39: error: cannot implicitly convert value of type 'CGFloat?' to expected type 'Double?'
width: cache.primaryDimensions?.width ?? .zero,
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
Double( )
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/ContainedZLayout.swift:56:40: error: cannot implicitly convert value of type 'CGFloat?' to expected type 'Double?'
height: cache.primaryDimensions?.height ?? .zero
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
Double( )
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/ContainedZLayout.swift:93:38: error: cannot implicitly convert value of type 'CGFloat?' to expected type 'Double?'
width: cache.primaryDimensions?[alignment.horizontal] ?? .zero,
~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
Double( )
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/ContainedZLayout.swift:94:39: error: cannot implicitly convert value of type 'CGFloat?' to expected type 'Double?'
height: cache.primaryDimensions?[alignment.vertical] ?? .zero
~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
Double( )
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/ContainedZLayout.swift:99:21: error: cannot implicitly convert value of type 'CGFloat?' to expected type 'Double?'
width: widest?[alignment.horizontal] ?? .zero,
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
Double( )
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/ContainedZLayout.swift:100:23: error: cannot implicitly convert value of type 'CGFloat?' to expected type 'Double?'
height: tallest?[alignment.vertical] ?? .zero
~~~~~~~~^~~~~~~~~~~~~~~~~~~~
Double( )
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/ContainedZLayout.swift:104:21: error: cannot implicitly convert value of type 'CGFloat?' to expected type 'Double?'
width: widest?[HorizontalAlignment.center] ?? .zero,
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Double( )
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/ContainedZLayout.swift:105:23: error: cannot implicitly convert value of type 'CGFloat?' to expected type 'Double?'
height: tallest?[VerticalAlignment.center] ?? .zero
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
Double( )
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/ContainedZLayout.swift:109:17: error: value of type 'CGRect' has no member 'minX'
x: bounds.minX + primaryOffset.width - secondaryOffset.width + secondaryCenter.width,
~~~~~~ ^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/ContainedZLayout.swift:110:17: error: value of type 'CGRect' has no member 'minY'
y: bounds.minY + primaryOffset.height - secondaryOffset.height + secondaryCenter.height
~~~~~~ ^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/Layout.swift:225:59: error: reference to member 'zero' cannot be resolved without a contextual type
let size = subviews.first?.sizeThatFits(proposal) ?? .zero
^
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/LayoutSubviews.swift:130:46: error: type 'CGSize' has no member 'zero'
guard let fiber = fiber else { return .zero }
~^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/LayoutSubviews.swift:151:9: error: cannot convert return expression of type 'T?' to return type 'CGSize'
} ?? .zero
~~~~~~~~^~~~~~~~
as! CGSize
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/LayoutSubviews.swift:133:56: error: reference to member 'zero' cannot be resolved without a contextual type
guard let layout = fiber.layout else { return .zero }
~^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/PaddingLayout+Layout.swift:46:39: error: value of type '((LayoutSubviews.Element) throws -> Bool) throws -> LayoutSubviews.Element?' (aka '((LayoutSubview) throws -> Bool) throws -> Optional<LayoutSubview>') has no member 'sizeThatFits'
let subviewSize = subviews.first?.sizeThatFits(
~~~~~~~~~~~~~~~ ^~~~~~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/PaddingLayout+Layout.swift:47:8: error: cannot infer contextual base in reference to member 'init'
.init(
~^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/PaddingLayout+Layout.swift:68:29: error: value of type 'CGRect' has no member 'minX'
at: .init(x: bounds.minX + insets.leading, y: bounds.minY + insets.top),
~~~~~~ ^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/PaddingLayout+Layout.swift:68:62: error: value of type 'CGRect' has no member 'minY'
at: .init(x: bounds.minX + insets.leading, y: bounds.minY + insets.top),
~~~~~~ ^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/StackLayout.swift:79:28: error: key path value type 'Double' cannot be converted to contextual type 'CGFloat'
case .vertical: return \.height
^
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/StackLayout.swift:80:30: error: key path value type 'Double' cannot be converted to contextual type 'CGFloat'
case .horizontal: return \.width
^
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/StackLayout.swift:90:28: error: key path value type 'Double' cannot be converted to contextual type 'CGFloat'
case .vertical: return \.width
^
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/StackLayout.swift:91:30: error: key path value type 'Double' cannot be converted to contextual type 'CGFloat'
case .horizontal: return \.height
^
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/StackLayout.swift:97:58: error: type 'CGSize' has no member 'zero'
.init(maxSubview: nil, idealSizes: Array(repeating: .zero, count: subviews.count))
~^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/StackLayout.swift:103:42: error: type 'CGSize' has no member 'zero'
cache.idealSizes = Array(repeating: .zero, count: subviews.count)
~^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/StackLayout.swift:175:23: error: type 'CGSize' has no member 'zero'
var size = CGSize.zero
~~~~~~ ^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/StackLayout.swift:240:44: error: value of type 'CGRect' has no member 'minX'
var placement = CGSize(width: bounds.minX, height: bounds.minY)
~~~~~~ ^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/StackLayout.swift:240:65: error: value of type 'CGRect' has no member 'minY'
var placement = CGSize(width: bounds.minX, height: bounds.minY)
~~~~~~ ^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/_AspectRatioLayout+Layout.swift:30:77: error: reference to member 'zero' cannot be resolved without a contextual type
let idealSubviewSize = subviews.first?.sizeThatFits(.unspecified) ?? .zero
^
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/_AspectRatioLayout+Layout.swift:86:29: error: value of type 'CGRect' has no member 'midX'
at: .init(x: bounds.midX, y: bounds.midY),
~~~~~~ ^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/_AspectRatioLayout+Layout.swift:86:45: error: value of type 'CGRect' has no member 'midY'
at: .init(x: bounds.midX, y: bounds.midY),
~~~~~~ ^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/_FlexFrameLayout+Layout.swift:64:31: error: type 'CGSize' has no member 'zero'
var subviewSizes = CGSize.zero
~~~~~~ ^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/_FlexFrameLayout+Layout.swift:76:23: error: type 'CGSize' has no member 'zero'
var size = CGSize.zero
~~~~~~ ^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/_FlexFrameLayout+Layout.swift:111:33: error: value of type 'CGRect' has no member 'width'
size: .init(width: bounds.width, height: bounds.height),
~~~~~~ ^~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/_FlexFrameLayout+Layout.swift:111:55: error: value of type 'CGRect' has no member 'height'
size: .init(width: bounds.width, height: bounds.height),
~~~~~~ ^~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/_FlexFrameLayout+Layout.swift:118:21: error: value of type 'CGRect' has no member 'minX'
x: bounds.minX + frameDimensions[alignment.horizontal]
~~~~~~ ^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/_FlexFrameLayout+Layout.swift:120:21: error: value of type 'CGRect' has no member 'minY'
y: bounds.minY + frameDimensions[alignment.vertical]
~~~~~~ ^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/_FlexFrameLayout+Layout.swift:121:49: error: cannot convert value of type 'VerticalAlignment' to expected argument type 'HorizontalAlignment'
- cache.dimensions[index][alignment.vertical]
^
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/_FrameLayout+Layout.swift:50:23: error: type 'CGSize' has no member 'zero'
var size = CGSize.zero
~~~~~~ ^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/_FrameLayout+Layout.swift:79:33: error: value of type 'CGRect' has no member 'width'
size: .init(width: bounds.width, height: bounds.height),
~~~~~~ ^~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/_FrameLayout+Layout.swift:79:55: error: value of type 'CGRect' has no member 'height'
size: .init(width: bounds.width, height: bounds.height),
~~~~~~ ^~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/_FrameLayout+Layout.swift:86:21: error: value of type 'CGRect' has no member 'minX'
x: bounds.minX + frameDimensions[alignment.horizontal]
~~~~~~ ^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/_FrameLayout+Layout.swift:88:21: error: value of type 'CGRect' has no member 'minY'
y: bounds.minY + frameDimensions[alignment.vertical]
~~~~~~ ^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Layout/_FrameLayout+Layout.swift:89:49: error: cannot convert value of type 'VerticalAlignment' to expected argument type 'HorizontalAlignment'
- cache.dimensions[index][alignment.vertical]
^
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Passes/LayoutPass.swift:37:24: error: type 'CGPoint' has no member 'zero'
origin: .zero,
~^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Passes/ReconcilePass.swift:254:36: error: type 'CGPoint' has no member 'zero'
origin: .init(origin: .zero),
~^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/Passes/ReconcilePass.swift:255:38: error: type 'CGSize' has no member 'zero'
dimensions: .init(size: .zero, alignmentGuides: [:]),
~^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/ViewGeometry.swift:31:15: error: type 'ViewOrigin' does not conform to protocol 'Equatable'
public struct ViewOrigin: Equatable {
^
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/ViewGeometry.swift:33:14: note: stored property type 'CGPoint' does not conform to protocol 'Equatable', preventing synthesized conformance of 'ViewOrigin' to 'Equatable'
public let origin: CGPoint
^
Swift.==:1:24: note: candidate would match if 'ViewOrigin' conformed to 'RawRepresentable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
^
Swift.FloatingPoint:2:24: note: candidate would match if 'ViewOrigin' conformed to 'FloatingPoint'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.BinaryInteger:2:24: note: candidate would match if 'ViewOrigin' conformed to 'BinaryInteger'
public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
^
Swift._Pointer:2:24: note: candidate would match if 'ViewOrigin' conformed to '_Pointer'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift._Pointer:3:35: note: candidate would match if 'ViewOrigin' conformed to '_Pointer'
@inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
^
Swift.Strideable:3:35: note: candidate would match if 'ViewOrigin' conformed to 'Strideable'
@inlinable public static func == (x: Self, y: Self) -> Bool
^
Swift.StringProtocol:2:35: note: candidate would match if 'ViewOrigin' conformed to 'StringProtocol'
@inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
^
Swift.SIMD:4:24: note: candidate would match if 'ViewOrigin' conformed to 'SIMD'
public static func == (a: Self, b: Self) -> Bool
^
Foundation._BridgedStoredNSError:3:24: note: candidate would match if 'ViewOrigin' conformed to '_BridgedStoredNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'ViewOrigin' conformed to 'AttributedStringProtocol'
public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
^
CoreFoundation._CFObject:4:24: note: candidate would match if 'ViewOrigin' conformed to '_CFObject'
public static func == (left: Self, right: Self) -> Bool
^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(ViewOrigin, ViewOrigin) -> Bool'
static func == (lhs: Self, rhs: Self) -> Bool
^
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/ViewGeometry.swift:41:15: error: type 'ViewDimensions' does not conform to protocol 'Equatable'
public struct ViewDimensions: Equatable {
^
.build/checkouts/Tokamak/Sources/TokamakCore/Fiber/ViewGeometry.swift:43:14: note: stored property type 'CGSize' does not conform to protocol 'Equatable', preventing synthesized conformance of 'ViewDimensions' to 'Equatable'
public let size: CGSize
^
Swift.==:1:24: note: candidate would match if 'ViewDimensions' conformed to 'RawRepresentable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
^
Swift.FloatingPoint:2:24: note: candidate would match if 'ViewDimensions' conformed to 'FloatingPoint'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.BinaryInteger:2:24: note: candidate would match if 'ViewDimensions' conformed to 'BinaryInteger'
public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
^
Swift._Pointer:2:24: note: candidate would match if 'ViewDimensions' conformed to '_Pointer'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift._Pointer:3:35: note: candidate would match if 'ViewDimensions' conformed to '_Pointer'
@inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
^
Swift.Strideable:3:35: note: candidate would match if 'ViewDimensions' conformed to 'Strideable'
@inlinable public static func == (x: Self, y: Self) -> Bool
^
Swift.StringProtocol:2:35: note: candidate would match if 'ViewDimensions' conformed to 'StringProtocol'
@inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
^
Swift.SIMD:4:24: note: candidate would match if 'ViewDimensions' conformed to 'SIMD'
public static func == (a: Self, b: Self) -> Bool
^
Foundation._BridgedStoredNSError:3:24: note: candidate would match if 'ViewDimensions' conformed to '_BridgedStoredNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'ViewDimensions' conformed to 'AttributedStringProtocol'
public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
^
CoreFoundation._CFObject:4:24: note: candidate would match if 'ViewDimensions' conformed to '_CFObject'
public static func == (left: Self, right: Self) -> Bool
^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(ViewDimensions, ViewDimensions) -> Bool'
static func == (lhs: Self, rhs: Self) -> Bool
^
.build/checkouts/Tokamak/Sources/TokamakCore/Modifiers/Effects/GeometryEffect.swift:53:79: error: value of type 'CGAffineTransform' has no member 'inverted'
.init(CGAffineTransform(a: m11, b: m12, c: m21, d: m22, tx: m31, ty: m32).inverted())
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Modifiers/Effects/OffsetEffect.swift:21:15: error: type '_OffsetEffect' does not conform to protocol 'Equatable'
public struct _OffsetEffect: GeometryEffect, Equatable {
^
.build/checkouts/Tokamak/Sources/TokamakCore/Modifiers/Effects/OffsetEffect.swift:22:14: note: stored property type 'CGSize' does not conform to protocol 'Equatable', preventing synthesized conformance of '_OffsetEffect' to 'Equatable'
public var offset: CGSize
^
Swift.==:1:24: note: candidate would match if '_OffsetEffect' conformed to 'RawRepresentable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
^
Swift.FloatingPoint:2:24: note: candidate would match if '_OffsetEffect' conformed to 'FloatingPoint'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.BinaryInteger:2:24: note: candidate would match if '_OffsetEffect' conformed to 'BinaryInteger'
public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
^
Swift._Pointer:2:24: note: candidate would match if '_OffsetEffect' conformed to '_Pointer'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift._Pointer:3:35: note: candidate would match if '_OffsetEffect' conformed to '_Pointer'
@inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
^
Swift.Strideable:3:35: note: candidate would match if '_OffsetEffect' conformed to 'Strideable'
@inlinable public static func == (x: Self, y: Self) -> Bool
^
Swift.StringProtocol:2:35: note: candidate would match if '_OffsetEffect' conformed to 'StringProtocol'
@inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
^
Swift.SIMD:4:24: note: candidate would match if '_OffsetEffect' conformed to 'SIMD'
public static func == (a: Self, b: Self) -> Bool
^
Foundation._BridgedStoredNSError:3:24: note: candidate would match if '_OffsetEffect' conformed to '_BridgedStoredNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if '_OffsetEffect' conformed to 'AttributedStringProtocol'
public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
^
CoreFoundation._CFObject:4:24: note: candidate would match if '_OffsetEffect' conformed to '_CFObject'
public static func == (left: Self, right: Self) -> Bool
^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(_OffsetEffect, _OffsetEffect) -> Bool'
static func == (lhs: Self, rhs: Self) -> Bool
^
.build/checkouts/Tokamak/Sources/TokamakCore/Modifiers/Effects/OffsetEffect.swift:30:16: error: argument passed to call that takes no arguments
.init(.init(translationX: offset.width, y: offset.height))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Modifiers/Effects/RotationEffect.swift:30:29: error: type 'CGAffineTransform' has no member 'identity'
.init(CGAffineTransform.identity.rotated(by: CGFloat(angle.radians)))
~~~~~~~~~~~~~~~~~ ^~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Modifiers/Effects/ScaleEffect.swift:21:15: error: type '_ScaleEffect' does not conform to protocol 'Equatable'
public struct _ScaleEffect: GeometryEffect, Equatable {
^
.build/checkouts/Tokamak/Sources/TokamakCore/Modifiers/Effects/ScaleEffect.swift:22:14: note: stored property type 'CGSize' does not conform to protocol 'Equatable', preventing synthesized conformance of '_ScaleEffect' to 'Equatable'
public var scale: CGSize
^
Swift.==:1:24: note: candidate would match if '_ScaleEffect' conformed to 'RawRepresentable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
^
Swift.FloatingPoint:2:24: note: candidate would match if '_ScaleEffect' conformed to 'FloatingPoint'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.BinaryInteger:2:24: note: candidate would match if '_ScaleEffect' conformed to 'BinaryInteger'
public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
^
Swift._Pointer:2:24: note: candidate would match if '_ScaleEffect' conformed to '_Pointer'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift._Pointer:3:35: note: candidate would match if '_ScaleEffect' conformed to '_Pointer'
@inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
^
Swift.Strideable:3:35: note: candidate would match if '_ScaleEffect' conformed to 'Strideable'
@inlinable public static func == (x: Self, y: Self) -> Bool
^
Swift.StringProtocol:2:35: note: candidate would match if '_ScaleEffect' conformed to 'StringProtocol'
@inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
^
Swift.SIMD:4:24: note: candidate would match if '_ScaleEffect' conformed to 'SIMD'
public static func == (a: Self, b: Self) -> Bool
^
Foundation._BridgedStoredNSError:3:24: note: candidate would match if '_ScaleEffect' conformed to '_BridgedStoredNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if '_ScaleEffect' conformed to 'AttributedStringProtocol'
public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
^
CoreFoundation._CFObject:4:24: note: candidate would match if '_ScaleEffect' conformed to '_CFObject'
public static func == (left: Self, right: Self) -> Bool
^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(_ScaleEffect, _ScaleEffect) -> Bool'
static func == (lhs: Self, rhs: Self) -> Bool
^
.build/checkouts/Tokamak/Sources/TokamakCore/Modifiers/Effects/ScaleEffect.swift:32:16: error: argument passed to call that takes no arguments
.init(.init(scaleX: scale.width, y: scale.height))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Modifiers/ShadowLayout.swift:17:15: error: type '_ShadowEffect' does not conform to protocol 'Equatable'
public struct _ShadowEffect: EnvironmentalModifier, Equatable {
^
.build/checkouts/Tokamak/Sources/TokamakCore/Modifiers/ShadowLayout.swift:20:14: note: stored property type 'CGSize' does not conform to protocol 'Equatable', preventing synthesized conformance of '_ShadowEffect' to 'Equatable'
public var offset: CGSize
^
Swift.==:1:24: note: candidate would match if '_ShadowEffect' conformed to 'RawRepresentable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
^
Swift.FloatingPoint:2:24: note: candidate would match if '_ShadowEffect' conformed to 'FloatingPoint'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.BinaryInteger:2:24: note: candidate would match if '_ShadowEffect' conformed to 'BinaryInteger'
public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
^
Swift._Pointer:2:24: note: candidate would match if '_ShadowEffect' conformed to '_Pointer'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift._Pointer:3:35: note: candidate would match if '_ShadowEffect' conformed to '_Pointer'
@inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
^
Swift.Strideable:3:35: note: candidate would match if '_ShadowEffect' conformed to 'Strideable'
@inlinable public static func == (x: Self, y: Self) -> Bool
^
Swift.StringProtocol:2:35: note: candidate would match if '_ShadowEffect' conformed to 'StringProtocol'
@inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
^
Swift.SIMD:4:24: note: candidate would match if '_ShadowEffect' conformed to 'SIMD'
public static func == (a: Self, b: Self) -> Bool
^
Foundation._BridgedStoredNSError:3:24: note: candidate would match if '_ShadowEffect' conformed to '_BridgedStoredNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if '_ShadowEffect' conformed to 'AttributedStringProtocol'
public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
^
CoreFoundation._CFObject:4:24: note: candidate would match if '_ShadowEffect' conformed to '_CFObject'
public static func == (left: Self, right: Self) -> Bool
^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(_ShadowEffect, _ShadowEffect) -> Bool'
static func == (lhs: Self, rhs: Self) -> Bool
^
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Ellipse.swift:30:5: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
.init(
^~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/FixedRoundedRect.swift:20:15: error: type 'FixedRoundedRect' does not conform to protocol 'Equatable'
public struct FixedRoundedRect: Equatable {
^
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/FixedRoundedRect.swift:21:14: note: stored property type 'CGRect' does not conform to protocol 'Equatable', preventing synthesized conformance of 'FixedRoundedRect' to 'Equatable'
public let rect: CGRect
^
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/FixedRoundedRect.swift:22:14: note: stored property type 'CGSize?' does not conform to protocol 'Equatable', preventing synthesized conformance of 'FixedRoundedRect' to 'Equatable'
public let cornerSize: CGSize?
^
Swift.==:1:24: note: candidate would match if 'FixedRoundedRect' conformed to 'RawRepresentable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
^
Swift.FloatingPoint:2:24: note: candidate would match if 'FixedRoundedRect' conformed to 'FloatingPoint'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.BinaryInteger:2:24: note: candidate would match if 'FixedRoundedRect' conformed to 'BinaryInteger'
public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
^
Swift._Pointer:2:24: note: candidate would match if 'FixedRoundedRect' conformed to '_Pointer'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift._Pointer:3:35: note: candidate would match if 'FixedRoundedRect' conformed to '_Pointer'
@inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
^
Swift.Strideable:3:35: note: candidate would match if 'FixedRoundedRect' conformed to 'Strideable'
@inlinable public static func == (x: Self, y: Self) -> Bool
^
Swift.StringProtocol:2:35: note: candidate would match if 'FixedRoundedRect' conformed to 'StringProtocol'
@inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
^
Swift.SIMD:4:24: note: candidate would match if 'FixedRoundedRect' conformed to 'SIMD'
public static func == (a: Self, b: Self) -> Bool
^
Foundation._BridgedStoredNSError:3:24: note: candidate would match if 'FixedRoundedRect' conformed to '_BridgedStoredNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'FixedRoundedRect' conformed to 'AttributedStringProtocol'
public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
^
CoreFoundation._CFObject:4:24: note: candidate would match if 'FixedRoundedRect' conformed to '_CFObject'
public static func == (left: Self, right: Self) -> Bool
^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(FixedRoundedRect, FixedRoundedRect) -> Bool'
static func == (lhs: Self, rhs: Self) -> Bool
^
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/StrokeStyle.swift:22:23: error: cannot find type 'CGLineCap' in scope
public var lineCap: CGLineCap
^~~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/StrokeStyle.swift:23:24: error: cannot find type 'CGLineJoin' in scope
public var lineJoin: CGLineJoin
^~~~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/ModifiedShapes.swift:131:22: error: argument passed to call that takes no arguments
.applying(.init(scaleX: scale.width, y: scale.height))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/ModifiedShapes.swift:163:38: error: argument passed to call that takes no arguments
.applying(.init(rotationAngle: CGFloat(angle.radians)))
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/Path.swift:54:15: error: type 'Path.Storage' does not conform to protocol 'Equatable'
public enum Storage: Equatable {
^
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/Path.swift:56:15: note: associated value type 'CGRect' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Path.Storage' to 'Equatable'
case rect(CGRect)
^
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/Path.swift:57:18: note: associated value type 'CGRect' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Path.Storage' to 'Equatable'
case ellipse(CGRect)
^
Swift.==:1:24: note: candidate would match if 'Path.Storage' conformed to 'RawRepresentable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
^
Swift.FloatingPoint:2:24: note: candidate would match if 'Path.Storage' conformed to 'FloatingPoint'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.BinaryInteger:2:24: note: candidate would match if 'Path.Storage' conformed to 'BinaryInteger'
public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
^
Swift._Pointer:2:24: note: candidate would match if 'Path.Storage' conformed to '_Pointer'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift._Pointer:3:35: note: candidate would match if 'Path.Storage' conformed to '_Pointer'
@inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
^
Swift.Strideable:3:35: note: candidate would match if 'Path.Storage' conformed to 'Strideable'
@inlinable public static func == (x: Self, y: Self) -> Bool
^
Swift.StringProtocol:2:35: note: candidate would match if 'Path.Storage' conformed to 'StringProtocol'
@inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
^
Swift.SIMD:4:24: note: candidate would match if 'Path.Storage' conformed to 'SIMD'
public static func == (a: Self, b: Self) -> Bool
^
Foundation._BridgedStoredNSError:3:24: note: candidate would match if 'Path.Storage' conformed to '_BridgedStoredNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'Path.Storage' conformed to 'AttributedStringProtocol'
public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
^
CoreFoundation._CFObject:4:24: note: candidate would match if 'Path.Storage' conformed to '_CFObject'
public static func == (left: Self, right: Self) -> Bool
^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(Path.Storage, Path.Storage) -> Bool'
static func == (lhs: Self, rhs: Self) -> Bool
^
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/Path.swift:64:15: error: type 'Path.Element' does not conform to protocol 'Equatable'
public enum Element: Equatable {
^
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/Path.swift:65:19: note: associated value type 'CGPoint' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Path.Element' to 'Equatable'
case move(to: CGPoint)
^
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/Path.swift:66:19: note: associated value type 'CGPoint' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Path.Element' to 'Equatable'
case line(to: CGPoint)
^
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/Path.swift:67:24: note: associated value type 'CGPoint' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Path.Element' to 'Equatable'
case quadCurve(to: CGPoint, control: CGPoint)
^
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/Path.swift:67:42: note: associated value type 'CGPoint' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Path.Element' to 'Equatable'
case quadCurve(to: CGPoint, control: CGPoint)
^
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/Path.swift:68:20: note: associated value type 'CGPoint' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Path.Element' to 'Equatable'
case curve(to: CGPoint, control1: CGPoint, control2: CGPoint)
^
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/Path.swift:68:39: note: associated value type 'CGPoint' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Path.Element' to 'Equatable'
case curve(to: CGPoint, control1: CGPoint, control2: CGPoint)
^
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/Path.swift:68:58: note: associated value type 'CGPoint' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Path.Element' to 'Equatable'
case curve(to: CGPoint, control1: CGPoint, control2: CGPoint)
^
Swift.==:1:24: note: candidate would match if 'Path.Element' conformed to 'RawRepresentable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
^
Swift.FloatingPoint:2:24: note: candidate would match if 'Path.Element' conformed to 'FloatingPoint'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.BinaryInteger:2:24: note: candidate would match if 'Path.Element' conformed to 'BinaryInteger'
public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
^
Swift._Pointer:2:24: note: candidate would match if 'Path.Element' conformed to '_Pointer'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift._Pointer:3:35: note: candidate would match if 'Path.Element' conformed to '_Pointer'
@inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
^
Swift.Strideable:3:35: note: candidate would match if 'Path.Element' conformed to 'Strideable'
@inlinable public static func == (x: Self, y: Self) -> Bool
^
Swift.StringProtocol:2:35: note: candidate would match if 'Path.Element' conformed to 'StringProtocol'
@inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
^
Swift.SIMD:4:24: note: candidate would match if 'Path.Element' conformed to 'SIMD'
public static func == (a: Self, b: Self) -> Bool
^
Foundation._BridgedStoredNSError:3:24: note: candidate would match if 'Path.Element' conformed to '_BridgedStoredNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'Path.Element' conformed to 'AttributedStringProtocol'
public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
^
CoreFoundation._CFObject:4:24: note: candidate would match if 'Path.Element' conformed to '_CFObject'
public static func == (left: Self, right: Self) -> Bool
^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(Path.Element, Path.Element) -> Bool'
static func == (lhs: Self, rhs: Self) -> Bool
^
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/Path.swift:136:26: error: type 'CGRect' has no member 'zero'
case .empty: return .zero
~^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/PathLayout.swift:42:38: error: argument passed to call that takes no arguments
transform = CGAffineTransform(
^
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/PathLayout.swift:47:38: error: argument passed to call that takes no arguments
transform = CGAffineTransform(
^
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/PathLayout.swift:52:22: error: type 'CGAffineTransform' has no member 'identity'
transform = .identity
~^~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/PathLayout.swift:70:12: error: value of type 'CGAffineTransform' has no member 'translatedBy'
.translatedBy(x: rect.origin.x, y: rect.origin.y)
^~~~~~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/PathLayout.swift:110:30: error: type 'CGPoint' has no member 'zero'
control: CGPoint.zero
~~~~~~~ ^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/PathLayout.swift:225:21: error: binary operator '!=' cannot be applied to operands of type 'CGAffineTransform' and '_'
guard transform != .identity else { return self }
~~~~~~~~~ ^ ~~~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/PathLayout.swift:225:25: error: reference to member 'identity' cannot be resolved without a contextual type
guard transform != .identity else { return self }
^
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/PathLayout.swift:232:19: error: argument passed to call that takes no arguments
applying(.init(translationX: dx, y: dy))
^~~~~~~~~~~~~~~~~~~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/PathMutations.swift:21:82: error: type 'CGAffineTransform' has no member 'identity'
private mutating func append(_ other: Storage, transform: CGAffineTransform = .identity) {
~^~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/PathMutations.swift:35:87: error: type 'CGAffineTransform' has no member 'identity'
private mutating func append(_ elements: [Element], transform: CGAffineTransform = .identity) {
~^~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/PathMutations.swift:74:73: error: type 'CGAffineTransform' has no member 'identity'
mutating func addRect(_ rect: CGRect, transform: CGAffineTransform = .identity) {
~^~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/PathMutations.swift:82:37: error: type 'CGAffineTransform' has no member 'identity'
transform: CGAffineTransform = .identity
~^~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/PathMutations.swift:90:77: error: type 'CGAffineTransform' has no member 'identity'
mutating func addEllipse(in rect: CGRect, transform: CGAffineTransform = .identity) {
~^~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/PathMutations.swift:94:77: error: type 'CGAffineTransform' has no member 'identity'
mutating func addRects(_ rects: [CGRect], transform: CGAffineTransform = .identity) {
~^~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/PathMutations.swift:107:37: error: type 'CGAffineTransform' has no member 'identity'
transform: CGAffineTransform = .identity
~^~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/PathMutations.swift:128:37: error: type 'CGAffineTransform' has no member 'identity'
transform: CGAffineTransform = .identity
~^~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/PathMutations.swift:145:37: error: type 'CGAffineTransform' has no member 'identity'
transform: CGAffineTransform = .identity
~^~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/PathMutations.swift:148:71: error: type 'CGAffineTransform' has no member 'identity'
mutating func addPath(_ path: Path, transform: CGAffineTransform = .identity) {
~^~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/PathMutations.swift:26:32: error: value of type 'CGAffineTransform' has no member 'isIdentity'
switch (storage, transform.isIdentity) {
~~~~~~~~~ ^~~~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Path/PathMutations.swift:39:18: error: value of type 'CGAffineTransform' has no member 'isIdentity'
if transform.isIdentity {
~~~~~~~~~ ^~~~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Shape.swift:109:39: error: value of type 'CGRect' has no member 'width'
proposal: .init(width: bounds.width, height: bounds.height)
~~~~~~ ^~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/Shape.swift:109:61: error: value of type 'CGRect' has no member 'height'
proposal: .init(width: bounds.width, height: bounds.height)
~~~~~~ ^~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/StrokeStyle.swift:30:14: error: cannot find type 'CGLineCap' in scope
lineCap: CGLineCap = .butt,
^~~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/StrokeStyle.swift:31:15: error: cannot find type 'CGLineJoin' in scope
lineJoin: CGLineJoin = .miter,
^~~~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/StrokeStyle.swift:20:15: error: type 'StrokeStyle' does not conform to protocol 'Equatable'
public struct StrokeStyle: Equatable {
^
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/StrokeStyle.swift:22:14: note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'StrokeStyle' to 'Equatable'
public var lineCap: CGLineCap
^
.build/checkouts/Tokamak/Sources/TokamakCore/Shapes/StrokeStyle.swift:23:14: note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'StrokeStyle' to 'Equatable'
public var lineJoin: CGLineJoin
^
Swift.==:1:24: note: candidate would match if 'StrokeStyle' conformed to 'RawRepresentable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
^
Swift.FloatingPoint:2:24: note: candidate would match if 'StrokeStyle' conformed to 'FloatingPoint'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift.BinaryInteger:2:24: note: candidate would match if 'StrokeStyle' conformed to 'BinaryInteger'
public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
^
Swift._Pointer:2:24: note: candidate would match if 'StrokeStyle' conformed to '_Pointer'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Swift._Pointer:3:35: note: candidate would match if 'StrokeStyle' conformed to '_Pointer'
@inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
^
Swift.Strideable:3:35: note: candidate would match if 'StrokeStyle' conformed to 'Strideable'
@inlinable public static func == (x: Self, y: Self) -> Bool
^
Swift.StringProtocol:2:35: note: candidate would match if 'StrokeStyle' conformed to 'StringProtocol'
@inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
^
Swift.SIMD:4:24: note: candidate would match if 'StrokeStyle' conformed to 'SIMD'
public static func == (a: Self, b: Self) -> Bool
^
Foundation._BridgedStoredNSError:3:24: note: candidate would match if 'StrokeStyle' conformed to '_BridgedStoredNSError'
public static func == (lhs: Self, rhs: Self) -> Bool
^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'StrokeStyle' conformed to 'AttributedStringProtocol'
public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
^
CoreFoundation._CFObject:4:24: note: candidate would match if 'StrokeStyle' conformed to '_CFObject'
public static func == (left: Self, right: Self) -> Bool
^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(StrokeStyle, StrokeStyle) -> Bool'
static func == (lhs: Self, rhs: Self) -> Bool
^
.build/checkouts/Tokamak/Sources/TokamakCore/ViewTraits/Transition/Transition.swift:102:40: error: type 'CGSize' has no member 'zero'
identity: _OffsetEffect(offset: .zero)
~^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Views/Canvas/GraphicsContext/GraphicsContext.swift:45:20: error: type 'CGAffineTransform' has no member 'identity'
transform = .identity
~^~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Views/Canvas/GraphicsContext/GraphicsContext.swift:46:27: error: type 'CGRect' has no member 'zero'
clipBoundingRect = .zero
~^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Views/Canvas/GraphicsContext/GraphicsContext.swift:101:47: error: argument passed to call that takes no arguments
addFilter(.projectionTransform(.init(.init(scaleX: x, y: y))))
^~~~~~~~~~~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Views/Canvas/GraphicsContext/GraphicsContext.swift:105:47: error: argument passed to call that takes no arguments
addFilter(.projectionTransform(.init(.init(translationX: x, y: y))))
^~~~~~~~~~~~~~~~~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Views/Canvas/GraphicsContext/GraphicsContext.swift:109:63: error: argument passed to call that takes no arguments
addFilter(.projectionTransform(.init(.init(rotationAngle: CGFloat(angle.radians)))))
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Views/Canvas/GraphicsContext/Shading.swift:33:26: error: type 'CGPoint' has no member 'zero'
origin: CGPoint = .zero,
~^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Views/Canvas/GraphicsContext/Shading.swift:34:34: error: argument passed to call that takes no arguments
sourceRect: CGRect = CGRect(x: 0, y: 0, width: 1, height: 1),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Views/Canvas/GraphicsContext/Shading.swift:49:28: error: type 'CGPoint' has no member 'zero'
origin: CGPoint = .zero,
~^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Views/Canvas/GraphicsContext/Shading.swift:50:36: error: argument passed to call that takes no arguments
sourceRect: CGRect = CGRect(x: 0, y: 0, width: 1, height: 1),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Views/Canvas/GraphicsContext/Shading.swift:170:26: error: type 'CGPoint' has no member 'zero'
origin: CGPoint = .zero,
~^~~~
.build/checkouts/Tokamak/Sources/TokamakCore/Views/Canvas/GraphicsContext/Shading.swift:171:34: error: argument passed to call that takes no arguments
sourceRect: CGRect = CGRect(x: 0, y: 0, width: 1, height: 1),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The text was updated successfully, but these errors were encountered:
Describe the bug
TokamakStaticHTML 0.11.0 fails to compile on macOS 13, Xcode 14.1, Swift 5.7.1
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Build succeeds
Actual behavior
Build errors (warning: a lot of text) - result of calling
swift build --target TokamakStaticHTML -c release
The text was updated successfully, but these errors were encountered: