HowTo: theta-client 1.11.1 with iOS 18 using Swift from demo-ios

Now with iOS 18.2 on Physical Device

image view works with no problems

Live Preview Works with No problems

Network configuration


Client Mode

In ThetaSdk.swfit

class Theta {
    static let endPoint: String = "http://192.168.86.163"
    var thetaRepository: ThetaRepository?
    var lastInfo: ThetaInfo?

    func reset() {
        thetaRepository = nil
    }

    func initialize() async throws {
        if thetaRepository != nil {
            return
        }
        var config: ThetaRepository.Config?

        // Client mode authentication settings
        config = ThetaRepository.Config()
        config?.clientMode = DigestAuth(username: "THETAYR14113409", password: "14113409")

I tested the following with client mode:

  • live preview
  • take picture
  • list files - to get data