Learn serious code. In a seriously fun way.
Swift Playgrounds is a revolutionary app for iPad and Mac that makes learning Swift interactive and fun. It requires no coding knowledge, so it’s perfect for students just starting out. Solve puzzles to master the basics using Swift — a powerful programming language created by Apple and used by the pros to build today’s most popular apps. Then take on a series of challenges and step up to more advanced playgrounds designed by Apple and other leading developers.
The app provides you with bite-sized lessons, making it easy to squeeze a bit of learning to code into your otherwise busy day. Hands-on challenges help you solidify your skills, and achievements. Download Visual Studio Community, Professional, and Enterprise. Try Visual Studio IDE, Code or Mac for free today.
Robots and drones await your commands.
Now you can make robots do incredible things with code you write yourself. Learn to program connected devices like the Sphero SPRK+, LEGO® MINDSTORMS® EV3, and drones by Parrot, and watch them come alive right before your eyes.
Real Swift code.
Real simple. Real playful.
Learning to code with Swift Playgrounds is incredibly engaging. The app comes with a complete set of Apple-designed lessons. Play your way through the basics in “Fundamentals of Swift” using real code to guide a character through a 3D world. Then move on to more advanced concepts.
What you see is what you code: Create code on the left side of your screen and instantly see the results on the right — with just a tap.
Conquer levels, puzzles, and coding concepts.
Starting with the “Fundamentals of Swift” lesson, you’ll tackle goals using the same code professional developers use every day. As you move along, more advanced concepts come into play. You’ll continually build on what you’ve learned and create even more complex code.
Fundamentals of Swift.
You’ll start out by learning the important concepts you need to understand code.
Commands
Functions
Loops
Parameters
Conditional Code
Variables
Operators
Types
Initialization
Bug Fixing
Master the basics,
then step up to more challenges.
In addition to the built-in library of lessons, Swift Playgrounds includes a collection of extra challenges — with new ones added over time. Go deeper on a topic you’ve already studied or try your hand at something new. You’re not just building fun creations, you’re building your skills, too.
A big world of playgrounds from a big community of developers.
Discover dozens of channels with fun new challenges created by leading developers and publishers. Subscribe to your favorites and you’ll receive their latest creations right in the app. Now there are no bounds to your playgrounds.
A new way to create code.
On the best device for learning.
Easily drag braces around code, wrap existing code in a loop, or choose from dozens of drag-and-drop snippets included in Swift Playgrounds — right from your iPad or Mac. Take full advantage of powerful Multi-Touch, multitasking, and split view capabilities on iPad. Also, enjoy the view from your Mac. The larger screen makes room for a new sidebar with a complete table of contents and quick access to other Swift files. Just tap, drag, or type text and numbers. Then interact with what you’ve created.
QuickType and coding keyboard.
Write an entire line of code with just a tap. With QuickType for code, the Shortcut Bar automatically and intelligently suggests commands as you go. When typing is the best option, iPad has an innovative keyboard designed for coding. Simply touch a key to access multiple characters, then drag to choose the one you want. Experience similar code suggestions on Mac, which comes with even more help to complete your code.
Snippets Library.
Quickly drag commonly used pieces of code from the Snippets Library to minimize typing.
Touch to edit.
Conveniently drag the boundaries of a statement around existing code.
Help is just a tap away.
If you come across a command that’s hard to understand, simply tap it and hold. A menu of options will appear. Choose the most relevant one and get the answer you need.
Jump-start your creativity with Starting Points.
Use what you’ve learned to create something brand new. With Starting Points, you can get a head start on more advanced coding, add multiple files to your playground at once, and use iPad features such as Multi-Touch interactions, accelerometer, and gyroscope. Personalize your project by adding graphics, audio, and more. Then easily share with friends, family, or the world. Students can also share code with classmates when teachers use Starting Points to create lessons.
Explore your creations in full screen.
Immerse yourself by using the vivid Retina displays of iPad or Mac. Simply tap the center divider, then drag to view your code or live project on the full screen. You can also customize built-in games like Battleship and Brick Breaker, then immerse yourself by letting them take up the whole screen.
See your code crawl, roll, or fly through the sky.
Watch your code spring to life by programming real robots, musical instruments, and drones. The Accessories channel is filled with engaging playgrounds that let you configure and control popular educational toys like LEGO® MINDSTORMS® EV3. And that’s just the beginning.
Sphero playgrounds let you guide this spherical robot through tricky courses, accelerate over jumps, and change colors.
Dash playgrounds challenge you to make it sing, dance and respond to sensor inputs to react to their environment.
MeeBot playgrounds guide you through coding Jimu Robot Meebot’s six robotic servo motors to make him move in lifelike ways. Or even dance.
Same problem on iPhone 11 and iPad mini both with latest iOS. Black desert for mac.
Tello EDU playgrounds let you command multiple Tello drones to fly in a swarm, perform flips and other acrobatic movements, and push the limits of your creativity.
Explore robots, drones, and many other connected devices that support Swift Playgrounds.
Swift Playgrounds
How it works
With two-factor authentication, only you can access your account on a trusted device or the web. When you want to sign in to a new device for the first time, you'll need to provide two pieces of information—your password and the six-digit verification code that's automatically displayed on your trusted devices or sent to your phone number. By entering the code, you're verifying that you trust the new device. For example, if you have an iPhone and are signing into your account for the first time on a newly purchased Mac, you'll be prompted to enter your password and the verification code that's automatically displayed on your iPhone.
Because your password alone is no longer enough to access your account, two-factor authentication dramatically improves the security of your Apple ID and all the personal information you store with Apple.
Once signed in, you won’t be asked for a verification code on that device again unless you sign out completely, erase the device, or need to change your password for security reasons. When you sign in on the web, you can choose to trust your browser, so you won’t be asked for a verification code the next time you sign in from that computer.
Trusted devices
A trusted device is an iPhone, iPad, or iPod touch with iOS 9 and later, or Mac with OS X El Capitan and later that you've already signed in to using two-factor authentication. It’s a device we know is yours and that can be used to verify your identity by displaying a verification code from Apple when you sign in on a different device or browser. An Apple Watch with watchOS 6 or later can receive verification codes when you sign in with your Apple ID, but cannot act as a trusted device for password resets.
Trusted phone numbers
A trusted phone number is a number that can be used to receive verification codes by text message or automated phone call. You must verify at least one trusted phone number to enroll in two-factor authentication.
You should also consider verifying an additional phone number you can access, such as a home phone, or a number used by a family member or close friend. You can use this number if you temporarily can't access your primary number or your own devices.
Verification codes
A verification code is a temporary code sent to your trusted device or phone number when you sign in to a new device or browser with your Apple ID. You can also get a verification code from Settings on your trusted device.
A verification code is different from the device passcode you enter to unlock your iPhone, iPad, or iPod touch.
Set up two-factor authentication for your Apple ID
You can follow these steps to turn on two-factor authentication on your device. Learn more about the availability of two-factor authentication.
Promo Codes For Mac
Turn on two-factor authentication on your iPhone, iPad, or iPod touch
Turn on two-factor authentication in Settings
If you're using iOS 10.3 or later:
- Go to Settings > [your name] > Password & Security.
- Tap Turn On Two-Factor Authentication.
- Tap Continue.
If you're using iOS 10.2 or earlier:
- Go to Settings > iCloud.
- Tap your Apple ID > Password & Security.
- Tap Turn On Two-Factor Authentication.
- Tap Continue.
Best Code App For Mac
You might be asked to answer your Apple ID security questions.
Enter and verify your trusted phone number
Enter the phone number where you want to receive verification codes when you sign in. You can choose to receive the codes by text message or automated phone call.
When you tap Next, Apple sends a verification code to the phone number you provided.
Enter the verification code to verify your phone number and turn on two-factor authentication.
Turn on two-factor authentication on your Mac
If you're using macOS Catalina:
- Choose Apple menu > System Preferences, then click Apple ID.
- Click Password & Security under your name.
- Click Turn On Two-Factor Authentication.
If you're using macOS Mojave or earlier:
- Choose Apple menu > System Preferences, then click iCloud, and select Account Details.
- Click Security.
- Click Turn On Two-Factor Authentication.
Some Apple IDs created in iOS 10.3 or macOS 10.12.4 and later are protected with two-factor authentication by default. In this case, you see that two-factor authentication is already turned on.
Create an Apple ID with two-factor authentication on the web
If you don't have an iPhone, iPad, iPod touch, or Mac, you can create a new Apple ID with two-factor authentication on the web.
Learn how to create an Apple ID on the web.
If you have an Apple ID that's not protected by two-factor authentication, some Apple web sites might ask you to update your account.
What to remember when you use two-factor authentication
Two-factor authentication significantly improves the security of your Apple ID. After you turn it on, signing into your account will require both your password and access to your trusted devices or trusted phone number. To keep your account as secure as possible and help ensure you never lose access, there are a few simple guidelines you should follow:
- Remember your Apple ID password.
- Use a device passcode on all your devices.
- Keep your trusted phone number(s) up to date.
- Keep your trusted devices physically secure.
Manage your account
You can manage your trusted phone numbers, trusted devices, and other account information from your Apple ID account page.
Keep your trusted phone numbers up to date
To use two-factor authentication, you need at least one trusted phone number on file where you can receive verification codes. Consider verifying an additional trusted phone number other than your own phone number. If your iPhone is your only trusted device and it is missing or damaged, you will be unable to receive verification codes required to access your account.
You can update your trusted phone numbers when you follow these steps:
- Go to your Apple ID account page.
- Sign in with your Apple ID.
- Go to the Security section and click Edit.
If you want to add a phone number, click Add a Trusted Phone Number and enter the phone number. Choose to verify the number with a text message or automated phone call, and click Continue. To remove a trusted phone number, click next to the phone number you want to remove.
View and manage your trusted devices
You can view and manage a list of your trusted devices on iOS, macOS, and in the Devices section of your Apple ID account page.
On iOS:
- Go to Settings > [your name].
- Select a device from the list.
On macOS Catalina:
- Choose Apple menu > System Preferences.
- Select Apple ID.
- Select a device from the sidebar.
On macOS Mojave or earlier:
- Choose Apple menu > System Preferences.
- Select iCloud, then click Account Details.
- Click the Devices tab.
- Select a device from the list.
On the web:
- Go to your Apple ID account page.
- Sign in with your Apple ID.
- Go to the Devices section.
The device list shows the devices that you're currently signed in to with your Apple ID. Select a device to view device info like the model and serial number. Below that you can see other useful information, including whether or not the device is trusted and can be used to receive Apple ID verification codes.
You can also remove a trusted device by selecting Remove from Account from the device list. Removing a trusted device will ensure that it can no longer display verification codes and that access to iCloud, and other Apple services on the device, is blocked until you sign in again with two-factor authentication. If you need to find or erase your device before you remove it from your trusted device list, you can use Find My iPhone.
Generate app-specific passwords
With two-factor authentication, you need an app-specific password to sign in to your account using third-party apps or services such as email, contacts, or calendar apps not provided by Apple. Follow these steps to generate an app-specific password:
- Sign in to your Apple ID account page.
- Click Generate Password below App-Specific Passwords.
- Follow the steps on your screen.
After you generate your app-specific password, enter or paste it into the password field of the app as you would normally.
Frequently asked questions
Need help? You might find the answer to your question below.
What if I forget my password?
You can reset or change your password from your trusted device or browser when you follow these steps.
On your iPhone, iPad, or iPod touch
- Go to Settings > [your name]. If you're using iOS 10.2 or earlier, go to Settings > iCloud > tap your Apple ID.
- Tap Password & Security > Change Password.
- Enter a new password.
On your Mac
If you're using macOS Catalina:
- Choose Apple menu > System Preferences, then click Apple ID.
- Click Password & Security, then click Change Password.
If you're using macOS Mojave or earlier:
- Choose Apple menu > System Preferences, then click iCloud.
- Choose Account Details. If you're asked to enter your Apple ID password, click Forgot Apple ID or password and follow the onscreen instructions. You can skip the steps below.
- Click Security > Reset Password. Before you can reset your Apple ID password, enter the password used to unlock your Mac.
On the web
If you don't have access to an iPhone, iPad, iPod touch, or Mac, you can reset or change your password from iforgot.apple.com.
What if I can't access a trusted device or didn't receive a verification code?
If you're signing in and don’t have a trusted device handy that can display verification codes, you can have a code sent to your trusted phone number via text message or an automated phone call instead. Click Didn't Get a Code on the sign in screen and choose to send a code to your trusted phone number. You can also get a code directly from Settings on a trusted device. Learn how to get a verification code.
If you use iOS 11.3 or later on your iPhone, you might not need to enter a verification code. In some cases, your trusted phone number can be automatically verified in the background on your iPhone. It’s one less thing to do, and your account is still protected with two-factor authentication.
If I can't sign in, how do I regain access to my account?
If you can’t sign in, access a trusted device, reset your password, or receive verification codes, you can request account recovery to regain access to your account. Account recovery is an automatic process designed to get you back in to your account as quickly as possible while denying access to anyone who might be pretending to be you. It might take a few days—or longer—depending on what specific account information you can provide to verify your identity.
Do I still need to remember any security questions?
No. With two-factor authentication, you don't need to remember any security questions. We verify your identity exclusively using your password and verification codes sent to your trusted devices and phone numbers. When you enroll in two-factor authentication, we keep your old security questions on file for two weeks in case you need to return your account to its previous security settings. After that, they're deleted.
Can Apple Support help me regain access to my account?
Apple Support can answer your questions about the account recovery process, but can't verify your identity or expedite the process in any way.
What are the system requirements for two-factor authentication?
For the best experience, make sure that you meet these system requirements on all of the devices you use with your Apple ID:
- iPhone, iPad, or iPod touch with iOS 9 and later
- Mac with OS X El Capitan and iTunes 12.3 and later
- Apple Watch with watchOS 2 and later
- Apple TV HD with tvOS
- Windows PC with iCloud for Windows 5 and iTunes 12.3.3 and later
Can Apple IDs created for children use two-factor authentication?
Yes. Any Apple ID that meets the basic system requirements can enroll in two-factor authentication. Learn more about who can use two-factor authentication.
What if I don’t recognize the location shown in my sign in notification?
When you sign in on a new device, you’ll get a notification on your other trusted devices that includes a map showing the approximate location of the new device. This is an approximate location based on the IP address the device is currently using, rather than the exact location of the device. The location shown might reflect the network you're connected to, and not your physical location.
If you know you’re the person trying to sign in but you don’t recognize the location shown, you can still tap Allow and continue signing in. However, if you ever see a notification that your Apple ID is being used to sign in on a new device and you're not the one signing in, tap Don’t Allow to block the sign in attempt.
What if I use two-factor authentication on a device running older software?
If you use two-factor authentication with devices running older OS versions—like an Apple TV (2nd or 3rd generation)—you might be asked to add your six-digit verification code to the end of your password when signing in. Get your verification code from a trusted device running iOS 9 and later or OS X El Capitan and later, or have it sent to your trusted phone number. Then type your password followed by the six-digit verification code directly into the password field.
Can I turn off two-factor authentication after I’ve turned it on?
If you already use two-factor authentication, you can no longer turn it off. Certain features in the latest versions of iOS and macOS require this extra level of security, which is designed to protect your information. If you recently updated your account, you can unenroll within two weeks of enrollment. Just open your enrollment confirmation email and click the link to return to your previous security settings. Keep in mind, this makes your account less secure and means that you can't use features that require higher security.
Is this different than Apple’s older two-step verification feature?
Yes. Two-factor authentication is built directly into iOS, macOS, tvOS, watchOS, and Apple’s web sites. It uses different methods to trust devices and deliver verification codes, and offers a more streamlined user experience. You need two-factor authentication to use certain features that require improved security.
If you already use two-step verification and want to update to two-factor authentication, learn how to switch to two-factor authentication. If your account isn't eligible for two-factor authentication, you can still use two-step verification to protect your information.