www.swift.org Open in urlscan Pro
2620:149:a0e:f000::3  Public Scan

Submitted URL: http://1710171089832.caulaai2.com/abb5ad2a-513a-411a-9e9a-2ffc94283050?n=2&t=1710171089355&l_next=ahr0chm6ly93d3cubgf0yw5vbgn1bwlu...
Effective URL: https://www.swift.org/
Submission: On March 12 via api from US — Scanned from US

Form analysis 1 forms found in the DOM

<form class="color-scheme-toggle" role="radiogroup" tabindex="0" id="color-scheme-toggle">
  <legend class="visuallyhidden">Color scheme preference</legend>
  <label for="scheme-light">
    <input id="scheme-light" type="radio" name="color-scheme-preference" value="light">
    <span class="color-scheme-toggle-label">Light</span>
  </label>
  <label for="scheme-dark">
    <input id="scheme-dark" type="radio" name="color-scheme-preference" value="dark">
    <span class="color-scheme-toggle-label">Dark</span>
  </label>
  <label for="scheme-auto" id="scheme-auto-wrapper">
    <input id="scheme-auto" type="radio" name="color-scheme-preference" value="auto">
    <span class="color-scheme-toggle-label">Auto</span>
  </label>
</form>

Text Content

 * Get Started
 * Blog
 * Documentation
 * Packages
 * Community ▿
   * Overview
   * Swift Evolution
   * Diversity
   * Mentorship
   * Contributing
   * Workgroups
   * Contributor Experience
   * Server
   * Website
   * Language Steering Group
   * C++ Interoperability
   * Documentation
   * Governance
   * Code of Conduct
   * License
   * Security
 * Download

 * Get Started
 * Blog
 * Documentation
 * Packages
 * Community ▿
   * Overview
   * Swift Evolution
   * Diversity
   * Mentorship
   * Contributing
   * Workgroups
   * Contributor Experience
   * Server
   * Website
   * Language Steering Group
   * C++ Interoperability
   * Documentation
   * Governance
   * Code of Conduct
   * License
   * Security
 * Download 5.10


SWIFT IS A GENERAL-PURPOSE PROGRAMMING LANGUAGE THAT’S APPROACHABLE FOR
NEWCOMERS AND POWERFUL FOR EXPERTS. IT IS FAST, MODERN, SAFE, AND A JOY TO
WRITE.

struct Binomial: Codable {
    var genus: String
    var species: String
    var subspecies: String?
}

let tree = Binomial(genus: "Pin", species: "oak")
let jsonData = try JSONEncoder().encode(tree)

// {"genus":"Pin","species":"oak"}


struct ScientificName {
    var genus: String
    var species: String
    var subspecies: String?

    var description: String {
        var text = "\(genus) \(species)"
        if let subspecies {
            // subspecies guaranteed to be non-nil
            text += "subsp. \(subspecies)"
        }
        return text
    }
}


let hello = "Hello, world!"
let multilineString = """
                  @@@
      @@          @@@@
    @@  @@@         @@@@@
    @@@@@@@@@       @@@@@
      @@@@@@@@@@    @@@@@@
        @@@@@@@@@@  @@@@@@
          @@@@@@@@@@@@@@@@@
@           @@@@@@@@@@@@@@@
@@@@@@        @@@@@@@@@@@@@
  @@@@@@@@@@@@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@@@@@@@@@@@
        @@@@@@@@@@@@@     @
                      \(hello)
"""


 * 5.10
   Latest release
 * Get started
 * Read the docs
 * Explore packages


USE CASES


 * APPLE PLATFORMS
   
   Swift is a powerful and intuitive programming language optimized when running
   on iOS, macOS, and other Apple platforms.
   
   Apple offers a wide variety of frameworks and APIs that make applications
   developed for these platforms unique and fun.
   
   Learn more


 * CROSS-PLATFORM COMMAND-LINE
   
   Writing Swift is interactive and fun, the syntax is concise yet expressive.
   Swift code is safe by design and produces software that runs lightning-fast.
   
   SwiftArgumentParser and Swift's growing package ecosystem make developing
   cross-platform command-line tools a breeze.
   
   Learn more


 * SERVER AND NETWORKING
   
   Swift's small memory footprint, quick startup time, and deterministic
   performance make it a great choice for server and other networked
   applications.
   
   SwiftNIO and Swift's dynamic server ecosystem bring joy to developing
   networked applications.
   
   Learn more


GETTING INVOLVED

Everyone is welcome to contribute to Swift. Contributing doesn’t just mean
writing code or submitting pull request — there are many different ways for you
to get involved, including answering questions on the forums, reporting or
triaging bugs, and participating in the Swift evolution process.

No matter how you want to get involved, we ask that you first learn what’s
expected of anyone who participates in the project by reading the Community
Overview. If you’re contributing code, you should also know how to build and run
Swift from the repository, as described in Source Code.


 * DESIGN
   
   Help shape the future of Swift by participating in the Swift evolution
   process.
   
   Learn more


 * CODE
   
   Contribute to the Swift compiler, standard library, and other core components
   of the project.
   
   Learn more


 * TROUBLESHOOT
   
   Help improve the quality of Swift by reporting and triaging bugs.
   
   Learn more


WHAT’S NEW

Stay up-to-date with the latest in the Swift community.

 * Visit the Swift.org blog
 * Visit the Swift forums
 * Follow @swiftlang on X (formerly Twitter)

Copyright © 2024 Apple Inc. All rights reserved.

Swift and the Swift logo are trademarks of Apple Inc.

Privacy Policy Cookies

Color scheme preference Light Dark Auto