Size: a a a

2020 April 21

AK

Aleksey Konshin in iOS Fathers
источник

AK

Aleksey Konshin in iOS Fathers
Простите
источник

S

Sasha_A in iOS Fathers
Вовка
// The method will be called on the delegate only if the application is in the foreground. If the method is not implemented or the handler is not called in a timely manner then the notification will not be presented. The application can choose to have the notification presented as a sound, badge, alert and/or in the notification list. This decision should be based on whether the information in the notification is otherwise visible to the user.
@available(iOS 10.0, *)
optional func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void)
а, ну я же говорю, что-то новое. Я просто перед этим проектом, на прошлом, мы поддерживали iOS 7, и это всё руками делали
источник

IG

Ivan Gaydamakin in iOS Fathers
гг
источник

AK

Aleksey Konshin in iOS Fathers
источник

В

Вовка in iOS Fathers
Sasha_A
а, ну я же говорю, что-то новое. Я просто перед этим проектом, на прошлом, мы поддерживали iOS 7, и это всё руками делали
новое, иос 10)))
источник

В

Вовка in iOS Fathers
Сорян, согласен, у меня такое же
источник

В

Вовка in iOS Fathers
))
источник

В

Вовка in iOS Fathers
Вовка
Сорян, согласен, у меня такое же
это я про дату
источник

В

Вовка in iOS Fathers
open func configureDateFormatter(for date: Date) {
   switch true {
   case Calendar.current.isDateInToday(date) || Calendar.current.isDateInYesterday(date):
       formatter.doesRelativeDateFormatting = true
       formatter.dateStyle = .short
       formatter.timeStyle = .short
   case Calendar.current.isDate(date, equalTo: Date(), toGranularity: .weekOfYear):
       formatter.dateFormat = "EEEE h:mm a"
   case Calendar.current.isDate(date, equalTo: Date(), toGranularity: .year):
       formatter.dateFormat = "E, d MMM, h:mm a"
   default:
       formatter.dateFormat = "MMM d, yyyy, h:mm a"
   }
}


из MessageKit
источник

IG

Ivan Gaydamakin in iOS Fathers
спасибки,  осталось на обжс переписать)000
источник

В

Вовка in iOS Fathers
^ вон выше попроще
источник

IG

Ivan Gaydamakin in iOS Fathers
Вовка
open func configureDateFormatter(for date: Date) {
   switch true {
   case Calendar.current.isDateInToday(date) || Calendar.current.isDateInYesterday(date):
       formatter.doesRelativeDateFormatting = true
       formatter.dateStyle = .short
       formatter.timeStyle = .short
   case Calendar.current.isDate(date, equalTo: Date(), toGranularity: .weekOfYear):
       formatter.dateFormat = "EEEE h:mm a"
   case Calendar.current.isDate(date, equalTo: Date(), toGranularity: .year):
       formatter.dateFormat = "E, d MMM, h:mm a"
   default:
       formatter.dateFormat = "MMM d, yyyy, h:mm a"
   }
}


из MessageKit
ммм
источник

В

Вовка in iOS Fathers
Пойду еще в другом месте гляну
источник

В

Вовка in iOS Fathers
может еще как-то юзал
источник

В

Вовка in iOS Fathers
пару минут)
источник

MS

Maksym Savisko in iOS Fathers
Прям Fathers driven development)
источник

В

Вовка in iOS Fathers
скинул в лс, балдей
источник

В

Вовка in iOS Fathers
там тоже самое только по другому писаное
источник

IG

Ivan Gaydamakin in iOS Fathers
спасибки
источник