Post

Replies

Boosts

Views

Activity

SwiftUI HStack space between elements
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
0
0
2.4k
Sep ’20
Get app clip XCode url
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
2
0
1.1k
Jul ’20