Here are terms you will encounter throughout this guide.
- activity viewer
- Part of the Xcode toolbar that displays messages about the build process and other information.
- adaptive interface
- A user interface (UI) that automatically adjusts so that it looks good in the context of the available screen space.
- application object
- An object in your app that’s responsible for managing the life cycle of the app, communicating with its delegate, the app delegate, during state transitions within the app.
- Attributes inspector
- An inspector that you use to customize visual attributes of a user interface (UI) element in a storyboard.
- asset catalog
- A tool to manage assets like images that are used by your app as part of its user interface (UI).
- assistant editor
- In Xcode, a secondary editor window that appears side-by-side with your primary editor.
- class
- A piece of code that describes the behavior and properties common to any particular type of object, essentially providing a blueprint for the object.
- clean
- Removes all the product files, as well as any object files or other intermediate files created during the build process.
- closed range operator
- An operator (
...
) that lets you create a range of numbers that includes both the lower and upper values. - closure
- A self-contained block of functionality that can be passed around and used in your code. Closures in Swift are similar to blocks in C and Objective-C and to lambdas in other programming languages.
- code completion
- A feature of Xcode that infers what you’re trying to type from context and provides suggestions that you can select.
- comment
- A piece of text in a source code file that doesn’t get compiled as part of the program but provides context or other useful information about individual pieces of code.
- conditional statement
- A control flow statement that checks whether a condition is true before executing a piece of code.
- constraint
- In Auto Layout, a rule that explains where one element should be located relative to another, what size it should be, or which of two elements should shrink first when something reduces the space available for each of them.
- content view
- A view object that’s located at the top of a view hierarchy, serving as a container for the subviews in its hierarchy.
- control
- A specialized type of view (specifically, an instance of the
UIControl
class or one of its subclasses) that responds to user input. - convenience initializer
- A secondary initializer, which adds additional behavior or customization, but must eventually call through to a designated initializer.
- data source
- An object that manages the app’™s data model, providing a view object with the information it needs to display that data.
- designated initializer
- One of the primary initializers for a class; a convenience initializer within a class must ultimately call through to a designated initializer.
- enumeration
- A data type that defines a group of related values and enables you to work with those values in a type-safe way within your code.
- event-driven programming
- A category of programming in which the flow of the app is determined by events: system events and user actions.
- first responder
- An object that is first to receive many kinds of app events, including key events, motion events, and action messages, among others.
- Functions menu
- In Xcode, a jump menu that lets you navigate directly to a specific declaration or section in a source code file.
- guard
- A
guard
statement declares a condition that must be true in order for the code after theguard
statement to be executed. Using aguard
statement for requirements improves the readability of your code, compared to doing the same check with anif
statement. - half-open range operator
- An operator (
..<
) that lets you create a range of numbers that includes the lower but not the upper value. - Identity inspector
- An inspector that you use to edit properties of an object in a storyboard related to that object’s identity, such as what class the object belongs to.
- inheritance
- When a class is a subclass of another class, it gets all of its behavior (methods, properties, and other characteristics) from its superclass.
- initializer
- A method that handles the process of preparing an instance of a class, structure, or enumeration for use, which involves setting an initial value for its properties and performing any other required setup.
- inspector pane
- An area in Xcode that displays inspectors, such as the Attributes inspector, Identity inspector, and Size inspector.
- integrated development environment (IDE)
- A software application that provides a set of tools for software development.
- intrinsic content size
- The minimum size needed to display all the content in a view without clipping or distorting that content.
- library pane
- An area in Xcode that displays one of the ready-to-use libraries of resources for your project, like the Object library.
- local
- A constant or variable defined only within a particular, limited scope, like a loop, conditional statement, or function.
- method
- A reusable, named piece of code that’s associated with a particular class, structure, or enumeration.
- modal segue
- A segue in which one view controller presents another view controller as its child. The user must interact with the presented controller, and dismiss it before returning to the app’s main flow. Use modal segues to present tasks that the user must complete before continuing.
- Model-View-Controller (MVC)
- A pattern of app design in which view controllers serve as the communication pipeline between views and the data model.
- navigation controller
- A specialized view controller subclass that manages transitions backward and forward through a series of view controllers.
- Object library
- Part of the Xcode workspace window that shows a list of objects that can be added to a storyboard, including each object’s name, description, and visual representation.
- optional binding
- The process of attempting to assign an optional value to a constant in a conditional statement to see if the optional contains an underlying value.
- outline view
- A pane in a storyboard that lets you see a hierarchical representation of the objects in your storyboard.
- parameter
- An additional piece of information that must be passed into a function, method, or initializer when it’s called.
- playground
- A type of file in which you can change and play around with Swift code directly in Xcode and see the immediate results.
- property observer
- A piece of code that’s called every time the value of a property is set. Use property observers to observe and respond to changes in the property’s value.
- protocol
- A blueprint of methods, properties, and other requirements that suit a particular task or piece of functionality.
- resize handles
- Small white squares that appear on a user interface (UI) element’s borders when it’s selected so you can change its size on the canvas.
- root view controller
- The first item added to a the navigation stack of a navigation controller. The root view controller is never popped off (removed from) the stack.
- run loop
- An event processing loop that you use to schedule work and coordinate the receipt of incoming events in your app.
- show segue
- A segue that varies the way new content is displayed based on the target view controller. For navigation controllers, the show segue pushes new content on top of the current view controller stack. Use a navigation controller and show segues to navigate through hierarchical data.
- Size inspector
- An inspector that you use to edit the size and position of a user interface (UI) element in a storyboard.
- storyboard
- A file that contains a visual representation of the app’s UI (user interface), showing screens of content and the transitions between them, that you work on in Interface Builder.
- structure
- A data type that’s similar to a class, but doesn’t support inheritance and is passed by value instead of by reference.
- Swift standard library
- A set of data types and capabilities designed for Swift and baked into the language.
- target-action
- A design pattern in which one object sends a message to another object when a specific event occurs.
- type casting
- A way to check the type of an object, and to treat that object as if it’s a different superclass or subclass from somewhere else in its own class hierarchy.
- type inference
- The ability of the Swift compiler to determine the type of a value from context, without an explicit type declaration.
- unit test
- A piece of code written specifically to test a small, self-contained piece of behavior in your app to make sure it behaves correctly.
- user interface (UI)
- The layer of visual elements that lets a user interact with a piece of software.
- view controller
- An object that manages a set of views and coordinates the flow of information between the app’s data modeland the views that display that data.