А здесь уже рассказывается, как накатить себе экспериментальный снэпшот с асинхронностью в Swift. И что вообще можно посмотреть, чтобы познакомиться с будущими интерфейсами.
https://www.enekoalonso.com/2020/12/06/getting-started-with-async-await-in-swift.html
https://www.enekoalonso.com/2020/12/06/getting-started-with-async-await-in-swift.html
OhMySwift
Experimenting with Swift async and await pattern using Xcode
You all might know that async/await is accepted and is available in the main snapshots! Let’s get our hands dirty by trying out some basic example of async/await in Swift.
Возможно вы пропустили этот год. Ну вы поняли. Так вот сводка не самых технических новостей про Apple за 2020, разбитая по месяцам.
⁃ почти каждый квартал был рекордным по выручке
⁃ официальный релиз Apple Silicon
⁃ стали первой публичной компанией, стоящей 2 триллиона
⁃ напряженные отношения с создателями приложений в App Store
⁃ производство продолжает уходить из Китая
https://fivestars.blog/apple/apple-year-2020-review.html
⁃ почти каждый квартал был рекордным по выручке
⁃ официальный релиз Apple Silicon
⁃ стали первой публичной компанией, стоящей 2 триллиона
⁃ напряженные отношения с создателями приложений в App Store
⁃ производство продолжает уходить из Китая
https://fivestars.blog/apple/apple-year-2020-review.html
FIVE STARS
Apple 2020 Year In Review | FIVE STARS
Exploring iOS, SwiftUI & much more.
Не путать inline и inlinable! Если кратко - второе нужно если у вас несколько модулей зависящих друг от друга. Еще рассказывается про атрибут usableFromInline.
https://swiftrocks.com/understanding-inlinable-in-swift
https://swiftrocks.com/understanding-inlinable-in-swift
Swiftrocks
Understanding @inlinable in Swift
The @inlinable attribute is one of Swift's lesser-known attributes. Like others of its kind, its purpose is to enable a specific set of micro-optimizations that you can use to increase the performance of your application.
Лонгрид-обзор про опыт использования M1 после Pro i5 2017 года с AppCode и Xcode. Есть ощущение, что без эффекта плацебо не обошлось, скорее стоит воспринимать как качественный авторский обзор, нежели супер точное исследование.
https://www.iphones.ru/iNotes/user-posts/vpechatleniya-razrabotchika-ot-macbook-air-s-processorom-m1-12-19-2020
https://www.iphones.ru/iNotes/user-posts/vpechatleniya-razrabotchika-ot-macbook-air-s-processorom-m1-12-19-2020
iPhones.ru — Новости высоких технологий, обзоры смартфонов, презентации Apple
Я разработчик приложений, неделю пользуюсь MacBook Air на M1. Какие впечатления?
Впечатления разработчика от MacBook Air с процессором M1.
Как сортировать массив строк. Помимо просто рассказа о sort и sorted, есть примеры с методом compare с различными опциями.
https://sarunw.com/posts/different-ways-to-sort-array-of-strings-in-swift/
https://sarunw.com/posts/different-ways-to-sort-array-of-strings-in-swift/
Sarunw
Different ways to sort an array of strings in Swift | Sarunw
Learn a proper way to sort an array of strings in each circumstance.
Dependency Injection для начинающих. Разные виды DI и как написать свой первый DI контейнер, а потом его удобно использовать. Кстати D, в SOLID, это не инъекция, а инверсия зависимостей. Легко перепутать, учитывая насколько они связаны.
https://www.raywenderlich.com/14223279-dependency-injection-tutorial-for-ios-getting-started
https://www.raywenderlich.com/14223279-dependency-injection-tutorial-for-ios-getting-started
kodeco.com
Dependency Injection Tutorial for iOS: Getting Started
In this tutorial, you’ll learn about Dependency Injection for iOS, as you create the profile page of a social media app in SwiftUI.
Связные типы в протоколах на реальном примере поддержки цветов одновременно для UIKit и SwiftUI. Плюсом рассказывается про ограничения для наследования протоколов со связными типами.
https://www.avanderlee.com/swift/associated-types-protocols/
https://www.avanderlee.com/swift/associated-types-protocols/
SwiftLee
Getting started with associated types in Swift Protocols
Associated Types in Swift allow you to reuse code. Define a protocol once and reuse it among different types and constraints.
Форматирование дробных чисел мальчика - NumberFormatter, мужчины - String(format:). Пол можно менять, мемности не уменьшится. А статья без экспериментов на этот раз, просто сравнение API.
https://sarunw.com/posts/how-to-specify-fractional-digits-for-formatted-number-string-in-swift/
https://sarunw.com/posts/how-to-specify-fractional-digits-for-formatted-number-string-in-swift/
Sarunw
How to specify fractional digits for formatted number string in Swift | Sarunw
Learn how to format a Float and Double string.
Label - это совершенно не тот UILabel, к которому мы привыкли в UIKit. Про использование и кастомизацию как при помощи стандартных стилей, так и при помощи своих имплементаций LabelStyle.
https://swiftwithmajid.com/2020/12/23/labels-in-swiftui/
https://swiftwithmajid.com/2020/12/23/labels-in-swiftui/
Swift with Majid
Labels in SwiftUI
We often underestimate the power of simple things. The same feelings I had during the first usage of Label view in SwiftUI. It looks straightforward, but it hides many use cases where it works great. Today we will talk about the Label view and its customization…
Ностальгический тред от разработчика IGListKit. Почему его вообще начали делать и к чему пришли. Оказывается изначально его хотели IGStoryKit назвать.
https://twitter.com/_ryannystrom/status/1344322269099810822?s=21
https://twitter.com/_ryannystrom/status/1344322269099810822?s=21
Twitter
Ryan Nystrom
It makes me smile every time I notice IGListKit at work in Instagram. We put a lot of work into making and improving it. Proud to see it holding up 4 years later. 🧵 with some memories on how it was built:
Что такое SF символы можно было легко пропустить, но вероятно со временем они будут иметь больше значения, потому что поддерживаются как и SwiftUI только с iOS 13. Однако гайд по ним оказался одной из самых популярных статей за прошлый год.
https://www.avanderlee.com/swift/sf-symbols-guide/
https://www.avanderlee.com/swift/sf-symbols-guide/
SwiftLee
SF Symbol: How to for Swift & SwiftUI
Use an SF Symbol in Swift & SwiftUI and explore over 6,000 free-to-use icons provided by Apple for app developers.
Ash Furrow уходит из Artsy, чтобы была возможность глубже изучать React Native, и написал об этом пост. Просто новость, ничего технического.
https://ashfurrow.com/blog/leaving-artsy/
https://ashfurrow.com/blog/leaving-artsy/
Ash Furrow
Leaving Artsy
Hi friends. It's with mixed feelings I'm announcing that, after seven years, this is my final week at Artsy. Saying goodbye is never easy, but it's time for me to move on. That much time will always be filled with ups and downs, but I wouldn't have stayed…
А вашим приложением может пользоваться незрячий человек? О том, как сделать продукт доступным, онлайн-курс для разработчиков (iOS и веб), тестировщиков, исследователей и дизайнеров. Начало 6 февраля.
В программе: теория, практика и тестирование работ вместе с незрячими людьми. Теорию будут читать Миша Рубанов, Валерия Курмак, незрячий тестировщик и продуктовый дизайнер из Сбера. Другие приглашенные спикеры также расскажут о доступности в геймдизайне, информационной архитектуре, дизайн-системах.
Этот курс для тех, кому важно:
😎 обеспечить доступность вашего приложения для любого, включая незрячего,
💪 повысить конкурентоспособность на зарубежном и российском рынке,
✍️ систематизировать знания по инклюзивной разработке,
🧠 стать частью сообщества продвинутых профессионалов.
Приходите: http://www.kurmak.info/
В программе: теория, практика и тестирование работ вместе с незрячими людьми. Теорию будут читать Миша Рубанов, Валерия Курмак, незрячий тестировщик и продуктовый дизайнер из Сбера. Другие приглашенные спикеры также расскажут о доступности в геймдизайне, информационной архитектуре, дизайн-системах.
Этот курс для тех, кому важно:
😎 обеспечить доступность вашего приложения для любого, включая незрячего,
💪 повысить конкурентоспособность на зарубежном и российском рынке,
✍️ систематизировать знания по инклюзивной разработке,
🧠 стать частью сообщества продвинутых профессионалов.
Приходите: http://www.kurmak.info/
Небольшой пример использования NSCollectionLayoutGroup, поддерживаемого начиная с iOS 13. Интересно, кто-нибудь им пользуется, учитывая что доступность SwiftUI такая же.
https://nemecek.be/blog/66/detailed-look-at-the-nscollectionlayoutgroup
https://nemecek.be/blog/66/detailed-look-at-the-nscollectionlayoutgroup
nemecek.be
Detailed look at the NSCollectionLayoutGroup
With the NSCollectionLayoutGroup definition we can create quite different layouts while keeping the rest of the code the same.
Вы когда-нибудь сталкивались с тем, что отфильтровать по KeyPath, можно только при положительном значении булева свойства? Интересный способ скомбинировать переопределение операторов и KeyPath, чтобы было удобно фильтровать. Сам подход можно и с другими функциями использовать.
https://www.swiftbysundell.com/articles/custom-query-functions-using-key-paths/
https://www.swiftbysundell.com/articles/custom-query-functions-using-key-paths/
Swift by Sundell
Creating custom query functions using key paths | Swift by Sundell
How key paths can be made much more powerful when used to query and filter collections.
Сравнение использования Swift и современного C++. Во всем, кроме дженериков, Свифт побеждает по удобству, да и там у него более понятные сообщения об ошибках. Но плюсы же не для удобства используют?
https://whackylabs.com/swift/cpp/languages/2021/01/03/cpp-for-swift-devs/
https://whackylabs.com/swift/cpp/languages/2021/01/03/cpp-for-swift-devs/
Whacky Labs
C++ for Swift developers
Swift in a sense is very much like C++, and when I say C++ I mean C++11 and beyond. One could also say that Swift is cleaner C++, or C++ without the backwards compatibility baggage from the 80s. To give an idea here’s a minimal modern C++ code:
Гайд по инструментам на примере Allocations и Time Profiler.
https://www.raywenderlich.com/16126261-instruments-tutorial-with-swift-getting-started
https://www.raywenderlich.com/16126261-instruments-tutorial-with-swift-getting-started
kodeco.com
Instruments Tutorial with Swift: Getting Started
In this Xcode tutorial, you’ll learn how to use Instruments to profile and debug performance, memory and reference issues in your iOS apps.
Емкий и хорошо оформленный гайд по регулярным выражениям.
https://amitness.com/regex
https://amitness.com/regex
Amit Chaudhary
A Visual Guide to Regular Expression
A mental model of how various components of a regular expression work from the bottom-up.
Отличный способ декомпозиции View при помощи отдельных свойств для его частей.
https://www.swiftbysundell.com/articles/using-multiple-computed-properties-to-form-a-swiftui-view-body/
https://www.swiftbysundell.com/articles/using-multiple-computed-properties-to-form-a-swiftui-view-body/
Swift by Sundell
Using multiple computed properties to form a SwiftUI view’s body | Swift by Sundell
How a SwiftUI view’s body can be split up into multiple computed properties, which is a great alternative to using separate types in certain situations.
Что можно почитать в 2021, если не успели прочитать в 2020.
https://aantonioni.me/2020/12/31/books-i-read-in-2020/
https://aantonioni.me/2020/12/31/books-i-read-in-2020/