File tree 4 files changed +48
-1
lines changed
OpenSwiftUICompatibilityTests
OpenSwiftUITests/Core/Semantics
4 files changed +48
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,12 @@ struct UIHostingControllerTests {
16
16
)
17
17
)
18
18
func testBasicAnyView( ) throws {
19
+ guard #unavailable( iOS 18 ) else {
20
+ withKnownIssue {
21
+ Issue . record ( " Known crash issue on iOS 18 " )
22
+ }
23
+ return
24
+ }
19
25
struct ContentView : View {
20
26
var body : some View {
21
27
AnyView ( EmptyView ( ) )
@@ -34,6 +40,12 @@ struct UIHostingControllerTests {
34
40
)
35
41
)
36
42
func testBasicAnyViewWithProperty( ) throws {
43
+ guard #unavailable( iOS 18 ) else {
44
+ withKnownIssue {
45
+ Issue . record ( " Known crash issue on iOS 18 " )
46
+ }
47
+ return
48
+ }
37
49
struct ContentView : View {
38
50
var name = " "
39
51
var body : some View {
Original file line number Diff line number Diff line change @@ -35,6 +35,12 @@ struct ChangedBodyPropertyTests {
35
35
#endif
36
36
@Test
37
37
func zeroPropertyView( ) throws {
38
+ guard #unavailable( iOS 18 ) else {
39
+ withKnownIssue {
40
+ Issue . record ( " Known crash issue on iOS 18 " )
41
+ }
42
+ return
43
+ }
38
44
struct ContentView : View {
39
45
var body : some View {
40
46
let _ = Self . _logChanges ( )
@@ -56,6 +62,12 @@ struct ChangedBodyPropertyTests {
56
62
#endif
57
63
@Test
58
64
func propertyView( ) throws {
65
+ guard #unavailable( iOS 18 ) else {
66
+ withKnownIssue {
67
+ Issue . record ( " Known crash issue on iOS 18 " )
68
+ }
69
+ return
70
+ }
59
71
struct ContentView : View {
60
72
var name = " "
61
73
var body : some View {
@@ -78,6 +90,12 @@ struct ChangedBodyPropertyTests {
78
90
#endif
79
91
@Test
80
92
func statePropertyView( ) throws {
93
+ guard #unavailable( iOS 18 ) else {
94
+ withKnownIssue {
95
+ Issue . record ( " Known crash issue on iOS 18 " )
96
+ }
97
+ return
98
+ }
81
99
struct ContentView : View {
82
100
@State var name = " "
83
101
var body : some View {
Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ import Testing
8
8
struct AppearanceActionModifierTests {
9
9
@Test
10
10
func appear( ) async throws {
11
+ guard #unavailable( iOS 18 ) else {
12
+ withKnownIssue {
13
+ Issue . record ( " Known crash issue on iOS 18 " )
14
+ }
15
+ return
16
+ }
11
17
struct ContentView : View {
12
18
var confirmation : Confirmation
13
19
Original file line number Diff line number Diff line change 5
5
@testable import OpenSwiftUI
6
6
import Testing
7
7
8
- struct SemanticFeatureTests {
8
+ @MainActor
9
+ final class SemanticFeatureTests {
10
+ private let originalValue : Semantics ?
11
+
12
+ init ( ) {
13
+ originalValue = Semantics . forced
14
+ }
15
+
16
+ deinit {
17
+ Semantics . forced = originalValue
18
+ }
19
+
9
20
/// Represent a minimum version
10
21
struct SemanticFeature1 : SemanticFeature {
11
22
static var introduced : Semantics { . init( value: 0x0000_0000 ) }
You can’t perform that action at this time.
0 commit comments