Hi, When an achievement is completed and the value of this property is true, a notification banner is displayed to the player to inform them of the completed achievement. I wonder if at least one person eats from whom it opens? I tried to figure out what was the matter. For the test, I made 2 buttons in one reset of achievements and in the other an addition:
AND
and found that the banner is shown if immediately after resetting the results. if more than a second passes before pressing the second button, then the banner will no longer be shown. If anyone has come across this, tell me this, am I doing something wrong or a bug?
P.S. GKNotificationBanner shown without problems
Code Block Button (action: { GKAchievement.resetAchievements { (error) in print("Done") } }) { Text("RESET") }
AND
Code Block let achievement = GKAchievement(identifier: "ident") achievement.percentComplete = 100.0 achievement.showsCompletionBanner = true GKAchievement.report([achievement]) { (error) in if error != nil { print(error!.localizedDescription) } else { print("Done") } }
and found that the banner is shown if immediately after resetting the results. if more than a second passes before pressing the second button, then the banner will no longer be shown. If anyone has come across this, tell me this, am I doing something wrong or a bug?
P.S. GKNotificationBanner shown without problems