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 UNNotification
You are right, sorry about that. The following process is now in place. As you know, User Notifications Framework was added in iOS10, and the framework is defined in the following three sections. Create a UNNotificationAction Create UNNotificationCategory by specifying the created UNNotificationAction. Set the created UNNotificationCategory to UNUserNotificationCenter In the display, the UNNotificationAction section is not displayed from the beginning, and you need to press and hold to display the action. In short, is it possible to display the buttons defined in Action from the beginning like a dialog?
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’21