Hello,
I am having the following code:
VStack{
Image()
HStack(alignment: .center) {
VStack(alignment: .leading{
Text("1")
Text("2")
}.border(Color.red, width: 4)
/* Spacer() */
Text("3").border(Color.red, width: 4)
}
}
I want that the VStack inside the HStack to take the maximum available width after taking in the account Text("3").
However, there is a large space between them when I use Spacer(), and using GeometryReader is not going to work as there might be different values for Text("3")
Am I using layouts wrong?
Thanks
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hello everybody.
I added in XCode as parameter XCAppClipURL to my url which is added also in associated domains as
appclips:example.com
I followed the instructions presented here - https://developer.apple.com/documentation/app_clips/responding_to_invocations#overview on scene(_:willConnectTo:options:) like this:
if let userActivity = scene.userActivity{
respondTo(userActivity)
}
And then placed the code provided for respondTo.
However, when going with the debugger I couldn't get to the end of the code because some parameters are null.
What am I doing wrong when trying to open the scene?
Thank you