<!--
{
  "availability" : [
    "iOS: 18.4.0 -",
    "iPadOS: 18.4.0 -",
    "macCatalyst: 18.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPNowPlayingSportsTeam",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(cs)CPNowPlayingSportsTeam"
  },
  "title" : "CPNowPlayingSportsTeam"
}
-->

# CPNowPlayingSportsTeam

A representation of a sports team for the now playing screen,
in sports that have exactly two teams.

```
@MainActor class CPNowPlayingSportsTeam
```

## Topics

### Initializers

[`init?(coder: NSCoder)`](/documentation/CarPlay/CPNowPlayingSportsTeam/init(coder:))

[`init(name: String, logo: CPNowPlayingSportsTeamLogo, teamStandings: String?, eventScore: String, possessionIndicator: UIImage?, favorite: Bool)`](/documentation/CarPlay/CPNowPlayingSportsTeam/init(name:logo:teamStandings:eventScore:possessionIndicator:favorite:))

Initialize a sports team for display on the now playing screen.

### Instance Properties

[`var eventScore: String`](/documentation/CarPlay/CPNowPlayingSportsTeam/eventScore)

The numeric score string for this team in the current event. Depending on the size
of the car screen, a maximum of 3 to 5 characters may be displayed.

[`var isFavorite: Bool`](/documentation/CarPlay/CPNowPlayingSportsTeam/isFavorite)

If true, the team is marked with a star to indicate it has been saved as a
user favorite.

[`var logo: CPNowPlayingSportsTeamLogo`](/documentation/CarPlay/CPNowPlayingSportsTeam/logo)

The team logo or, if no logo is available, the initials/abbreviation for this team.
See @c CPNowPlayingSportsTeamLogo.

[`var name: String`](/documentation/CarPlay/CPNowPlayingSportsTeam/name)

A localized, user-visible name for this sports team.

[`var possessionIndicator: UIImage?`](/documentation/CarPlay/CPNowPlayingSportsTeam/possessionIndicator)

An optional indicator used to indicate possession by this team.
Only one team should have possession at a given time.

[`var teamStandings: String?`](/documentation/CarPlay/CPNowPlayingSportsTeam/teamStandings)

An optional additional label displayed near the team name. This could be a
win-loss ratio string, team standings, or other statistics relevant to this team.
Depending on the size of the car screen, a maximum of 15-20 characters may
be displayed.

## Relationships

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Conforms To

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`Sendable`](/documentation/Swift/Sendable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`CVarArg`](/documentation/Swift/CVarArg)

---

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)