View Communication Patterns in SwiftUI

Vadim Bulavin
1 min readApr 7, 2020

This is a cross-post from my blog on Advanced Swift Development. 👉 Click here to directly open this article.

The number of mechanisms available to pass data between SwiftUI views can first seem overwhelming. But once we put them in a systematic way, they all have unique requirements and usage cases.

In this article, we’ll break down view communication patterns into 5 scenarios and take a look at each:

  • From parent to direct child
  • From parent to distant child
  • From child to direct parent
  • From child to distant parent
  • Between children

The reason why I am not posting the full article here is that I don’t want Medium to sell my articles. I am giving all my content for free and that’s how it’s going to stay. As a reader you’ll also get better experience with code highlight and formulae.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Vadim Bulavin
Vadim Bulavin

Written by Vadim Bulavin

Senior iOS Software Engineer at Pluto TV. Creator of Yet Another Swift Blog https://www.vadimbulavin.com/. Coding for fun since 2008, for food since 2012.

No responses yet

Write a response