How can I implement Jitsi SDK in SwiftUI?


I am trying to integrate Jitsi with my iOS app that uses SwiftUI.

I got it far enough to join the meeting, but I couldn’t get it to work with events such as when the user leaves a meeting or somebody joins, etc. How can I do that?

Here is my code:

import Foundation
import UIKit
import SwiftUI
import JitsiMeet
struct JitsiEmbed: UIViewRepresentable {

    @Binding var meetServer: String
    @Binding var meetCode: String
    public func makeUIView(context: Context) -> JitsiMeetView {

        let defaultOptions = JitsiMeetConferenceOptions.fromBuilder { (builder) in
            builder.serverURL = URL(string: meetServer)
            builder.welcomePageEnabled = false
        JitsiMeet.sharedInstance().defaultConferenceOptions = defaultOptions
        // create and configure jitsimeet view
        let jitsiMeetView = JitsiMeetView()
        let options = JitsiMeetConferenceOptions.fromBuilder { (builder) in
            // for JaaS use <tenant>/<roomName> format
   = meetCode
        // join room and display jitsi-call
        return jitsiMeetView

    public func updateUIView(_ uiView: JitsiMeetView , context: Context) {
        func conferenceTerminated(_ data: [AnyHashable : Any]!) {
            DispatchQueue.main.async {
                print("Call Close")


Hi. I am interested in your approach. Did you solve it?
I am trying to create a pure SWIFTUI APP…

Yes I did, here is my github project GitHub - SkyfallenHQ/SkyMakeApp: Official SkyMake iOS and iPadOS App, Designed to make distance education better with AR and Simplicity

1 Like

That’s awesome. Thank you for sharing.
I am impressed !