Язык программирования от эпл

Documentation

If you are new to Swift, you may want to check out these additional resources.

Swift Language

The Swift Programming Language Book

The Swift Programming Language is the authoritative reference for Swift, offering a guided tour, a comprehensive guide, and a formal reference of the language.

Translations

We encourage you to participate in translating The Swift Programming Language into other languages. Get involved with an existing translation project, or start a new one.

If you know of a quality translation project underway, please let us know on the Compiler Development forums, and we’ll provide a link to that project on this page.

Standard Library

The Swift standard library defines a base layer of functionality for writing Swift programs. Documentation for the standard library is presently hosted on the Apple Developer website.

Packages

There are a number of packages that are part of the core Swift project. Below is a list of packages that currently offer hosted documentation.

Читайте также:  Распространенные задачи математического программирования

Swift-DocC

DocC is a documentation compiler that makes it easy for you to produce documentation for your Swift frameworks and packages. The compiler builds your documentation by combining the comments you write in source with extension files, articles, and tutorials that live alongside your package’s source code. This documentation is for using the DocC tool to generate documentation for your project.

API Design Guidelines

Delivering a clear, consistent developer experience when writing Swift code is largely defined by the names and idioms that appear in APIs. These design guidelines explain how to make sure that your code feels like a part of the larger Swift ecosystem.

Mixing Swift and C++

A development version of Swift has support for bidirectional interoperability with C++. A great variety of C++ APIs can be called directly from Swift, and select Swift APIs can be used from C++.

Swift’s support for C++ interoperability is actively evolving. Some C++ APIs and API patterns are not yet available in Swift, and vice-versa. This status page describes the extent to which interoperability is supported between the two languages:

Tools

Swift Package Manager

The Swift Package Manager is a tool for managing the distribution and use of “packages” of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies into target products.

Migration Guidelines

For users of Xcode, there is an included Swift migrator tool that helps you move your project to the latest version of Swift, or update it to work with the latest SDKs.

Copyright © 2023 Apple Inc. All rights reserved.

Swift and the Swift logo are trademarks of Apple Inc.

Источник

Swift. Язык программирования с открытым кодом. Мощь, простота и потрясающие приложения.

Swift — это надёжный и интуитивно понятный язык программирования от Apple, при помощи которого можно создавать приложения для iOS, Mac, Apple TV и Apple Watch. Он предоставляет разработчикам небывалую свободу творчества. Благодаря этому простому и удобному языку с открытым кодом вам достаточно просто интересной идеи, чтобы создать нечто невероятное.

Разработчики уже пользуются
удивительными возможностями Swift.

Swift — это быстрый и эффективный язык программирования с откликом в реальном времени, который легко можно вставить в готовый код Objective-C. Теперь разработчики могут не только писать более надёжные и безопасные коды, но также экономить время и создавать приложения с расширенными возможностями.

Прекрасное приложение в Swift. Простота использования и отклик в реальном времени — вот почему VSCO выбрали Swift, чтобы создать новую версию своего фотоприложения для iOS.

Превосходные приложения,
разработанные на языке Swift.

Всё больше разработчиков встраивают код Swift в свои приложения. А некоторые даже создают в Swift совершенно новые приложения.

Производительность выше. Приложения лучше.

Приложения Swift превосходят ожидания. Например, обычный алгоритм поиска выполняется в Swift гораздо быстрее.

В графе с использованием алгоритма поиска в глубину найдено 10 000 целых чисел*

Язык Swift добавлен
в учебную программу.

Потенциал Swift оценили учебные заведения по всему миру. Они используют Swift и Xcode на Mac для обучения, обеспечивая своих студентов лучшими инструментами для создания приложений. А с бесплатной учебной программой от Apple «Разработка на языке Swift» даже новички легко переходят от основ программирования к профессиональной разработке.

