开始请求,HUD展示
SVProgressHUD.show()
请求成功后,HUD消失
DispatchQueue.main.async {
SVProgressHUD.dismiss()
}
成功处理
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now()+0.2, execute: {
SVProgressHUD.showInfo(withStatus: "取消收藏成功!")
SVProgressHUD.dismiss(withDelay: 0.5)
})
网友评论