Skip to main content

Sharing Data Between Structures

  • Chapter
  • First Online:
Pro iPhone Development with SwiftUI
  • 1093 Accesses

Abstract

When creating a simple iOS app, SwiftUI relies on a single structure to define the user interface. Within this structure, you can define State variables that different user interface items (Sliders, TextFields, Toggles, etc.) can access and modify.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Wang, W. (2022). Sharing Data Between Structures. In: Pro iPhone Development with SwiftUI. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-7827-7_7

Download citation

Publish with us

Policies and ethics