Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ struct ForEachUITests {
}
}
}
openSwiftUIAssertAnimationSnapshot(of: ContentView())
withKnownIssue(isIntermittent: true) {
openSwiftUIAssertAnimationSnapshot(of: ContentView())
}
}
}
4 changes: 3 additions & 1 deletion Example/OpenSwiftUIUITests/View/ToggleUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ struct ToggleUITests {
}
}
#if os(iOS) || os(visionOS)
openSwiftUIAssertSnapshot(of: ContentView())
withKnownIssue(isIntermittent: true) {
openSwiftUIAssertSnapshot(of: ContentView())
}
#else
withKnownIssue("checkBox style is not supported yet") {
openSwiftUIAssertSnapshot(of: ContentView())
Expand Down
10 changes: 3 additions & 7 deletions Sources/OpenSwiftUICore/Shape/PathData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ package import OpenRenderBoxShims
// MARK: - PathData

/// A union-like structure matching the C PathData union layout.
/// Size: 0x70 (112) bytes to match the buffer size.
/// Size: 0x60 (96) bytes to match the buffer size.
///
/// C definition:
///
/// typedef union PathData {
/// CGPathRef cgPath; // 8 bytes (pointer)
/// ORBPath rbPath; // 16 bytes (2 pointers)
/// uint8_t buffer[0x70]; // 112 bytes
/// uint8_t buffer[0x60]; // 96 bytes
/// } PathData;
package struct PathData {
// 112 bytes of raw storage (0x70)
// 96 bytes of raw storage (0x60)
package typealias Buffer = (
UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8,
UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8,
Expand All @@ -33,8 +33,6 @@ package struct PathData {
UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8,
UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8,
UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8,
UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8,
UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8,
UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8
)

Expand All @@ -51,8 +49,6 @@ package struct PathData {
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0
)

package init() {}
Expand Down
2 changes: 1 addition & 1 deletion Sources/OpenSwiftUI_SPI/Util/PathData.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ typedef union PathData {
#else
ORBPath rbPath;
#endif
uint8_t buffer[0x70];
uint8_t buffer[0x60];
} PathData;

OPENSWIFTUI_ASSUME_NONNULL_END
Expand Down
Loading