HexLibraryHexLibrary
</> HexCodeSign inSign up
PythonJavaScriptTypeScriptCC++JavaPHPGoRustRubyBashSQLLuaPerlCOBOLPascalDelphiFortranDartSwiftC#JuliaGroovyRElixirHaskellKotlinScalaClassic ASPClipperMS-DOS
LESSONS
Introduction to SwiftVariablesData TypesOperatorsStringsArraysConditions (if / else)Loops (for / while)Functions
REFERENCE
📖 Overview
🖥️ Output
📦 Variables & Types
🔢 Numbers & Math
✍️ String
📚 Array & Dictionary
🔀 Condition & Loop
🧩 Function
Swift›REFERENCE

Swift — Command Reference

Swift's most used commands and methods — each with an explanation, working example, and real-world usage. The language for iOS/macOS apps.

7 categories · 16 commands

🖥️

Output

Printing to the console and string interpolation.

print()String interpolation \(...)
2 commands →
📦

Variables & Types

var, let, and type conversion.

var / letInt() / String()
2 commands →
🔢

Numbers & Math

Operators and Foundation mathematical functions.

Math operatorssqrt() / pow() / abs() (Foundation)
2 commands →
✍️

String

Length, casing, searching, and replacing.

.count / .uppercased().contains() / .replacingOccurrences() (Foundation).split(separator:)
3 commands →
📚

Array & Dictionary

Array and Dictionary.

Array (arr)Dictionary
2 commands →
🔀

Condition & Loop

if/else, for-in, and while.

if / elsefor-inwhile
3 commands →
🧩

Function

func, return, and default parameters.

func (function)Default parameter
2 commands →
HexLibraryHexLibrary

Learn programming more clearly. Every command is explained line by line with colors, reinforced with runnable exercises, test your code instantly — all in one place, free.

Learn

  • Home
  • Languages & Lessons
  • HexCode

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Use

Other Projects

  • HexToolz
  • Free Service Manuals
© 2026 HexLibrary · The clearest way to learn code