
۴۴٬۰۰۰تومان
نوع فایل دانلود: EPUB
پس از خرید، یک فایل EPUB دریافت میکنید.
این فایل با Calibre، Apple Books و سایر کتابخوانهای دیجیتال مناسب است.
اپلیکیشنهایی با رابط کاربری سنگین را آسانتر، سریعتر و بدون خطا بسازید. SwiftUI بر پایهٔ چند پیشرفت در زبان Swift، رویکردی اعلانی برای ساخت رابط کاربری دارد. بهجای کدنویسی امری رابط کاربری، این کتاب نشان میدهد چطور توصیف کنید که میخواهید رابط کاربریتان چگونه به نظر برسد.
SwiftUI رابط کاربری را تابعی از وضعیت آن میداند و به همین دلیل مدیریت وضعیت اپلیکیشن را خیلی آسانتر میکند. مدل دادهٔ زیرین را تغییر دهید تا همهٔ بخشهایی از رابط کاربری که به همان بخش از داده وصل هستند دوباره رسم شوند. به همین شکل، بهراحتی میتوانید مدل دادهٔ زیرین را از طریق عناصر رابط کاربری که به آن وصل هستند بهروز کنید.
Combine چارچوب برنامهنویسی واکنشی تابعی اپل است. این چارچوب به شکلی طبیعی مکمل SwiftUI و چارچوبهای دیگر، مثل APIهای شبکه، است. با Combine میتوانید در رویدادها مشترک شوید و پردازش داده را طوری توصیف کنید که عاری از عوارض جانبی باشد. این کار پیادهسازی اپلیکیشنهای رویدادمحور را آسانتر میکند.
با SwiftUI و Combine اپلیکیشنهایی بسازید که خطای کمتری دارند و در زمان کوتاهتری آماده میشوند؛ اپلیکیشنهایی که همهٔ پلتفرمهای اپل (iOS، iPadOS، watchOS، macOS، tvOS) را با هزینهای اندک یا بدون هزینهٔ اضافه هدف میگیرند.
در پایان کتاب درک محکمی از معماری و پیادهسازی اپلیکیشنهای با رابط کاربری سنگین به شیوهٔ اعلانی و واکنشی تابعی با SwiftUI، Combine و async/await خواهید داشت.
شما یاد میگیرید:
- رابطهای کاربری ساده و سپس پیچیدهتر را در SwiftUI بسازید
- سیستم مدیریت وضعیت SwiftUI را بفهمید
- با Combine و APIهای جدید async/await در Swift برای دسترسی به شبکه و سایر APIهای ناهمگام کار کنید
- اپلیکیشنهای مدرن روی پلتفرمهای اپل را با SwiftUI، Combine و async/await معماری و ساختاربندی کنید
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.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