Mastodon
Episode 50

This Is Not Clear

00:00:00
/
01:07:32

October 13th, 2021

1 hr 7 mins 32 secs

Season 1

Your Hosts
Tags

About this Episode

Welcome to Code Completion, Episode 50! We are a group of iOS developers and educators hoping to share what we love most about development, Apple technology, and completing your code!

Follow us @CodeCompletion on Twitter to hear about our upcoming livestreams, videos, and other content.

Today, we discuss:

Also, join us for #CompleteTheCode and Compiler Error, two segments that test both your knowledge and our knowledge on Swift, Apple, and all things development!

Your hosts for this week:

Be sure to also sign up to our monthly newsletter, where we will recap the topics we discussed, reveal the answers to #CompleteTheCode, and share even more things we learned in between episodes.

You are what makes this show possible, so please be sure to share this with your friends and family who are also interested in any part of the app development process.

Sponsor

This week's episode of Code Completion is brought to you by Not Phở. Search for Not Phở on the iOS and macOS App Stores today to give it a try. https://apps.apple.com/app/apple-store/id1525104124?pt=14724&ct=CodeCompletion1&mt=8

Complete the Code

How can you use UIViewController's updateViewConstraints() to quickly swap between very different view layouts?

// How can you use UIViewController's updateViewConstraints() to quickly swap between very different view layouts?

override func updateViewConstraints() {
    // What goes in here?

    super.updateViewConstraints()
}

Be sure to tweet us with hashtag #CompleteTheCode if you know the answer!

Compiler Error

This week's Compiler Error has a theme: Swift on Other Platforms
1 - DroidUI builds on earlier efforts to get Swift compiling for Android by adding interconnects to existing Java-based libraries so an entire app could be built.
2 - project1 is an attempt at implementing an x86 kernel completely in Swift that can run bare metal on Intel Macs and PCs.
3 - swift-embedded is a toolchain to compile Swift so it can run on a microcontroller directly with no host operating system.
4 - SwiftWasm is a toolchain allowing swift code to be compiled to WebAssembly, with full bridging to the DOM.