AlertToast icon indicating copy to clipboard operation
AlertToast copied to clipboard

toast is not close

Open cairongquan opened this issue 1 year ago • 0 comments

.toast(isPresenting: $canShowWXLoginToast,duration: isRequireDone ? 2 : 0) { if !isRequireDone { return AlertToast(type: .loading, title: "登录加载中...") } else if wxLoginSuccess { return AlertToast(type: .complete(.green),title: "登录成功",subTitle:"(Store.StoreShared.userName)" ,style: .style(titleFont:.system(size: 16).bold(),subTitleFont:.system(size: 16).bold())) } else { return AlertToast(type: .error(.red), title: "登录失败") } } This is my code. I tried to make duration dynamic, but when the isRequireDone variable is true, Toast was not closed. I want to know why?

cairongquan avatar Apr 07 '24 09:04 cairongquan