Here's a super simple example:
struct ContentView: View {
var body: some View {
ZStack {
Text("Hello World")
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
.overlay {
Rectangle()
.stroke(Color.blue, lineWidth: 16)
.ignoresSafeArea(edges: [.bottom])
}
}
}
which results in:
The desire was to have an even stroke go along with the lower radius of the device, where now the corners are cut off.
I'm not even wanting it animated, just a border. Think the screen sharing border on most video conferencing apps. The Freeform app has something similar when using certain features in SharePlay, but it has a bottom toolbar so that solves the lower radius issue.
Post
Replies
Boosts
Views
Activity
Stumbled across this post and solution and then found that NetService has finally been deprecated as you thought would happen. Wondering if the Network framework has a solution for this now.
I found this SO post: https://stackoverflow.com/questions/60579798/how-to-resolve-addresses-and-port-information-from-an-nwendpoint-service-enum-ca which suggests using a NWConnection and connecting to the service and then discarding the connection after finding the host/port and using that elsewhere. Not great, but likely would work.
Also links to this even older thread https://developer.apple.com/forums/thread/122638 you answered as well.
I'm using a third party C library that handles all the traffic between server/client. I'm adding a bonjour frontend to advertise things which is why I can't use the NWConnection and instead need the host/port to pass in.
Thanks
Also running into this. Did you file a feedback for it? If so, any movement?
Similarly attempting to show from a confirmationDialog has the same problem. Shows up but tapping it doesn't present the share sheet.