Not only does that mean a wide range of iPad devices will get the same super-fast coding experience I had, but also that folks lucky enough to have the 2021 M1-powered model are likely to see another 50% performance improvement here too. I’ve been using a 12.9-inch 2020 iPad Pro with the Magic Keyboard, which means I’m using the older A12Z that’s almost identical to the A12X used in the 2018 iPad Pro models. Plus, it’s always interactive, so you can swipe around, tap, and otherwise interact with your layouts as you write the code. Just like with Xcode on the new M1 MacBook Pros, SwiftUI previews are instant on your iPad, so as you type the UI changes right in front of you. The first thing that hits you with Playgrounds 4 is just how fast the editor is. For example, when you want to add a capability to a Swift Playgrounds app, it’s all done using a beautiful new user interface where you select from a list, then enter any addition data as prompted – that means goodbye to adding keys like “NSLocationAlwaysAndWhenInUseUsageDescription” to your property list.īest of all, if you decide you want to move your project over from Swift Playgrounds to Xcode, you can do just that: just hit Share, then AirDrop it to your Mac, and Xcode will pick up exactly where you left off. ![]() Even better, at last there is access to debug output using print() and similar – by default it slides up from the bottom in a toast-style notification then animates away after a few seconds, but you can also make the console permanently visible if you prefer.īut, critically we don’t get some of Xcode’s biggest problems. Swift Playgrounds has chosen a different way: rather than trying to recreate all of Xcode on iPadOS, it instead aims to produce “Diet Xcode” – by which I mean “slimmer, faster, and streamlined” and not “why does my drink taste weird.” That means we get Xcode-style code completion that appears instantly, we get Xcode-style instant SwiftUI previews as we type, we get Xcode-style imports for SPM packages through Git, and much more.Īnd don’t think for a moment there are compromises on what you can code, because there really aren’t: this is full Swift 5.5 with all the latest concurrency features, plus access to the full set of SwiftUI API for iOS 15. Sponsor Hacking with Swift and reach the world's largest Swift community! Building iPad apps on your iPadįolks have been requesting Xcode for iPad for some time, but that would have required a pretty epic effort – does that mean all of Interface Builder? All the Objective-C and C++ support? Or – * cue silent screaming* – ist files? From testing new features to optimizing app performance and stability, Instabug’s deep visibility and insights equip you to excel in the mobile landscape. SPONSORED Designed for mobile apps, Instabug enables your team to consistently deliver exceptional 5-star apps. Want to learn how to build apps with Swift Playgrounds 4? I have the perfect tutorial for you: How to build your first SwiftUI app with Swift Playgrounds.Yes, it ships with Swift 5.5 and all the concurrency awesomeness that entails.Yes, you get the fantastic new code completion, just like with Xcode. ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |