Проверка шаблона шины для iOS
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.

Aux.swift 260B

10 kuukautta sitten
10 kuukautta sitten
10 kuukautta sitten
12345678
  1. /// Пропускаем лишь значения от UI
  2. ///
  3. /// - Returns: Значение без префиксов "a:"/"u:"
  4. func onlyAcceptUIText(_ s: String) -> String? {
  5. guard s.hasPrefix("u:") else { return nil }
  6. return String(s.dropFirst(2))
  7. }