Университеты, включившие язык Swift в учебную программу

  • Калифорнийский университет в Санта-Круз
  • Колледж Футхилл
  • Мельбурнский королевский технологический университет
  • Мюнхенский технический университет
  • Общественный колледж Лосон
  • Общественный колледж Манхэттена
  • Общественный колледж Месы
  • Общественный колледж Хьюстона
  • Общественный колледж Централ Пьемонт
  • Плимутский университет
  • Политехнический университет штата Калифорния
  • Стэнфордский университет
  • Технический колледж северо-западного Канзаса
  • Технологический институт Монтеррея
  • Университет Аберистуита
  • Университет Фулл Сейл
  • Школа Ingésup
  • Южный методистский университет

Swift повсюду.
И теперь открыт для всех.

Swift бесплатно доступен для использования разработчиками, преподавателями и студентами по лицензии на распространение ПО с открытым исходным кодом Apache 2.0. Мы предоставляем двоичные файлы для OS X и Linux, которые позволяют компилировать код для iOS, OS X, watchOS, tvOS и Linux. А чтобы ускорить развитие и превращение Swift в ещё более мощный язык, мы создали новое сообщество, где пользователи могут напрямую вносить свой вклад в исходный код Swift.

Познакомьтесь со Swift.

Главная книга

Загрузите учебник Язык программирования Swift из Apple Books Store бесплатно. Узнайте, как благодаря Swift процесс программирования становится более удобным, гибким и увлекательным.

Xcode

Xcode — это приложение для Mac, предназначенное для разработки других приложений для Mac и iOS. В Xcode есть все инструменты, необходимые для создания потрясающих приложений. Его можно загрузить бесплатно из Mac App Store.

Веб-сайт для разработчиков

Получите подробную техническую информацию и ознакомьтесь с полным обзором языка Swift. Посмотрите блог для разработчиков, чтобы быть в курсе последних новостей. У вас также есть бесплатный доступ к отличным ресурсам: руководствам, видео и примерам кода.

Нижний колонтитул Apple

  • *Тестирование проводилось компанией Apple в октябре 2014 года на находящихся в продаже образцах 13-дюймового MacBook Air с процессором Intel Core i5 1,4 ГГц, 4 ГБ памяти и предпродажной версией OS X 10.10. Производительность зависит от конфигурации системы, сетевого подключения и других факторов.

Источник

Resources

Apple’s app development curriculum makes it easy for anyone to code in Swift just like the pros — whether it’s for a semester in school, for professional certification, or to advance your skills. Learn more

Tutorials

Exploring SwiftUI Sample Apps

Explore these SwiftUI samples using Swift Playgrounds on iPad or in Xcode to learn about defining user interfaces, responding to user interactions, and managing data flow. Start tutorial

Image of MacBook Pro displaying Xcode, with right pane of Xcode window previewing Scrumdinger interface

Develop Apps for iOS

14hr 15min Estimated Time

Get started using Xcode and the developer tools needed to build an app. Learn the basics of Xcode, SwiftUI, and UIKit to create native apps for iOS. Start tutorial

An illustration of an open MacBook Pro, displaying a screenshot of Xcode in Dark mode. In Xcode, the left panel shows the Project navigator, the code editor is at center, and the right side of Xcode’s window shows the canvas preview, displaying the sample app that you will build in this tutorial — Landmarks.

Introducing SwiftUI

4hr 25min Estimated Time

SwiftUI is a modern way to declare user interfaces for any Apple platform. Create beautiful, dynamic apps faster than ever before. Start tutorial

Image of MacBook Pro displaying Xcode, with right pane of Xcode window previewing Scrumdinger interface

Bring an iPad App to the Mac with Mac Catalyst

3hr 25min Estimated Time

Image of MacBook Pro displaying Xcode, with right pane of Xcode window previewing Scrumdinger interface

Download the Swift logo to use in course materials and technical publications related to teaching, training, or describing the Swift programming language. When promoting the use of the Swift programming language, follow these guidelines. Download logo and guidelines

Swift is developed in the open. To learn more about the open source Swift project and community, visit Swift.org.

Источник

Оцените статью