Xcode 11.5
In RegisterView When using the
VSTACK {
…
} .background(WelcomeBackgroundImage())
The image appears as if the resizable() is not used see above.
The same behaviour is seen when I compile the FINAL directory.
Xcode 11.5
In RegisterView When using the
VSTACK {
…
} .background(WelcomeBackgroundImage())
The image appears as if the resizable() is not used see above.
The same behaviour is seen when I compile the FINAL directory.
If I remove the resizable() from WelcomeBackgroundImage then we get the desired effect.
The toggle button is now spread across the entire width of the view. I had to set the frame width to a fixed amount to have the “Remember me” next to the toggle switch, otherwise the Remember me is to the far left and the toggle is to the far right.
HStack{
Spacer()
Toggle(isOn: $userManager.settings.rememberUser) {
Text("Remember Me")
.font(.subheadline)
.foregroundColor(.gray)
}.frame(width: 160, height: 40, alignment: .trailing)
}
Hi, sorry for replying so late… this has been fixed in the latest version of the book, released a couple days ago.