You need to call this function in background thread, asynchronously
DispatchQueue.global().async {
plan.addPlan(with: validRequest) {[weak self] result in
//...
}
}
Topic:
App & System Services
SubTopic:
General
Tags: