-
Notifications
You must be signed in to change notification settings - Fork 13
Ranked Tiers
Antoine CLOP edited this page Aug 2, 2020
·
4 revisions
Ranked Tiers represent the major division of a player in ranked games. It goes from Iron to Challenger and can be divided in sub divisions. You'll get tier informations from methods like Ranked Leagues or Spectator Live Game.
- GetEmblem(for: RankedTier)
- RankedTier: Represents the League Ranked Tier to get the image from.
This method is synchrone, and will return the UIImage corresponding to the RankedTier parameter. Return value will be nil only if RankedTier is Unknown.
guard let rankedTier = RankedTier(.Diamond) else { return }
if let rankedTierImage = league.lolAPI.getEmblem(for: rankedTier) {
print("Success!")
}
else {
print("Failure: Perhaps Unknown was provided, otherwise it is a LeagueAPI bug, please create an issue")
}