Swift

Code editor

AppCode provides Swift developers with essential coding features like code highlighting, which makes code easier to read; code formatting following a pre-defined or user-specific code style schemes, which describe indents, various spaces, blank lines; and much more. Completion for basic types, methods and variables also works for Swift code, supporting both CamelHumps and Middle Matching.

Watches and evaluations

Navigation options like highlighting all usages, navigation to symbol declaration, go to class/symbol and File Structure view work for Swift code as well. You can also list all usages in a separate window and group them the way you prefer with the Find Usages action.

Use string interpolation to combine strings in Swift and benefit from symbol name highlighting, auto-completion, and Rename.

To support Swift interoperability with Objective-C, AppCode also resolves Swift symbols from Objective-C code and vice versa, providing find usages, navigation and other useful features throughout your whole codebase.

Refactorings and quick documentation

With AppCode you can override/implement any method of the parent class or implement any protocol in your Swift code and generate a stub with the default code. Rename Swift variables, constants, functions, type names and classes with Rename refactoring and be sure AppCode updates all the usages across the entire code base for you.

Watches and evaluations

AppCode shows you the relevant documentation for Swift language. Press F1 to bring up a window with clickable links to other resources.

Quick Documentation for Swift can include: standard documentation from Apple DocSets, your own documentation comments, classes, protocols and functions signatures, enums, type aliases, etc., and even inferred type for constants and variables.

Debugger

Watches and evaluations

AppCode uses LLDB paired with the Xcode you select in the IDE settings.

View variables added to Watches tool window, evaluate Swift expressions using Evaluate expression... (⌥F8) and benefit from code completion for both cases.

Change values of type properties, arrays and array elements without stopping your debugging session with the Set value action (F2).

Inline variables view works for Swift as well.