CodeCompletion.io

Episode 50: This Is Not Clear

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.

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.

⭐️ This Week's Topics

  • Objective-C for Swift Developers
  • The Apple Watch Pre-orders

🚧 #CompleteTheCode

This week's #CompleteTheCode:

How can you use UIViewController's updateViewConstraints() to quickly swap between very different view layouts?
1
2
3
4
5
6
7
// 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 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.

🎁 Sponsor

This week's episode of Code Completion is brought to you by Not Phở. Click here or search for “Not Pho” on the iOS and macOS App Store today to give it a try.

📹 Watch the Stream