Asynchronous Programming with SwiftUI and Combine: Functional Programming to Build UIs on Apple Platforms

Автор: literator от 14-01-2023, 08:37, Коментариев: 0

Категория: КНИГИ » ПРОГРАММИРОВАНИЕ

Asynchronous Programming with SwiftUI and Combine: Functional Programming to Build UIs on Apple PlatformsНазвание: Asynchronous Programming with SwiftUI and Combine: Functional Programming to Build UIs on Apple Platforms
Автор: Peter Friese
Издательство: Apress
Год: 2023
Страниц: 447
Язык: английский
Формат: epub (true)
Размер: 24.4 MB

Develop UI-heavy applications more easily, faster, and error-free. Based on several enhancements to the Swift language, SwiftUI takes a declarative approach to building UIs. Instead of imperatively coding the UI, this book will show you how to describe how you want your UI to look.

SwiftUI treats the UI as a function of its state, thereby making managing your app’s state a lot easier. Change the underlying data model to redraw all parts of the UI that are connected to that particular slice of data. Likewise, easily update the underlying data model from the UI elements your data model is connected to. Combine is Apple’s Functional Reactive Programming framework. It complements SwiftUI and other frameworks, such as the networking APIs, in a natural way. Using Combine, you can subscribe to events and describe data processing in a way that is free of side effects. This allows for an easier implementation of event-driven applications. Using SwiftUI and Combine build more error-free apps in a shorter amount of time, targeting all of Apple’s platforms (iOS, iPadOS, watchOS, macOS, tvOS) with little to no overhead.

SwiftUI’s declarative approach to building UIs is a lot more opinionated about how your code should be structured when building UIs programmatically, making it a lot easier for other developers to understand what your code is supposed to do. And thanks to using a state management model that is based on functional reactive programming, SwiftUI and Combine make it a lot easier to build UIs that are in sync with the underlying data model and other parts of your app all of the time. I’m pretty sure we all know of apps for which this is not the case and can attest to the terrible UX this means.

The goal of this book is to introduce you to building applications with SwiftUI, Combine, and async/await. I also aim to provide some guidance that helps you architect apps that reap the benefits of using declarative and functional reactive approaches for building UI-heavy applications that interface with asynchronous backend systems, such as Firebase.

By the end of the book you will have a solid understanding for architecting and implementing UI-heavy apps in a declarative and functional reactive way using SwiftUI, Combine, and async/await.

You will

-Build simple and gradually more complex UIs in SwiftUI
-Understand SwiftUI’s state management system
-Work with Combine and Swift’s new async/await APIs to access the network and access other asynchronous APIs
-Architect and structure modern applications on Apple platforms using SwiftUI, Combine, and async/await

Скачать Asynchronous Programming with SwiftUI and Combine: Functional Programming to Build UIs on Apple Platforms








Нашел ошибку? Есть жалоба? Жми!
Пожаловаться администрации
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.