Skip to content

AlertController not showing up with warning: Attempt to present UIAlertController on UINavigationController whose view is not in the window hierarchy! #120

@sandeepbol

Description

@sandeepbol

I am notifying Armchair of a significant event from a callback of a async request as follows

func onTransactionCompleted(status: TransactionStatus) {
  if (status == .success) {
      DispatchQueue.main.async {
        Armchair.userDidSignificantEvent(true)
      }
  }
}

but Alertcontroller is not shown and debugger shows

warning: Attempt to present UIAlertController on UINavigationController whose view is not in the window hierarchy!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions