Created
April 6, 2020 14:57
-
-
Save wizard1066/9630c61caacb2994a1caea81f1ff8b56 to your computer and use it in GitHub Desktop.
abgwtp22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var rectIndex = 0 | |
struct InsideViewV: View { | |
@ObservedObject var stepperInst:StepperData | |
var body: some View { | |
return VStack { | |
// if toggle { | |
GeometryReader { geometry in | |
Rectangle() | |
.fill(Color.yellow) | |
.frame(width: minWidith, height: minHeight, alignment: .center) | |
.opacity(0.5) | |
.onAppear { | |
if runOnce { | |
self.stepperInst.stepperDB[rectIndex].stepRect = geometry.frame(in: .global) | |
rectIndex += 1 | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment