Home > Net >  Type '()' cannot conform to 'AttributedStringProtocol'
Type '()' cannot conform to 'AttributedStringProtocol'

Time:11-16

So I have a function inside my main model viewer, with the following code:

class MainViewModel: ObservableObject {
    func getUserUsername() {
        if let u = User.current {
            username =  u.username ?? ""
        } else {
            username = ""
        }
        log.info("\n            
  • Related