-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Open
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.triage neededThis issue needs more specific labelsThis issue needs more specific labels
Description
Description
var body: some View {
VStack {
Text("Heart Rate")
.fixedSize(horizontal: true, vertical: true)
.font(.system(Font.TextStyle.headline))
.foregroundColor(.gray)
Text(String(format: "%d", Heart ?? Heart))
.fixedSize(horizontal: true, vertical: true)
.font(.system(Font.TextStyle.largeTitle))
.foregroundColor(.red)
Image(systemName: "heart.fill")
.foregroundColor(.red)
}
.padding()
}
The var body: some View
of my app is what caused the bug.
Reproduction
Text(String(format: "%d", Heart ?? Heart))
Expected behavior
Making the body variable of the View struct named ContentView.
Environment
6.0.3
Additional information
XCode made me report it.
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.triage neededThis issue needs more specific labelsThis issue needs more specific labels