File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
validation-test/Sema/SwiftUI Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ // RUN: %target-typecheck-verify-swift -target %target-cpu-apple-macosx10.15 -swift-version 5 -disable-availability-checking
2
+ // REQUIRES: objc_interop
3
+ // REQUIRES: OS=macosx
4
+
5
+ import SwiftUI
6
+
7
+ struct FullScreenView < Content> : View where Content: View {
8
+ @State private var showFullScreen : Bool = false
9
+
10
+ var x : Double = 0
11
+ var y : Double = 0
12
+
13
+ var content : ( ) -> Content
14
+
15
+ // Body of this view used to cause rapid memory use.
16
+ var body : some View {
17
+ ZStack {
18
+ VStack {
19
+ HStack {
20
+ Button {
21
+ } label: {
22
+ Text ( " a " )
23
+ }
24
+ . offset ( x: x, y: y)
25
+ }
26
+ }
27
+ }
28
+ . fullScreenCover ( isPresented: $showFullScreen) {
29
+ ZStack {
30
+ VStack {
31
+ HStack {
32
+ Button {
33
+
34
+ } label: {
35
+ Text ( " a " )
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
You can’t perform that action at this time.
0 commit comments