Closed amadeu01 closed 4 years ago
I've also tried stuff like:
Link(to: "/pipe/:" + pipe.id) {
VStack(alignment: .leading) {
Text("Text")
Text("Text")
Text("Text")
Text("Text")
}
}.padding().background(Color.green)
Which resulted in
SwiftUI Router's Link
is basically just a wrapper around a Button
. Could you try the following?
Link(to: "/pipe/:" + pipe.id) {
// Etc ...
}
.buttonStyle(PlainButtonStyle())
This should erase any predefined styling of a Button.
I'm not really sure if it is something in the lib or I just messed things.
When I try something like:
I get this:
Link
seems to display this weird white rectangle behind the view. I'm not sure how I should use it.