www.swift.org
Open in
urlscan Pro
2620:149:a0e:f100::6
Public Scan
Submitted URL: http://1708051520974.caulaai2.com/80be06b8-53f9-42e5-a482-45e8ab7d69fb?n=2&t=1708051520499&l_next=ahr0chm6ly93d3cuz2fsyxrpa25vdhzp...
Effective URL: https://www.swift.org/
Submission: On February 16 via api from US — Scanned from US
Effective URL: https://www.swift.org/
Submission: On February 16 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 Showcase * Packages with Macros * Server * Networking * Testing * Debug Logging * Community ▿ * 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 Showcase * Packages with Macros * Server * Networking * Testing * Debug Logging * Community ▿ * Swift Evolution * Diversity * Mentorship * Contributing * Workgroups * Contributor Experience * Server * Website * Language Steering Group * C++ Interoperability * Documentation * Governance * Code of Conduct * License * Security * Download 5.9.2 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 ScientificName: Codable { var genus: String var species: String var subspecies: String? } let momiji = ScientificName(genus: "Acer", species: "palmatum") let jsonData = try JSONEncoder().encode(momiji) // {"genus":"Acer","species":"palmatum"} struct ScientificName { var genus: String var species: String var subspecies: String? var description: String { var text = "\(genus) \(species)" if let subspecies { // subspecies is guaranteed to be non-nil here. text += "subsp. \(subspecies)" } return text } } func squareWave(phase: Float, overtones: UInt) -> Float { return (0...overtones) .map { let harmonic = Float($0 * 2 + 1) return sinf(phase * harmonic) / harmonic } .reduce(0, +) } let hello = "Hello, world!" let multilineString = """ @@@ @@ @@@@ @@ @@@ @@@@@ @@@@@@@@@ @@@@@ @@@@@@@@@@ @@@@@@ @@@@@@@@@@ @@@@@@ @@@@@@@@@@@@@@@@@ @ @@@@@@@@@@@@@@@ @@@@@@ @@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@ @ \(hello) """ * 5.9.2 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