iOS Swift tip: Getting references to container child view controllers

  1. We first match the segue identifier against a String
  2. We then downcast and optionally bind the destination UIViewController to our specific UIViewController subtype

A better way

--

--

--

Software Engineer @Zendesk. Occasional Medium writer. Sign up here https://superpeteblaze.medium.com/membership

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Access Control in Swift

To tease or not to tease for an iOS14 widget

Wuji for Android & iOS Enables Limitless Wing Chun Training

AdMob Rewarded Ads with SwiftUI

Snow Animation with Swift 

Activity Classification with Create ML, CoreML3, and Skafos: Part 2

Enumerations, Tuples, and Generics in Swift

Understanding Structured Concurrency and Swift

Understanding Structured Concurrency and Swift

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pete Smith

Pete Smith

Software Engineer @Zendesk. Occasional Medium writer. Sign up here https://superpeteblaze.medium.com/membership

More from Medium

How to convert .ogg/.oga audio into .wav in Swift using C++, Objective-C and Swift Package Manager

What is CollectionView ?

Struct, Class and Protocol in Swift

Making a Cocoapod in Swift with an Objective-C .framework dependency