CodeCompletion.io

Episode 45: You Are Not Your Code

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

Why is this SwiftUI code not advisable, and how can you fix it?
1
2
3
4
5
6
7
8
// Why is this SwiftUI code not advisable, and how can you fix it?
var body: some View {
    if isLoggedIn {
        Text("You are logged in!")
    } else {
        Text("You must first log in!")
    }
}

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

⚠️ Compiler Error

This week's theme: Apple Antitrust Cases!

  1. In its first antitrust case, Apple Computer was sued in 1997 by publishing houses for not licensing its MacOS system software to run on other compatible hardware at the time.
  1. Apple was sued in 2005 for allegedly operating a music-downloading monopoly through iTunes and the iPod music player, preventing RealNetworks music from playing on iPods.
  1. Just a few months after the original iPhone was released, Apple was sued in a case that lasted until 2019 partly over the fact that the just-released device could not run third-party apps.
  1. After only a year and a half of litigation, Apple was found guilty in a case where there was compelling evidence that they played a central role to eliminate retail competition.

🎁 Sponsor

This week's episode of Code Completion is brought to you by Sticky Widgets! Search for Sticky Widgets on the iOS App Store today to give it a try!

📹 Watch the Stream