rensbreur / SwiftTUI

SwiftUI for terminal applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spacer inside ScrollView breaks layout

Amzd opened this issue · comments

Putting a horizontal Spacer inside a ScrollView breaks layout.

ScrollView {
  VStack {
    HStack {
      Button("test ") {}
      Spacer() // this spacer inside scrollview is bad!
      Text("text i want to align right")
    }
  }.border(.blue)
}.border()

image

Am I doing something wrong or is this expected? Really cool project otherwise!

That sure looks like a bug, thank you for reporting!