7 ms·
Building iPad Pro features in Swift
- jbigelow76 8y agoCool hardware, but there's no way I could justify the price to myself with the limited functionality of iOS as it stands today. A lot Apple tech writers/podcasters keep saying "just wait for iOS 13!", but the earliest a developer is going to see iOS 13 is 6 months from now at WWDC, the earliest the general public will get any additional functionality is 11 months from now. That's a LONG wait to see if any changes will be made to make these capable of doing real work for all but artistic professionals.
- giobox 8y agoI think given the specifications of these devices, the pricing, while definitely high, is not completely unreasonable for what the hardware can do - these iPads do things no currently shipping Mac notebook can - 120hz refresh, 240hz touch/pen tracking, FaceID, performance in similar ballpark to a $3k MacBook Pro while passively cooled (!) etc etc. It’s just such a shame iOS isn’t quite ready yet to provide the kind of computing experience the hardware is clearly capable enough to deliver. If this is going to be priced like a macOS machine, it needs to offer a reasonable set of Mac style functionality - for me this means proper multi-user support so my family can all use the device with their own accounts and services and ideally some kind of windowing model for the OS to better handle multi-tasking. iOS will need to answer a lot of questions in the next few years that it has so far steadfastly avoided. Apple bragged how these iPads can drive 5k monitors via an Xbox one S performance class GPU, but without indirect input methods (e.g. a mouse) this feature is really not much use for anything other than display mirroring. Today I only ever use video out on iOS devices for occasional video playback on TVs, I suspect I’m not alone in this. iOS will likely either need to support a mouse or Apple will have to create some kind of standard for multi-touch external monitors that can allow iOS application input via touch on the external display if professional class workflows using multiple monitors on iOS is ever going to be a mainstream thing the way it is on the Mac.
- criddell 8y agoI'd be surprised if Apple ever does more than the current two-window model. A multi-user feature would certainly be nice though. I think iOS is mostly fine. I don't think it's supposed to be a macOS replacement. There are some things a Mac is better for and other things an iPad is better for. Apple wants you to have both.
- snazz 8y agoYou can actually kind of fit three windows on an iPad: two in Split View and another one on top in Slide Over. Even if you can’t interact with the background windows when Slide Over is active, they continue to refresh their contents.
- saagarjha 8y agoFun fact: I believe you used to be able to interact with the split viewed apps in early betas of iOS, but then the feature was removed and restricted to only when you had one app open.
- ncw96 8y agoYou can interact with two Split View apps and one Slide Over app at the same time, but this is limited to newer models (I believe 2017 iPad Pro or newer). If you are on an older iPad, it is as you describe.
- saagarjha 8y agoYes, but this used to be enabled for all iPads. The feature was then removed, probably because older ones just couldn't keep all the apps running reliably.
- jbigelow76 8y agoI think given the specifications of these devices, the pricing, while definitely high, is not completely unreasonable for what the hardware can do - these iPads do things no currently shipping Mac notebook can - 120hz refresh, 240hz touch/pen tracking, FaceID, performance in similar ballpark to a $3k MacBook Pro while passively cooled (!) etc etc. Totally agree, and if they had XCode or a decent native C# IDE on there I'd be at an Apple store right now forking over fist fulls of cash.
- IOT_Apprentice 8y agoAnd another reason to wait a year at least to buy a new iPad Pro if you already have one. Wait till A13x or A14x to see an iOS that can utilize it properly.
- CharlesW 8y ago> Wait till A13x or A14x to see an iOS that can utilize it properly. What will these future processors do that's so earth-shattering that it can't be supported on today's iPad Pros, which will run new versions of iOS for many years?
- jbigelow76 8y agoYep, I have a feeling this will happen alot, even if Apple waits 18 months to refresh iPad hardware that's still only 4-6 months from iOS 13's release. And maybe some hardware criticisms, like only one USB-C port, will be addressed (probably not though)
- yjftsjthsd-h 8y ago> only one USB-C port, will be addressed (probably not though) Apple shipped a laptop with only 1 USB port. I'm not holding my breath.
- lostgame 8y agoYou can charge, or you can use a dongle for your USB key - but of course never both, unless you pay us $79 for the USB-A/VGA adaptor. I used to love Apple, I really did.
- tluyben2 8y agoI did not hear "wait for iOS 13"; searching Google I see a lot of talk about features that do not seem very interesting. What would it be that we are waiting for? Only thing most (here and elsewhere) are looking for is better multitasking (rather; side by side 'anything', so the same app with different or the same docs open or different apps with different docs and then copy/paste + drag & Drop between them) and more freedom for devs to make better software. I do not read those features in the expected new features for iOS 13 but maybe I am reading the wrong posts?
- jbigelow76 8y agoThe complaints I've heard: - Lack of mass storage support through USB-C and the Files app (this seems like a comically boneheaded omission that Apple is going to dig their heels in until iOS 13 a year from now). - No XCode - No Final Cut Pro - No Logic Pro - No pointing device especially when used with an external monitor (I don't think anyone should their breath on this one though). Granted, the audience for XCode is small, the audience for Logic Pro is small, people wanting a pointing device is small, etc... but taken in aggregate you end up with a large group that still can't call this iPad a "computer" the same way they can their laptop/desktop.
- tluyben2 8y agoBut are any of these fixed with iOS 13 besides the storage? XCode would be really good to have. Pointing device I do not share the pain of, but like you said, it's a small audience for any of those. I think XCode might be bigger as that can touch the 'first programming experience' and educational space here. An actual mature environment that doesn't require all the setup and misery of desktop development.
- deleted 8y ago[deleted]
- arkw 8y agoI can imagine that Apple is ready to release an OS for the iPad with the full functionality (file system, mouse & cursor) and would do so in the event of the more expensive and port-lacking new Air undersells. Wouldn't surprise me if they had it ready as a backup plan, especially seeing the success of tablet computing with the MS Surface.
- giobox 8y ago> especially seeing the success of tablet computing with the MS Surface. MS Surface sales last quarter: 602,000. iPad sales last quarter: 9.6 million. Even the Mac shifted over 5 million machines, all the more impressive when one considers that for much of that quarter staple models such as the Air were long, long overdue a refresh. The Surface sales figure presumably includes models that aren’t even tablets - the “Surface Laptop” is likely one of their best sellers I’d assume, given the attractive combination of price, design, specs and generally positive reviews. While I too would love to see the features you suggest in iOS, Apple’s success in the tablet space is largely unprecedented for a computer manufacturer.
- empath75 8y agoI find it so weird that people continually talk about apple as if it’s producing one failure after another and they need to start copying less successful products, when it’s the largest company in the world and has more profits by far than any of their competitors in any market they’re in.
- arkw 8y agoFair enough, the numbers speak for themselves. What strikes me as interesting though is that the Surface uncovered a lot of people (especially students on my campus) willing to use tablets as a primary device. I'd bet that a lot of people would shift from Macs to iPads if they had a more comprehensive OS.
- twblalock 8y agoI'd be interested in seeing what portion of total Surface revenue is from the Surface Book and the Surface Laptop, which are fairly traditional products compared to the tablets.
- dep_b 8y agoGreat article again. Sundell is quickly becoming one of my favorites besides mainstays like objc.io
- clay_the_ripper 8y agoI just don’t see how an iPad Pro could ever really work as a computer replacement for true professional workflows. I’m talking about multitasking between final cut, building a website, creating assets in photoshop, taking screenshots, downloading things from an email...these are daily tasks for me. An iPad would struggle to do one of these at a time let alone all of them at once. iOS is just too limited to ever make it a real “pro” machine. For limited things like a photography workflow or photoshop workflow, maybe, if that’s all you do. So I think it’s time to give up on the idea of an iPad as a true pro machine. It will never replace your laptop and Apple doesn’t want it to. It’s a shame though because the hardware is certainly capable enough. It would require Apple basically throwing out iOS for iPad and designing a whole new way of interacting just for iPad. iOS is great for iPhones but not great for professional applications. It would be cool, but I doubt Apple will do it.
- ancorevard 8y agoI'm with you, but we have to remember that most people including most "pros" meaning working professionals do not do coding. For 95% of working professionals, the iPad may actually be more than enough.
- clay_the_ripper 8y agoRight. My use case is probably not the average one. I suppose if I did a lot of just emails and word processing/web browsing it would work. But it kind of defeats the purpose of all that horsepower. Until Apple puts its own pro applications (like final cut) on the iPad, it’s not a real pro machine in my view. If it’s so “pro” then make your own apps work on it!
- flycaliguy 8y agoI’m an artist who owns one and I totally agree despite it now being an essential tool for me. Lots of airdropping files back and forth with my MacBook is the reality and it works great. You quickly realize just how crucial a mouse and it’s modifier keys are for efficient design work. It’s great for early stage thumbnailing. I’ve actually never been able to thumbnail as effectively as I can with the pro and it’s solely for the fact that I can use it as a sketchbook with integrated google images. Once a project gets rolling it’s mostly used so I can shuffle over to my comfy chair and do some detail work with the pencil. That said, I wouldnt put it past a young person who hasn’t been molded by a desktop to blow me away with it. It’s not like my desktop workflows don’t have hacky and annoying steps along the way to a final.
- sxp62000 8y agoWhen it comes to programming, I just can't see myself typing thousands of lines of code on a tiny iPad screen, no matter how clever the gestures and multitasking in iOS gets. Maybe one day the iPad Pro + stylus will do wonders for visual programming languages like VVVV (can't think of any others).
- saagarjha 8y ago> When it comes to programming, I just can't see myself typing thousands of lines of code on a tiny iPad screen iPad Pro has a 13 inch screen; that’s the same size as my MacBook Pro’s display. With a good keyboard, such as the one Apple sells, I don’t see why it should be difficult to write code in an iPad.
- nikki93 8y agoThis is an iPad programming system I was hacking on a bit ago: https://www.youtube.com/watch?v=hQUq2INrdiU https://www.youtube.com/watch?v=hQUq2INrdiU Also involved is me live-coding a fix for the system in itself (like you would in Smalltalk envs).
- ken 8y agoI find it difficult to write code on even a 15-inch MBP display. It feels very cramped to me. There's barely room for 2 adjacent windows, so I spend all my time scrolling and switching desktops and re-layering windows. 13" is barely bigger than the 12" display on my Apple IIgs (late 1980's), or my first laptop (mid-1990's). That was a perfect size for a VT100 emulator (it's the same size as the original 1978 VT100!), but that's not how I write software any more. The same size screen is actually relatively worse than 20 years ago, because these days all documentation is online, so it has to share my screen.
- arvinsim 8y agoSame here. It's painful to write code in the 13" screen that I always connect to an external display if one is available.
- saagarjha 8y ago> To avoid having to re-create the same key commands multiple times, and to only do so when actually needed, we’ll use a lazy property to keep track of them internally as well Honestly, I think this is a premature optimization. I don’t think it’s worth trying to prevent the allocation of a four element constant dictionary, especially one which requires awkward syntax (indirection through a computed value) to work because it must fulfill a protocol requirement.
- lilyball 8y agoUsing UIPanGestureRecognizer for gestures that should be recognized immediately on touch down is a common mistake I see a lot of people make. The problem is UIPanGestureRecognizer doesn't actually start recognizing until the touch has moved a short distance, and at this point, you can't recover the original touch location, only the location at which the gesture recognizer began recognizing. The solution is to use a UILongPressGestureRecognizer with minimumPressDuration set to 0. With this configuration, it will begin recognizing immediately on touch down, allowing you to take action even before the user has moved their finger (or pencil).
- yargg 8y agoHow do you track the translation during the gesture if you use UILongPressGestureRecognizer? Do you have an example you can link too?
- deleted 8y ago[deleted]
- eridius 8y agoAdmittedly you do lose the convenience methods from UIPanGestureRecognizer (sure would be nice if Apple would add them to UILongPressGestureRecognizer too), but you can recover translation just by grabbing the location of the recognizer in the associated view when the state moves to .began and then subtracting that from the current location on every subsequent .changed state callback. Calculating velocity is harder of course, but you could do it without too much difficulty by recording the previous location and timestamp and using that to calculate an instantaneous velocity (I'm not sure if this is what UIPanGestureRecognizer does or if it tries to smooth the velocity at all using multiple "frames"). I don't have any linkable examples offhand, but at a previous company one of our standard interview questions was to implement custom drag & drop of a view using a gesture recognizer, and our reference app used UILongPressGestureRecognizer because it let us do such nice things as visually "lift up" the view (scale it up slightly and add a drop shadow) the moment your finger touched it.
- 8y ago
- throwaway487548 8y agoWhat a language!
- deleted 8y ago[deleted]