· 3 min czytania
Numer 51
8x szybsze tablice, wnętrza ViewModel, dialogi SwiftUI i ewolucja SwiftUI w iOS 18?
Przede wszystkim, Szczęśliwego Nowego Roku wszystkim! Mam nadzieję, że 2025 przyniesie Wam jeszcze więcej radości i sukcesów niż poprzedni rok.
W tym roku w powietrzu unosi się ogromna fala motywacji. Siłownie są przepełnione, media społecznościowe roją się od wiadomości “to TWOJ rok”, a ja już otrzymałem kilka próśb o mentoring iOS od młodych mobile developerów. Ciekawie jest widzieć, jak wiele osób podejmuje aktywne kroki w kierunku swoich celów.
Ostatnio byłem zajęty przeprojektowywaniem mojej głównej strony patrykkosieradzki.com, kontynuowaniem rozwoju mojej aplikacji DailyWin w godzinach po pracy, a teraz tworzę przykłady pokazujące, jak zaimplementować mechanizm stronicowania w SwiftUI dla iOS.
Miejmy nadzieję, że ten pęd zostanie utrzymany! 💪
Czas na kilka wybranych zasobów, które zwróciły moją uwagę w tym tygodniu. Każdy z nich ma coś wartościowego do zaoferowania 👇
Obowiązkowe Lektury Tego Tygodnia
8× faster 5× memory savings with Dan Rusu’s Immutable ArraysW tym odcinku odkryj, jak biblioteka pods4k Immutable Arrays Dana Rusu może zapewnić 2–8-krotny wzrost szybkości i 5-krotnie mniejsze zużycie pamięci w aplikacjach Kotlin/Android.
Exploring ViewModel Internals
There are many challenges to tackle while working with Android. The ViewModel is one of the things that helps you overcome them, especially one of the core ones - state preservation. But how Android ViewModels actually work under the hood?
Getting Started with CameraX in Jetpack Compose
Using CameraX in pure Compose can be quite challenging. On the other hand, it’s creates a good opportunity to try it out in a side project and play with it. Here’s a quick example on how to start with CameraX in your apps. Beware Google’s code examples - they like to mix views and business logic everywhere 😅
iOS App Development: How to get started?
Some people reached out to me recently on how to start with iOS Development. Well, there’s no single answer to that question. Personally I’d recommend to just start with some small project, build upon it and learn on practical examples. Here’s also a TLDR on what you need, useful resources and answers to commonly asked questions.
Enhance UI/UX with the confirmation dialog component
The confirmationDialog sheet is a SwiftUI component that presents a temporary dialog to confirm an action or provide a set of related options. It appears from the bottom of the screen and offers buttons for users to make a choice which can include destructive actions, multiple choices, or simply canceling the operation.
Apple’s use of Swift and SwiftUI in iOS 18
How many binaries does iOS 18 contain? Which programming languages were used to develop these apps? How many apps are written in Swift? What percentage of apps use SwiftUI versus UIKit?