Using an if or a guard instead of a switch

guard case let .onLogin(account) = gigyaEvent,
      let uid = account.UID else {
    return
}