| Previous revision Next revision |
— | dev:swift [2022/08/14 14:58] – Henrik Yllemo |
---|
| <button type="primary" size="xs" icon="glyphicon glyphicon-bookmark">[[programming_lagugages| Programming Language]]</button> |
| <nav type="tabs" justified="false"> |
| * [[:dev:xcode]]]] |
| * [[:dev:swift]] |
| * [[:dev:swiftui]] |
| * [[:dev:objective-c]] |
| * [[:kb:ios]] |
| * [[:kb:macos]] |
| </nav> |
| ====== Swift ====== |
| Swift is a general-purpose, multi-paradigm, compiled programming language developed by Apple Inc. for iOS, macOS, watchOS, tvOS, Linux, and z/OS. |
| <data programminglanguage> |
| Full Name: Swift |
| Short Name: Swift |
| Description: Swift is a general-purpose, multi-paradigm, compiled programming language |
| Company: Apple Inc |
| Web: Yes |
| Mobile: Yes |
| Enterprise: Yes |
| Embedded : Yes |
| </data> |
| |
| {{wp>Swift_(programming_language)}} |
| <callout type="" title="GitHub Topics" icon="fa fa-github"> |
| * https://github.com/topics/swift |
| |
| Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns. Inspired by many other modern programming languages, Swift is intended to be more resilient and expressive than Objective-C, its predecessor. |
| </callout> |
| |
| <callout type="" title="Free Programming Books" icon="fa fa-book"> |
| * [[https://www.programming-books.io/essential/swift/|Essential Swift]] |
| * [[https://www.hackingwithswift.com|Hacking with Swift]] |
| * [[https://goalkicker.com/SwiftBook/|Swift Notes for Professionals]] |
| * [[https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/index.html|The Swift Programming Language]] |
| * [[https://developer.apple.com/library/content//documentation/Swift/Conceptual/BuildingCocoaApps/index.html|Using Swift with Cocoa and Objective-C]] |
| <WRAP column right><wrap lo>Source: [[https://github.com/EbookFoundation/free-programming-books/blob/main/books/free-programming-books-langs.md|EbookFoundation]]</wrap></WRAP> |
| </callout> |
| |
| <jumbotron> |
| ===== Hello World ===== |
| |
| <sxh > |
| println("Hello, world!") // Swift 1.x |
| |
| print("Hello, world!") // Swift 2.x |
| </sxh> |
| <WRAP column right><wrap lo>Source: [[https://en.wikibooks.org/wiki/Computer_Programming/Hello_world|Wikibooks]]</wrap></WRAP> |
| </jumbotron> |
| |
| |
| ==== SwiftUI ==== |
| As of 2019, with Xcode 11, Apple has added a major new UI paradigm called **[[SwiftUI]]**. [[SwiftUI]] replaces the older Interface Builder paradigm with a new declarative development paradigm. |
| |
| * https://developer.apple.com/xcode/swiftui/ |
| |
| See also: [[dev:programming_lagugages]] |
| |
| |
| {{tag>Apple language programminglanguage dev-apple }} |
| |