То, что обязательно надо проверить перед покупкой бу Mac OS девайса. 🤪
https://medium.com/@mulligan/how-i-sold-an-old-mac-and-unknowingly-tracked-its-location-for-over-3-years-9a35cd3ca4cf
https://medium.com/@mulligan/how-i-sold-an-old-mac-and-unknowingly-tracked-its-location-for-over-3-years-9a35cd3ca4cf
Medium
How I sold an old Mac and unknowingly had access to its location for over 3 years
So this crazy thing happened recently with an old Mac I sold on Craigslist a few years ago. I noticed it was still showing up in my Find My…
Как читать логи девайса если нет возможности дебажить.
А именно достать APNS token.
https://medium.com/@wdyluis/how-do-i-know-apns-device-tokens-for-my-production-apps-cadd431ec29a
А именно достать APNS token.
https://medium.com/@wdyluis/how-do-i-know-apns-device-tokens-for-my-production-apps-cadd431ec29a
Medium
How do I know APNS device tokens for my production apps?
Note: this solution is applicable for Xcode 8 and iOS 10. The way to get per-app device tokens may vary in the future.
Best practices по работа co Storyboards.
http://telegra.ph/More-Interface-Builder-Tips-And-Tricks-02-28
http://telegra.ph/More-Interface-Builder-Tips-And-Tricks-02-28
Telegraph
More Interface Builder Tips And Tricks
My top ten tips, tricks, dos and don’ts to make you feel like an Interface Builder expert. I wrote about the first two of these nearly five years ago. See Xcode Interface Builder Tips if you are nostalgic for pre-iOS 7 design. Here is a more up-to-date list…
Суппер крутая штука! Warnings в SWIFT!!!
То что всегда было в Objc и то чего так не хватало в новых версиях Swift
GIST_URL: https://gist.github.com/vlaskos/fcff0e9d1701ed8be620e1a74b07d62b
https://medium.com/ios-os-x-development/highlight-warnings-in-xcode-521125121a75
То что всегда было в Objc и то чего так не хватало в новых версиях Swift
GIST_URL: https://gist.github.com/vlaskos/fcff0e9d1701ed8be620e1a74b07d62b
https://medium.com/ios-os-x-development/highlight-warnings-in-xcode-521125121a75
Medium
Highlight Warnings in Xcode
In Swift Development, we usually use a TODO comment as a placeholder for future refactor — with that Xcode will conveniently shows the…
Неплохой сборник всех самых популярных архитектурных паттернов
https://github.com/vlaskos/fantastic-ios-architecture
https://github.com/vlaskos/fantastic-ios-architecture
GitHub
vlaskos/fantastic-ios-architecture
fantastic-ios-architecture - :japanese_castle: Better ways to structure iOS apps
Удобно тестить pixel perfect design на скорую руку в симуляторе.
https://youtu.be/lnHzRcVeYpc
https://youtu.be/lnHzRcVeYpc
YouTube
Flawless App Public Demo
Кодогенерация.
Раньше пользовался темплейтами для создания mvc, viper модулей, да и вообще связки большой цепочки класов (+ тесты + протоколы). Но с шаблонами тоже много возни. Новые тулзы позволяют генерить класы для чего угодно: хочешь - пустые темплейты, хочешь - класс для картинок из ассетов, хочешь - класс с кастомными фонтами, хочешь - класс для сторибордов со всеми контроллерами, хочешь - локалайз для всех стрингов, хочешь вообще упороться - класс с цветами из зеплин файлика или apple palette. Короче, главное захотеть. В аттаче ссылка на habr с генерамбой из Ramblers&Co и пару реп на github.
https://habrahabr.ru/company/rambler-co/blog/276275/
https://www.youtube.com/watch?v=NXNiN9FaUnY
https://github.com/rambler-digital-solutions/Generamba
https://github.com/SwiftGen/SwiftGen
https://github.com/krzysztofzablocki/Sourcery
Раньше пользовался темплейтами для создания mvc, viper модулей, да и вообще связки большой цепочки класов (+ тесты + протоколы). Но с шаблонами тоже много возни. Новые тулзы позволяют генерить класы для чего угодно: хочешь - пустые темплейты, хочешь - класс для картинок из ассетов, хочешь - класс с кастомными фонтами, хочешь - класс для сторибордов со всеми контроллерами, хочешь - локалайз для всех стрингов, хочешь вообще упороться - класс с цветами из зеплин файлика или apple palette. Короче, главное захотеть. В аттаче ссылка на habr с генерамбой из Ramblers&Co и пару реп на github.
https://habrahabr.ru/company/rambler-co/blog/276275/
https://www.youtube.com/watch?v=NXNiN9FaUnY
https://github.com/rambler-digital-solutions/Generamba
https://github.com/SwiftGen/SwiftGen
https://github.com/krzysztofzablocki/Sourcery
Хабр
Генерамба — кодогенератор для iOS разработки
TL;DR Мы написали классный кодогенератор для iOS-разработки, обладающий следующими достоинствами: Поддержка Swift и Objective-C, Использование языка разметки...
В Swift 4.1 появились две директивы: canImport и targetEnvironment. Доступны уже сейчас в Xcode 9.3 beta 4.
Первая будет полезна для кроссплатформенных решений и позволяет определить, можно ли импортировать тот или иной модуль.
#if canImport(UIKit)
// UIKit-based code
#elseif canImport(Cocoa)
// OSX code
#elseif
// Workaround/text, whatever
#endif
Вторая директива с единственно возможным аргументом simulator позволяет выполнить условную компиляцию для симулятора или реального девайса. Теперь не нужно перечислять все любимые нам архитектуры и ОС (arch(i386) || arch(x86_64)) && (!os(macOS)), а достаточно будет этого:
// Test for a simulator destination
#if targetEnvironment(simulator)
print("Simulator")
#else
print("Device")
#endif
http://ericasadun.com/2018/03/05/new-to-swift-in-xcode-9-3-beta-4-se-0075-and-se-0190-allow-better-configuration-testing/
Первая будет полезна для кроссплатформенных решений и позволяет определить, можно ли импортировать тот или иной модуль.
#if canImport(UIKit)
// UIKit-based code
#elseif canImport(Cocoa)
// OSX code
#elseif
// Workaround/text, whatever
#endif
Вторая директива с единственно возможным аргументом simulator позволяет выполнить условную компиляцию для симулятора или реального девайса. Теперь не нужно перечислять все любимые нам архитектуры и ОС (arch(i386) || arch(x86_64)) && (!os(macOS)), а достаточно будет этого:
// Test for a simulator destination
#if targetEnvironment(simulator)
print("Simulator")
#else
print("Device")
#endif
http://ericasadun.com/2018/03/05/new-to-swift-in-xcode-9-3-beta-4-se-0075-and-se-0190-allow-better-configuration-testing/