You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
435 B
21 lines
435 B
//
|
|
// Alphabet.swift
|
|
// PadelClub
|
|
//
|
|
// Created by Razmig Sarkissian on 24/05/2024.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
enum Alphabet {
|
|
static let alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
|
|
|
static func letterForIndex(index: Int) -> String? {
|
|
let uppercaseAlphabet = Array(alphabet)
|
|
if let letter = uppercaseAlphabet[safe: index] {
|
|
return String(letter)
|
|
} else {
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
|