@Claude31 that solved it. I simply changed
**
let customToken = resData["customToken"]**
to
**
let customToken = resData["customToken"] as? String**
Thanks for your help.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: