concept functionality in category swift

This is an excerpt from Manning's book Hello Swift!: iOS app programming for kids and other beginners.
You may be thinking, “Hey, Tanmay, that was pretty easy! I drew lines, but I didn’t need to code the line-drawing part. How was that possible?” The secret is that I shared code with you through classes. Classes are great for sharing code, and there’s one more thing you should know: classes hide functionality from the coder. I hid the code for drawing lines from you, for example, so you added that code in the form of a class that I already wrote. After that, you drew lines by creating an instance of the class Connector with the required parameters inside the initializer.

This is an excerpt from Manning's book iOS Development with Swift.
Foundation framework of the Core Services layer— Provides additional features and functionality for basic data types. Foundation also adds basic classes and utilities, such as URLs, timers, formatters, and notifications.
If you don’t have all the devices you need screenshots for, don’t worry—you don’t necessarily need to access a physical device for screenshots. If you can demonstrate the app’s functionality sufficiently on the simulator, you can save screenshots directly to your Mac’s desktop using Command-S.