Ad
  • Custom User Avatar

    if i change the return type to String? I will have to make force unwrapping to get non-optional answer, but the answer can be nil. Force unwrapping of nil is a error. I mean not "nil. I mean nil

  • Custom User Avatar

    This does not work on Swift because you need to return either nil or String, but both options cannot be made in Swift. Either String or "nil"