Swift
-
Swift 2.2 Released!
We are very pleased to announce the release of Swift 2.2! This is the first official release of Swift since it was open-sourced on December 3,...
-
Expanding Commit Access
Now that the Swift Continuous Integration system is established and proven, we’d like to grant commit access on a more frequent basis to project...
-
Swift Benchmark Suite now Available
Apple’s Swift Team is happy to announce that Swift’s benchmark suite is now open source. The suite contains source code for benchmarks,...
-
Continuous Integration now Available
We are excited to announce that we have rolled out continuous integration (aka, CI) for the Swift project! Our CI system is powered by...
-
It's Coming: the Great Swift API Transformation
Cocoa, the Swift standard library, maybe even your own types and methods—it’s all about to change, and you can help determine how. Ever since...
-
Swift 2.2 Release Process
This post describes the goals, release process, and estimated schedule for Swift 2.2. Swift 2.2 is the first official release of Swift after...
-
Swift 3 API Design Guidelines
The design of commonly-used libraries has a large impact on the overall feel of a programming language. Great libraries feel like an extension of...
-
The Swift Linux Port
With the launch of the open source Swift project, we are also releasing a port that works with the Linux operating system! You can build it from...
-
The Swift.org Blog
Welcome to the blog on Swift.org! Today we launched the open source Swift project along with the Swift.org website. We couldn’t be more excited...
-
More if{}else{}
Edited Transcript Last time we learned the if-else, Let’s expand on that knowledge with more about if-else.In our code so far, we have...
-
Make Swift Playground Apps: Using if{}else{}
Transcript Up to now, we’ve assigned constants and variables directly. Our next step is to change them when conditions change. For that, we use the...
-
Make Swift Playgrounds Apps : Variables and Scope
Transcript We’ve been using constants and literal up to now. However, you will want values to change as you build apps. For that, you need...
-
Make Swift Playgrounds Apps: Learn About Swift Types
We’ve used integers and strings so far in our code for values. We use each differently, and their use we call a type. Numbers like integers...
-
Make Swift Playgrounds Apps: Adding Images
Transcript We’ve made our basic wireframe, now let’s begin to add more content. The images we have now wont tell us a much as...
-
Make Swift Playgrounds Apps: Create New Files and Views
Transcript We have the wireframe for the menu page of our takeout order app, but we have only one menu Item, and we probably want more than that....
-
Make Swift Playgrounds Apps: HStack, VStack and Layout
Transcript We’ve learned some basics of Swift and some fundamental SwiftUI objects. Unfortunately what we’ve done as a demo doesn’t look so...
-
Run Real Apps with Swift Playgrounds for Mac 4.1
A quick review of the changes in Swift Playgrounds 4.1 on the Mac. Learn how you can make and publish an app without Xcode either directly to your...
-
Make Swift Playgrounds Apps: Using Functions
Transcript We have Identifiers for values we can use repeatedly. If you think of constants as nouns we’ll need some verbs...
-
Make Playgrounds Apps: Constants and Calculations
Transcript We’ve got an application started, but it is very hard to change to do anything with. If I wanted something other than guitars, such as...
-
How to filter screenshots, cinematic videos, and depth-effect photos in PHPickerViewController
In iOS 14.0, Apple introduced a new way to pick images from the device’s photo library using PHPickerViewController. (If you are not aware of...
-
Implementing a custom native calendar using UICalendarView in iOS16 and Swift
It was WWDC22 week, and I was browsing through my Twitter feed to get some updates about the latest Apple APIs. A person tweeted, “No matter how...
-
Different methods to remove the last item from an array in Swift
Arrays are one of the most widely used data structures in Swift, and we deal with a lot of array manipulations. One such manipulation is the...
-
Customizing UIButton in iOS 15
Buttons are an essential element in iOS apps. If you are developing an app using UIKit, you will probably use UIButton class to create buttons....
-
Exploring Deque in Swift Collections
Deque (should be pronounced as “deck”) is a collection implementing double-ended queues. Deques are similar to arrays, but they have efficient...
-
Swap keys and values of a Dictionary
Dictionaries are one of the most commonly used data structures. Dictionaries come with keys and values where the keys are unique. Sometimes, there...