
Discover over a hundred Xcode tips to boost productivity, with independent, watchable lessons designed for macOS and the latest Xcode, so you can watch in any order and practice regularly.
Learn to use Xcode Preview to visualize layouts across devices without running the app, adjust constraints and size classes, and compare design-time previews with runtime rendering.
Switch to the vertical stacked mode for the assistant editor to gain more coding space, drag controls, hide side panels, and let Xcode remember your preference.
Group multiple controls into one unit by embedding them in a view, turning several buttons into a movable container while preserving layout.
Lock control properties in Xcode using the identity inspector to prevent edits, ensuring all properties stay unchanged for controls embedded in a parent view.
Learn to use an image directly by name in an image view, avoiding image initializers and extra code, then run and preview the image in your app.
Change the height of controls by adding height constraints, then set a custom height for segmented controls and progress bars, like 50.
Save and reuse color palettes in interface builder to keep app colors consistent across projects. Rename and select palettes with colors like apple green, orange, and dark green.
Use the installed checkbox to temporarily remove a view from the interface builder scene, and learn to restore it before shipping.
Create a small function that adjusts border color and corner radius on an image. Save it as a reusable code snippet and insert it quickly with a shortcut.
Pin constraints by holding the control key and dragging between views, then use the document outline to access trailing, leading, vertical, and bottom options, even when a view isn't visible.
Add tokens to code snippets to remind yourself what to change, such as updating a button title from ok to upload, and ensuring actions are correct.
Group multiple UI controls with outlet collections to update them from a single array. Use a for loop to apply properties like corner radius and border color across all buttons.
Learn to use exception breakpoints in Xcode to jump to the crash location via the breakpoint navigator, inspect the failing index, and fix out-of-bounds errors.
learn to rename a variable in scope quickly in Xcode by selecting the variable, using the control-command shortcut to rename, and choosing replace across occurrences.
Apply project-wide variable renaming to update all usages from a single place, and centralize colors in a constants file to propagate changes to background and border colors.
Discover how to rename controls in the document outline to easily identify buttons, labels, and containers by their outlets and text. Group controls as a unit for easier movement.
Use control-shift-click to reveal and select objects layered in the view hierarchy, from the main view to containers and buttons, making it easier to target overlapped elements.
learn to use the media library to add images directly from assets, using search and filter to pick the right image and drag and drop for a one-step insertion.
Utilize the option key to view exact distances in points between UI controls, like the image, portfolio button, and main view, and fine-tune spacing for consistent layouts.
Learn to open files quickly in Xcode 9 using shortcut keys to jump to files or symbols, press enter to open results, and navigate storyboard and controllers.
Learn to open files quickly with the open quickly shortcut (command shift o) and hold option while pressing enter to open in the assistant editor for storyboard connections.
Enable Xcode to treat warnings as errors by turning on the C compiler’s all warnings-as-errors setting, ensuring builds fail until unused or uninitialized issues are fixed.
Learn how to use constraint identifiers to quickly locate and debug layout constraints in Xcode, spotting errors, searching constraints, and isolating problematic ones.
Learn how to extract methods in Xcode to turn long code blocks into reusable functions, rename them, and apply them across the screen, including creating button and image setup functions.
Enable line numbers in the editor via text editing preferences, then jump to a line by pressing command and typing the line number to navigate to the top.
discover how to fold and unfold long code files in Xcode using ribbons, arrows, and keyboard shortcuts to keep your workspace compact and focused.
Master Xcode tabs to boost productivity by opening multiple tabs, linking each to a file, and renaming tabs for quick access. Preserve your workspace by keeping tabs open.
Explore opening files in Xcode with a 3D view, option-shift-click, and double-click to open in place; use plus buttons to open an assistant editor, a tab, or a new window.
Explore the file template library to quickly add files to your project by dragging templates, naming them, and bypassing menu navigation for faster development.
select multiple objects with the command key, then drag them from the object library into your storyboard to add them all at once, speeding up user interface assembly.
Learn to use structural highlighting to view matching braces and their beginnings and ends in your code, enabling quick brace-pair identification in nested loops and if statements.
Decode the letters beside files in the Xcode project navigator, such as A for added and M for modified, and disable them in Xcode preferences under source control.
Master the double length pseudo language to test localization in apps. See how longer languages affect ui constraints and adjust labels to the minimum font size.
Learn to adjust code font size quickly in Xcode 9 using command plus and minus, avoiding the old multi-step preference method.
Learn how changing navigation bar translucence in a view controller shifts layout, as disabling translucency pushes controls down, and fix it by enabling the opaque bar in attributes inspector.
Resize text-containing controls, such as labels and buttons, to fit their content using the size to fit content command (command + =) in Xcode.
Learn quick ways to duplicate controls on the screen: drag the label to duplicate, use Edit > duplicate, and perform option-key drag to multiply selections.
Learn how to bulk edit properties across dissimilar controls by selecting multiple items to apply common properties, such as background color, font weight, and layout settings.
Discover a quick method to edit layout constraint properties in Xcode: double-click a constraint, type the new value, and press enter to apply changes instantly.
Learn how to create named colors in Xcode, save color sets, and apply them across your app using color initializers and color sync.
Learn to view all connections on a view controller by right-clicking its icon, identifying outlets, outlet collections, segues, and referencing outlets, and safely disconnecting before removal to avoid crashes.
Learn to diagnose and fix layout issues in Xcode by using the document outline, interpreting blue, orange, and red indicators, and applying fixes for misplacements and missing constraints.
Learn how intrinsic size governs content controls, how constraints pin edges, and how a button example shows controls auto-adjusting to intrinsic height at runtime.
Explore how to jump to a symbol’s definition in Xcode 9 using command-click, view related information, and compare options across versions to quickly navigate properties, functions, and protocols.
Learn a simple Xcode technique to drag code to a new location by selecting the code, waiting one to two seconds, then dragging to the desired spot.
Learn how to boost productivity with autocomplete in Xcode by typing keywords to quickly locate data source and delegate methods, and combine multiple keywords to narrow results.
Learn to quickly comment and uncomment code chunks in Xcode by selecting the lines and pressing Command + Slash, saving time and boosting productivity.
Discover how to quickly open files in the assistant editor using option-click, then apply it to view controllers and delegates.
Learn a quick shortcut to exit the assistant editor in Xcode using command + enter, boosting productivity by avoiding mouse navigation.
Master quick navigation in Xcode by using command-number shortcuts to jump among the eight navigator tabs, including the project, symbol, find, issue, breakpoints, and report navigators.
Fix messy code indentation quickly in Xcode by selecting the code and pressing control to auto-indent, even after copy-paste errors.
Learn to indent code left or right using keyboard shortcuts in Xcode, such as command + right bracket to shift right and command + left bracket to shift left.
Master keyboard shortcuts to hide the left or right pane in Xcode, using Command+0 for the left pane and Option-Command-0 for the right pane, boosting your productivity.
Drag objects directly to the document outline to place them at the correct hierarchy, dropping inside a view, at the same level, or nested under the top-level or main view.
Discover a powerful Xcode trick: double click objects in the document outline to select them, then use the arrow keys to move one or multiple controls around the view.
Navigate long code files effortlessly using the function dropdown to jump to specific methods or properties, such as image view or content view, then refine by typing with control-6.
Learn to boost code navigation in Xcode by using mark sections to visually break down functions, so you can easily navigate and identify refactor opportunities.
Discover how to use option click in Xcode to view quick definitions of classes, objects, and functions, with a readable, formatted view that speeds code exploration.
Master fast code navigation in Xcode by learning how to search within the current file or the entire project, use the find navigator, and perform replace all.
Master quick function documentation in Xcode by inserting doc comments that auto-populate parameters and return types, viewable with option click, helping you and others understand code quickly.
Change the app name by editing the bundle name (product name) in the info plist instead of renaming the project, and verify length constraints by testing on devices.
Use the escape key or control space to show or hide the autocomplete window in Xcode, boosting coding efficiency.
Learn to add and manage horizontal and vertical guides for precise layout, drag guides to set distances from the left or right edges, and hide or reuse guides as needed.
Master multiple ways to manage breakpoints in Xcode, including toggling with command backslash, disabling, using the breakpoint navigator, and dragging breakpoints off to delete.
Master command B to build, run your app, and stop with command + .; use the issue navigator to fix warnings and develop muscle memory in Xcode.
Learn how to clean your build in Xcode when code won’t run after switching versions, use Shift-Command-K to force a rebuild, though cleaning is slow and not always necessary.
Discover how to view your recently changed files in a large Xcode project, using the clock icon in the Navigator to filter to four recently modified files and reduce clutter.
Apply file history to jump directly to the last place you left in a file, using a drop-down navigation and quick keyboard shortcuts to move across multiple files.
Quickly change images in your Xcode project by replacing assets in the asset catalog: double-click an image and select another to swap without remembering file names.
Boost productivity by quickly switching between two Xcode windows using a simple Mac keyboard shortcut, enabling seamless copy-paste of code between windows without using exposé.
Enable the show bounds rectangle in canvas to visualize all controls, with permanent bounds around each view, improving layout awareness when buttons and labels have no text.
Learn how to diagnose and fix missing backgrounds in Xcode by refreshing the canvas, toggling editors, and restoring background colors for image controls.
Navigate through Xcode issues by using the issue navigator and the exclamation marks to read full error details, identify unreachable entry points, and ensure segues have identifiers.
Learn to select a different nearby neighbor for constraints, pin a button to a specific edge with a chosen distance, and use control-drag or dropdown options to add precise margins.
Adjust label height dynamically using flexible height constraints to grow with content, support multi-line text, and switch between greater than or equal or less than or equal bounds.
Boost productivity by mastering the keyboard shortcut to open assistant editor mode on the storyboard: press option-command-enter to quickly switch to the assistant editor.
Move single or multiple lines of code up or down in the code file using keyboard shortcuts, treating the selection as a unit to avoid cut-and-paste.
Learn how to view Info.plist as source code in Xcode, add the camera usage description key, and safely edit the plist without breaking the file.
Thank you for completing the course; share your feedback and reviews to help others discover it, and enjoy discount codes for my other courses.
Are you an iOS developer? Have you been working with Xcode for a period of time and you want to be more productive? If you have been using Xcode as your iOS development tool, then you know that Xcode is a complex tool to use. In this course I have come up with 80 tips and tricks to boost your productivity as an iOS developer using the Xcode IDE (More tips will be added).
There are hidden features, cool and neat tricks and keyboard shortcuts that you need to master in order to work more efficiently. Some of these hidden features will blow your mind once you discover them. Xcode has so many neat functions that can be taken advantage of.
As a developer, I have been developing on Xcode for 5 years and in this period I have learnt lots of things that I want to share with you. Some of these features are not immediately obvious but with my guidance I'll be able to show you how and when to use each feature.
Some of the tricks we'll look at include;
This tips I shared in this course are the ones that I considered to be very important for every iOS developers to learn. There are many more tips and tricks but most of them will not improve your productivity any further.
If you are ready to become Xcode proficient, enroll in this course and I look forward to being your instructor.