For context, I’m using Swift Playground 4.6.4 on macOS 15.6.1. It has two lessons: Learn to Code 1 Learn to Code 2 Your reference to the Types lesson indicates you’re doing Learn to Code 2. Types > Introduction > page 8 introduces the concept of portal, indicating that they’re part of the puzzle world. That concept was introduced in Learn to Code 1 > Commands > Portal Practice. Likewise the concept of switch is in Learn to Code 1 > Commands > Toggling a Switch. [quote='800744021, Adiv_Abramson, /thread/800744, /profile/Adiv_Abramson'] I cannot write code to call methods or set properties on objects about which I have no useful information. [/quote] If you’re asking questions like this then I suspect that Learn to Code isn’t really for you. You might be better off starting with The Swift Programming Language, using a general playground, or a playground in Xcode, to play with the many examples it contains. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical S
Topic:
Developer Tools & Services
SubTopic:
Swift Playground
Tags: