Post

Replies

Boosts

Views

Activity

Reply to Tell me about Swift and Callkit
Thank you very much. I am creating a video call using SkyWay in SwiftUI, and I plan to use Callkit to make and receive calls, but I cannot switch the screen view properly. Here is an excerpt of the source code I want to activate vidioView.swift, is there any good way to do this? vidioView.swift func setupPeerCallBacks(peer:SKWPeer) {         peer.on(SKWPeerEventEnum.PEER_EVENT_CONNECTION) { obj in             if let connection = obj as? SKWDataConnection{                 if self.dataConnection == nil {                     self.callCenter.IncomingCall(true)                 }                 self.dataConnection = connection                 self.setupDataConnectionCallbacks(dataConnection: connection)             }         } } callcenter.swift     func IncomingCall(_ hasVideo: Bool = false) {         uuid = UUID()         let update = CXCallUpdate()         update.remoteHandle = CXHandle(type: .generic, value: CallName)         update.hasVideo = hasVideo         provider.reportNewIncomingCall(with: uuid, update: update) { error in             if let error = error {                 print("reportNewIncomingCall error: \(error.localizedDescription)")             }         }     }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’21
Reply to Location information using CoreLocation
The result of the location information is that you should be on the road, but you are in a house along the road a little to the side.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’21
Reply to Tell me about Swift and Callkit
Thank you very much. I am creating a video call using SkyWay in SwiftUI, and I plan to use Callkit to make and receive calls, but I cannot switch the screen view properly. Here is an excerpt of the source code I want to activate vidioView.swift, is there any good way to do this? vidioView.swift func setupPeerCallBacks(peer:SKWPeer) {         peer.on(SKWPeerEventEnum.PEER_EVENT_CONNECTION) { obj in             if let connection = obj as? SKWDataConnection{                 if self.dataConnection == nil {                     self.callCenter.IncomingCall(true)                 }                 self.dataConnection = connection                 self.setupDataConnectionCallbacks(dataConnection: connection)             }         } } callcenter.swift     func IncomingCall(_ hasVideo: Bool = false) {         uuid = UUID()         let update = CXCallUpdate()         update.remoteHandle = CXHandle(type: .generic, value: CallName)         update.hasVideo = hasVideo         provider.reportNewIncomingCall(with: uuid, update: update) { error in             if let error = error {                 print("reportNewIncomingCall error: \(error.localizedDescription)")             }         }     }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to How do I fill in CXProviderDelegate in SwiftUI?
Thank you very much. It worked fine. The only thing is that func provider(_ provider: CXProvider, perform action: CXAnswerCallAction) How can I transition the View after confirming an incoming call?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’21