Language
日本語
English

Caution

JavaScript is disabled in your browser.
This site uses JavaScript for features such as search.
For the best experience, please enable JavaScript before browsing this site.

  1. Home
  2. Swift Dictionary

Swift Dictionary Index

[Setup] Swift Development EnvironmentSteps to set up an environment for installing and running Swift.
let / var / Type InferenceDeclaring constants and variables with type inference.
Tuple / Named TupleGrouping multiple values together.
String.count / isEmpty / String LiteralsBasic string operations.
String.uppercased() / lowercased() / capitalizedConverting between uppercase and lowercase.
String.hasPrefix() / hasSuffix() / contains()String determination and checking.
String.replacingOccurrences() / trimmingCharacters()Replacing and trimming strings.
String.split() / joined() / String IndexSplitting, joining, and index operations on strings.
Array.append() / insert() / remove()Adding, inserting, and removing array elements.
Array.contains() / firstIndex() / lastIndex()Searching and checking within an array.
Array.filter() / sorted() / sort()Filtering and sorting an array.
Array.map() / compactMap() / flatMap()Transforming array elements.
Array.reduce() / forEach() / enumerated()Aggregating and enumerating an array.
Array.prefix() / suffix() / dropFirst() / dropLast()Slicing and concatenating arrays.
Dictionary Basics / .keys / .valuesDeclaring and accessing a dictionary.
Dictionary.updateValue() / Removing Entries / mapValues()Updating, deleting, and transforming a dictionary.
Set.insert() / remove() / contains()Basic set operations.
Set.union() / intersection() / subtracting()Set operations such as union and intersection.
switch / case / where / fallthroughConditional branching with pattern matching.
for-in / while / repeat-whileBasic loop constructs.
break / continue / return / labeled statementControlling loops and functions.
guard / guard let / guard varConditional checking with early return.
func / Argument Labels / Default ParametersDefining functions and rules for arguments.
inout / Return Types / Multiple Return ValuesAdvanced use of inout parameters and return values.
Closures (Basics) / { } / inBasic closure syntax.
Trailing Closures / Shorthand / $0Writing closures concisely using trailing closure syntax.
@escaping / @autoclosure / Capture ListAdvanced topics on closures.
Optional / ? / !Basics of Optional (safely handling nil).
if let / guard let (Optional Binding)Safely unwrapping an Optional.
Optional Chaining / map / flatMap (Optional)Calling methods and transforming Optional values.
?? (Nil-Coalescing Operator)Returning a default value when nil is encountered.
Type Casting — as / as? / as! / isChecking and converting types.
enum Basics / case / switchDefining and using enumerations.
enum RawValue (Int / String)Enumerations with raw values.
enum Associated ValuesEnumerations with associated values.
enum Methods / Properties / mutatingAdding methods to an enumeration.
struct Basics / Memberwise InitializerDefining structs and characteristics of value types.
class Basics / init() / deinit()Defining classes and characteristics of reference types.
Inheritance / override / final / superClass inheritance and method overriding.
Stored Properties / Computed Properties / lazyTypes of properties and how to use them.
Failable Initializer / required initSpecial initializers.
typealias / Type AliasGiving a type an alias.
protocol Basics / ConformanceDefining and adopting protocols.
Protocol Default Implementations / Protocol CompositionAdvanced use of protocols.
extension Basics / Adding MethodsExtending existing types.
extension + protocol / Default ImplementationsConforming to a protocol using an extension.
Codable / Encodable / DecodableJSON encoding and decoding.
Comparable / Hashable / EquatableUsing standard protocols.
Generic Functions / Type ParametersWriting generic functions independent of specific types.
Generic Types / where ClauseGeneric structs, classes, and enums.
some / any / opaque typeType abstraction syntax in Swift 5.7+.
Error / Defining Errors with enumDefining custom errors.
throws / try / do-catchThrowing and catching errors.
Result<Success, Failure>Treating success and failure as values.
ARC / Strong References / Retain CyclesHow ARC works and patterns that cause retain cycles.
weak / unownedPreventing retain cycles with weak and unowned references.
async / await BasicsDefining and calling asynchronous functions.
Task / TaskGroup / async letManaging tasks and running them in parallel.
Actor / Preventing Data RacesData protection with actors and usage of @MainActor.
Date / DateFormatter / CalendarManipulating dates and times.
URL / URLComponents / URLSessionBuilding URLs and making HTTP requests.
JSONDecoder / JSONEncoderJSON decoding and encoding.
FileManagerFile and directory operations.
UserDefaultsPersisting app settings and small data.
NotificationCenterEvent notification between objects.
TimerTimer processing.