Created
September 5, 2019 21:20
-
-
Save adamsinger/1617f67cab3679fe2c06ac227e29db2b to your computer and use it in GitHub Desktop.
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
import SwiftUI | |
struct BugRepro: View { | |
@State var length: Double = 1.0 | |
var body: some View { | |
VStack { | |
Spacer().frame(height: 1) | |
Group { | |
ForEach(0..<3) { i in | |
BugReproElement() | |
} | |
.frame(width: UIScreen.main.bounds.width * CGFloat(length)) | |
}.offset(x: 0, y: -0.5) | |
Slider(value: $length, in: 0.0...1.0) | |
} | |
} | |
} | |
struct BugRepro_Previews: PreviewProvider { | |
static var previews: some View { | |
BugRepro() | |
} | |
} | |
struct BugReproElement: View { | |
var body: some View { | |
VStack { | |
Spacer().frame(height: 1) | |
Text("125lbs×5reps, 135lbs×3reps, 125lbs×5reps, 125lbs×10reps") | |
.frame(minWidth: 0, maxWidth: .infinity, alignment: .leading) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment