CodeCompletion.io

Episode 35: I Didn't Watch the Video

Welcome to Code Completion, Episode 35! 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

🚧 #CompleteTheCode

This week's #CompleteTheCode:

Which key command in Xcode will allow you to rename the variable you have selected everywhere it appears in the current scope?
1
2
3
4
5
6
7
// Which key command in Xcode will rename the selected variable
// within the current scope?

let lable = UILabel()
lable.text = "Name"
lable.textColor = .blue
rootView.addSubview(lable)

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

⚠️ Compiler Error

This week's theme: Swift Actors!

  1. Actors are a reference type distinct from classes that enable thread-safe access to the data within the actor by gating access behind async members.
  1. Actors can be used from Objective-C so long as the type is marked with @objc, and only non-isolated and asynchronous methods are called.
  1. Actors can be accessed from non-asynchronous code within the same module so long as only let properties or non isolated methods are called.
  1. Actors are implemented using special GCD queues and locks under the hood at compile time, minimizing bugs that arise from incorrect usage of isolated properties.

🎁 Sponsor

This week's episode of Code Completion is brought to you by Super Easy Timer! Search for Super Easy Timer on the Mac App Store today to give it a try!

📹 Watch the Stream