Fix: iPad Name too long for QuickShare

This commit is contained in:
Leon Böttger committed 2025-08-18 15:14:26 +02:00
1 parent cecffa1aaa
commit 1eebce1caa
2 files changed
+21 -2

No files matched your search

@@ -48,7 +48,7 @@ public class NearbyConnectionManager: NSObject, NetServiceDelegate, InboundNearb
#if os(macOS)
self.deviceInfo = EndpointInfo(name: Host.current().localizedName ?? "Mac", deviceType: .computer)
#else
self.deviceInfo = EndpointInfo(name: UIDevice.current.marketingName, deviceType: .phone)
self.deviceInfo = EndpointInfo(name: UIDevice.current.marketingName.withoutBracketedContent, deviceType: .phone)
#endif
tcpListener = try! NWListener(using: NWParameters(tls: .none))