Getting Started with WidgetKit: Create Widgets for iOS and iPadOS
Book information
Description
Develop handy, UI/UX friendly and eye-pleasing widgets using the brand new WidgetKit. Apple’s brand new widgets allow iOS users to work with their favorite apps in the home screen of their iPhone or iPad without even opening the app! Join us in this exciting journey as we explore the APIs introduced in Apple’s WidgetKit framework. You'll dive into the human interface guidelines (HIG) for creating widgets and review the recommendations Apple gives to developers for developing widgets with intuitive, easy-to-learn, and consistent user interfaces. In addition, you’ll take a look at some SwiftUI views that are useful not only in creating widgets for iOS apps, but also for creating iOS apps themselves. You’ll put everything you learn into practical application by actually writing code and creating widgets. Get a clear view of how everything works so that you’re able to incorporate widgets into your real-world projects authentically and successfully. What You'll LearnConfigure widgets and make them talk to APIs using URLSessionWork with timelines and event handling in widgets Fetch content from a remote server and display the data in a widget Make content dynamic both remotely and locally Who This Book Is For iOS developers working in the Apple ecosystem with a basic understanding of SwiftUI. Table of Contents About the Authors About the Technical Reviewer Before You Begin… Chapter 1: Getting Familiar with WidgetKit in a Flash Background Hello, WidgetKit! Summary Chapter 2: SwiftUI, Human Interface Guidelines, and Widget Family SwiftUI Basic SwiftUI Views for Widgets Text Button Image HStack VStack ZStack Human Interface Guidelines Widget Family Summary Chapter 3: Writing Your First Widget Widget Extension TimelineEntry TimelineProvider placeholder(in:) getSnapshot(in:completion:) getTimeline(in:completion:) Developing Your Widget’s UI WidgetConfiguration Summary Chapter 4: Making Widgets Configurable and Interactive Let’s Get Started Giving Widgets the Power to Talk to API Allowing Users to Configure Widgets Create and Configure a SiriKit Intent Definition File Switch to IntentConfiguration Talk to the API and Display Fresh Information in Widgets Time to Put Your Widgets to the Test! Navigating to the Relevant Screens of the App Through Tap Targets Addition of Tap Target in Small Widget Addition of Tap Target in Medium Widget Addition of Tap Target in Large Widget Summary Chapter 5: Fetching Configuration Options Getting Started Time to Create a SiriKit Intent Definition File Setting Up IntentHandler to Fetch Top Trends and Send Them to the Widget Switching to IntentConfiguration Create an IntentTimelineProvider Make the Switch to IntentConfiguration Test – Test – Test! Summary Index
Similar books
Getting Started with WidgetKit: Create Widgets for iOS and iPadOS
2021 · EPUB
MySQL® Notes for Professionals book
2018 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36
2010 · PDF
THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.
1858 · PDF
Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.
2022 · PDF
The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians
1809 · PDF