<!--
{
  "availability" : [
    "iOS: 6.0.0 - 7.0.0",
    "iPadOS: 6.0.0 - 7.0.0",
    "macOS: 10.8.0 - 10.10.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKChallengeEventHandlerDelegate/shouldShowBanner(forLocallyCompletedChallenge:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(pl)GKChallengeEventHandlerDelegate(im)shouldShowBannerForLocallyCompletedChallenge:"
  },
  "title" : "shouldShowBanner(forLocallyCompletedChallenge:)"
}
-->

# shouldShowBanner(forLocallyCompletedChallenge:)

Called to determine whether a banner should be shown when the local player completes a challenge.

```
optional func shouldShowBanner(forLocallyCompletedChallenge challenge: GKChallenge!) -> Bool
```

## Parameters

`challenge`

The completed challenge.

## Return Value

Your delegate should return <doc://com.apple.documentation/documentation/Swift/true> if it wants a banner to be displayed. Otherwise it should return <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

If you do not implement this method, a banner is always shown.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)