Podcast Search

Under the Radar

183: Compatibility Contrast

Select a time to play from there. The line being spoken is highlighted as the audio plays.

0:00:00Welcome to Under the Radar, a show about independent iOS app development.

0:00:04I'm Marco Arment.

0:00:05And I'm David Smith.

0:00:06Under the Radar is never longer than 30 minutes, so let's get started.

0:00:09I'm having one of those amazingly productive few day spans.

0:00:14These don't come around often.

0:00:16Wait, we should stop recording.

0:00:18You just go back to working and we'll just pick this up later,

0:00:21whenever you get nonproductive again.

0:00:25Come back to the podcast when I'm lazy as heck.

0:00:28There you go.

0:00:30So I've been doing a quick bit of follow up.

0:00:32The last episode I discussed, or the one before that, whatever it was,

0:00:36discussed basically my decision to re-add iOS 12 support back to Overcast

0:00:42because I was basically getting kind of killed in the app store for not having it

0:00:46and adoption of 13 seemed slower than I expected.

0:00:50And I kind of decided, you know what, let me see what it would take

0:00:54to re-adopt iOS 12 and re-support it.

0:00:57And so I now have the results of that experiment.

0:01:00It's not in the store yet, but re-adopting iOS 12 took me about a half a day.

0:01:07That's not very long.

0:01:09No, and it was -- I kind of feel bad.

0:01:14Like, had I known it would be that easy,

0:01:17I probably wouldn't have dropped support for it in the first place.

0:01:20Sure.

0:01:21But it's just like the very first thing I do every summer, or at least that I have done,

0:01:24the very first thing I do is set the SDK to require the newest OS

0:01:28and see all the deprecations and everything, all the stuff I have to change,

0:01:32and then just start doing it, just start changing all the deprecated enums

0:01:36to their new values and start adopting all the new APIs

0:01:39and delete all the code that supported the old APIs and stuff like that.

0:01:42And when I was 13, there was a good deal of that this summer,

0:01:46but most of it that I actually adopted to date was trivial stuff.

0:01:51It was things like enum values that I can just change back.

0:01:55Most of them were like the type of activity spinners and stuff like that.

0:01:59And I had adopted the new background APIs,

0:02:02and I had adopted the theming API, or the system dark mode API,

0:02:07to kind of override my theme choice.

0:02:10But it turned out it took very little effort for me to just put all those enum values back

0:02:18because it didn't matter, the old ones are still supported, they're just deprecated,

0:02:21and when you build with 13 not as the requirement, you don't even get warned about it.

0:02:25So I just put all those enum values back.

0:02:29That took, what, 15 minutes maybe at most, just to make sure I did everything right.

0:02:33And then I re-added support for the old background API,

0:02:37which, by the way, works better than the new background API.

0:02:41The old background refresh, it turns out,

0:02:46so the old background refresh most of the time would work.

0:02:49The new iOS 13 background task system appears to not work at all for some people or sometimes,

0:02:57and I have a frequent bug in the current version where people say search doesn't work.

0:03:02And that's because I was doing search indexing only with background tasks

0:03:05because it would kill my app if I did that CPU-intensive job in the background.

0:03:09So in my dev version that I'm going to release shortly,

0:03:13it's just doing it whenever you enter a search box.

0:03:17Whenever you put the cursor in a search box, it quickly indexes things right then.

0:03:21If anything needs to be indexed, it hasn't been done by the background tasks

0:03:24that don't seem to execute sometimes anyway.

0:03:26So I'm kind of working around the need for anything that 13 actually did.

0:03:31And all those new APIs that I thought I would be using that are 13 and up only,

0:03:38so things like obviously SwiftUI is the big one,

0:03:41there's also a whole bunch of other stuff throughout the frameworks,

0:03:43especially there's Combine and a new Diffable data source

0:03:48and a new collection view layout system that for making standard table viewing,

0:03:54especially collection view stuff, there's a bunch of big advantages,

0:03:57even if you don't want to use SwiftUI.

0:03:59There's a bunch of big advantages to 13.

0:04:00So all this new stuff in the APIs that, yeah, it would be nice to be able to use that,

0:04:05but the fact is I haven't used that yet.

0:04:07And if I delay myself by another year, well, I've gotten this far.

0:04:14I've gotten into late January, and I've still had so much more that I want to do in the app

0:04:21or bugs I have to fix or features I want to add that don't require

0:04:25or even give me time for new API adoption that I figure if I made it this long,

0:04:31I can probably make it at least until June or July,

0:04:34and when I see what iOS 14 adds and then decide from there what my ongoing OS requirements might be.

0:04:40But until then, I have enough to keep me busy without diving into the 13 APIs.

0:04:45So therefore, re-implementing iOS 12, I even thought,

0:04:50now that I've kind of removed the manual toggling of theming,

0:04:55switching between dark and light mode, I now rely on the system for that.

0:04:59I thought, well, that's going to be hard to change in iOS 12.

0:05:02And it turns out I just added one table row above the theme picker that says,

0:05:08"Are you currently in light mode or dark mode?"

0:05:10And it shows only in iOS 12.

0:05:12And so it was really surprisingly easy.

0:05:17The only big work that I had to do was in my current build,

0:05:24I basically rewrote the audio engine and was using an Airplay 2 compatible engine,

0:05:28and that relies on bugs that were fixed in 13.1.

0:05:31That's a great phrase. Just to interrupt you for a moment, that's a great phrase.

0:05:35Relies on bugs.

0:05:37Right. It relies on them having been fixed.

0:05:42And they were fixed in 13.1.

0:05:44And so I was going to require 13.1 for this build,

0:05:46and then when I re-added 12, I thought, well, this entire audio engine has to be not used under iOS 12.

0:05:51But there were other reasons why I wanted to make a second audio engine

0:05:56that was based on just AV audio engine,

0:05:58that the Airplay 2 engine was not working as well as I wanted to when it was not running on Airplay,

0:06:02when it was just running on your phone, speaker, whatever.

0:06:05So I made a whole second audio engine that happens to be compatible with 12.

0:06:09But I was going to do that anyway before I released this.

0:06:12So the actual additional work required to support iOS 12 in this release was about a half a day of work,

0:06:19just mostly enum values and adding one row to a table to change the theme manually.

0:06:25And that's about it.

0:06:28Which I think does make me kind of think,

0:06:31because I'm pretty sure we'd recorded an episode in the summer where we were talking about the benefits

0:06:35and drawbacks of being aggressive with requiring iOS 13 and whether it was a good idea this year.

0:06:42And I think we both ended up that it was like this was a good year to do it, and we should probably be like...

0:06:47We sure did.

0:06:49So maybe you shouldn't be listening to advice from the Under the Radar podcast.

0:06:52Maybe we should add some kind of disclaimer that turns out that we are potentially sometimes horrifically wrong,

0:06:58and that's like half a day of work was all you needed to do to continue supporting 12

0:07:04and all the requisite benefits that come with that.

0:07:08I think the main differences here, which you talked about two episodes ago,

0:07:11whenever that was when I mentioned re-adding this,

0:07:13the main differences that I didn't foresee at least is that I really thought I'd be jumping into the new APIs

0:07:20way more than I have.

0:07:22And I also really thought that iOS 13 adoption would be way faster than it has been.

0:07:28So the combination of both of those factors, I think not going the way that I predicted,

0:07:34is why this had to require a change of mind.

0:07:38I had to change my mind on this.

0:07:40I had to look back and say, "Well, normally I do this, but turns out this time that was the wrong move,

0:07:44and I'm fixing it now, and I don't know how long I'll keep 12 compatibility,

0:07:49but it's still important to me today to do it, so I'm going to do it."

0:07:53And I think the thing that's crazy about that, I've been just keeping an eye on my stats,

0:07:57and my adoption has essentially leveled off now at about 80% adoption.

0:08:03And it has not moved at all in the last month or two,

0:08:08which is making me think that that's probably where it's going to be for a pretty long time,

0:08:13essentially until the incompatible devices age out and get replaced,

0:08:19so the 5S, the 6, and the 6 Plus.

0:08:22But that takes a while on iPhones.

0:08:24Yeah, that's going to take a long time.

0:08:26Or it's like somehow there's a new influx of devices that are running the newer OS.

0:08:33Either the old ones are going to have to go away,

0:08:35or they're going to have to get eclipsed by the new ones.

0:08:38But it's been very stable there,

0:08:41which makes me think even next year we may be in an awkward position

0:08:46where 12 may just be the one that lingers around for a while,

0:08:51and that's just where we're going to be living for a while, that 12 is required.

0:08:57And then if we want to adopt any of the new stuff,

0:08:59we're going to just have to do it in the--

0:09:03having the app behave differently between two different systems,

0:09:07which is complicated potentially and not necessarily great in a lot of ways,

0:09:10or there might be features that are only available on the new OSes.

0:09:14There's lots of ways we think problems,

0:09:16and I'm sure our future selves are going to have to deal with.

0:09:18But it definitely seems like 12 is going to be part of the conversation for a long time

0:09:23in a way that 11 just disappeared when 12 came out.

0:09:29Oh, no. Is iOS 12 our IE6?

0:09:32It might be.

0:09:33I think it might be.

0:09:36Yeah, because 20% of people still not running it is a lot.

0:09:39That's a lot of people, and that's a lot of the market.

0:09:43And as I keep--

0:09:45I'm literally hearing people every day saying,

0:09:47"I searched for over-caching the app store, and it's not there.

0:09:50What happened?"

0:09:51And the answer is always that they're running iOS 12,

0:09:54and it literally just doesn't even--

0:09:56your app doesn't even show up if it requires a higher OS,

0:09:59and that's terrible.

0:10:01So, yeah, so we got to work on that.

0:10:03But anyway, so I've been doing a whole lot of that--

0:10:07well, very little bit of that and a whole lot of other work on this new build.

0:10:12In terms of-- before we move on to where the other work is, though,

0:10:14I'm curious, when you're going through and doing that kind of re-adding it,

0:10:18how do you make sure that you're not re-breaking it in the process?

0:10:23Are you going through the commit that you did to drop support

0:10:28and kind of doing the--

0:10:30having it up in one window and Xcode in the other and kind of just doing the opposites?

0:10:34Because I would be worried that I would forget something,

0:10:37and there's some lingering bug or problem that--

0:10:42I'm reintroducing that I will only hit if I happen to go through a very particular code path,

0:10:48and then it all falls apart.

0:10:50No, I mean, really the advantage here was that I really adopted iOS 13 APIs very little.

0:10:57And so I didn't--

0:10:59the thing that actually dropped support for it, like the commit back then,

0:11:03was part of a larger series of commits,

0:11:05and there's been a lot of changes since then,

0:11:07so I didn't think it would be wise to try to go back to that and try to back it out somehow.

0:11:10So instead, I just set the deployment target back and ran it on iOS 12 device.

0:11:16And if you set the deployment target back and hit Build,

0:11:20you're going to get a ton of errors from all the new enum values and stuff.

0:11:24And then I basically went and for the very few APIs that I knew I adopted that are 13 only,

0:11:31mainly the background task API.

0:11:33I just did if available checks around that and made a separate code path

0:11:38for the old background refresh API to work again.

0:11:40And then I just ran it on an iOS 12 device, and I played around with it for a while.

0:11:44I tested a bunch of different parts of the app,

0:11:46because I still have an iOS 12--

0:11:48I actually ran it on an iPhone 5S, which you can't run 13.

0:11:51So ran it on that, and I couldn't find any problems.

0:11:55And then I released it to beta, and it's been in beta with 12 compatibility.

0:11:59And I do have a lot of test flight people on iOS 12.

0:12:02So it's been in beta testing now for a couple of weeks,

0:12:07and so far there's been no problems introduced--

0:12:10or no problems identified with iOS 12.

0:12:14Because I had just barely adopted those new APIs.

0:12:19And so it really didn't take very long at all to re-add the compatibility,

0:12:24which is a little shameful, like a little unfortunate.

0:12:28But definitely going all these months between iOS 13's release--

0:12:33or I guess the week after, whenever I did my update--

0:12:35between then and now, basically losing 20% of potential new customers or more,

0:12:41that's going to cost me long term, of course.

0:12:45That's the penalty for my error here.

0:12:48And certainly the longer we go without fixing it, the less it needs to be fixed.

0:12:53But I do think that, as you mentioned, I think we're going to hit a floor

0:12:58for how low iOS 12 is going to go reasonably for a while.

0:13:01It'll continue to trickle down slowly, but it's not going to be a rapid change.

0:13:05So I do still think, even though I've lost whatever it's been four or five months

0:13:10of those potential sales, it is still worth releasing this now

0:13:14and regaining the ability to have those sales going forward.

0:13:18- That makes sense.

0:13:19- Yeah, and in reality, it's just like, whatever the mistake was,

0:13:23once you've identified it, you just fix it.

0:13:25You can't worry about what you potentially could have lost or whatever.

0:13:29There's no productivity in that.

0:13:31You identified a mistake and you fixed it, and that's really all we can do.

0:13:36- Yeah, exactly.

0:13:38Because there's not a lot of value in regretting your old mistakes.

0:13:43Just do better going forward.

0:13:45Anyway, we are brought to you this week by Linode.

0:13:48Whether you are working on a personal project

0:13:50or managing your enterprise's entire infrastructure,

0:13:52Linode has the pricing, support, and scale

0:13:55that you need to take your project to the next level.

0:13:57They have now 11 data centers worldwide.

0:13:59They're always adding more.

0:14:00This includes their newest data center in Sydney, Australia.

0:14:03And they have enterprise-grade hardware,

0:14:05a new S3-compatible storage option, and their next generation network.

0:14:10So they deliver the performance you expect and at a surprisingly good price.

0:14:14You can get started today.

0:14:16Plans start at just $5 a month,

0:14:18and you can get started today with a $20 credit using our coupon code.

0:14:22And you can get all sorts of great stuff with this.

0:14:24They have, of course, those $5 a month plans.

0:14:26They give you one gig of RAM currently,

0:14:28and over time, as technology gets better, they always upgrade their plans.

0:14:32So right now, that's a gig of RAM.

0:14:34In the future, that may buy you even more, and they give you free upgrade paths.

0:14:37They also have all sorts of plans above and beyond that,

0:14:39depending on what your needs are,

0:14:41including specialties like dedicated CPU plans with cores reserved just for you,

0:14:45GPU compute plans suitable for AI, ML, and video processing,

0:14:49one-click installs of popular apps including WordPress, the LAMP stack,

0:14:53and even Minecraft servers, and so much more.

0:14:56So go to linode.com/radar,

0:14:59and use promo code RADAR2020 when creating a new Linode account.

0:15:04That'll get you $20 credit towards your next project.

0:15:06And they're hiring right now.

0:15:08So if that interests you, go to linode.com/careers.

0:15:11So once again, linode.com/radar to sign up.

0:15:14Use that promo code RADAR2020 for a $20 credit.

0:15:18Our thanks to Linode for their support of this show and all of Relay FM.

0:15:22So all this time that I've been avoiding the new APIs

0:15:27and doing all sorts of other work,

0:15:29I've been taking advantage of my current rush of productivity

0:15:33to cram in a whole bunch of small fixes.

0:15:37I fixed a weird bug this morning where upload files would fail if they had a comma in them,

0:15:42a bunch of weird little bugs and fixes that I've been doing,

0:15:45trying to cram into this as much as possible

0:15:47because I've had this productivity that I saved by not spending it all,

0:15:50making iOS 12 compatible,

0:15:53cramming in a few new features that are high demand, low effort features,

0:15:57like intro and outro skipping.

0:15:59So I've crammed all this stuff in.

0:16:02Meanwhile, you've been adopting a whole bunch of new APIs.

0:16:05You've kind of been doing the total opposite of this.

0:16:08- The opposite, yes.

0:16:09So I'm curious, in a study of contrast here,

0:16:13how have you, while I've been living in the old days,

0:16:18what have you been doing?

0:16:21- So a bit of context is probably helpful.

0:16:23So I've been really enjoying just working on the Apple Watch,

0:16:28and that has been my primary focus.

0:16:31I got my main, sort of like my bread and butter apps updated and stable,

0:16:35and in general, they all seem to be in a pretty good place right now, feature-wise.

0:16:40And then I decided I wanted my next project to be something a little bit ambitious,

0:16:46a little bit kind of like, see how far I could push the Apple Watch.

0:16:50And so that's what I've been doing, essentially.

0:16:53And it's a bit early to get into the exact details of what that's going to look like,

0:16:56but I mean, functionally, I'm trying to see how far you can push the complication system,

0:17:01the Watch apps, all kinds of fitness and workout modes.

0:17:06I'm trying to see just how crazy I can get there,

0:17:09and especially taking advantage of as much of the new stuff that we can do on the Watch with SwiftUI.

0:17:15So graphically and visually, there's lots of things that we can now do,

0:17:19and it's been an interesting process.

0:17:24Parts of it are just amazing,

0:17:26and it's been really fun to be able to make things like,

0:17:30I played around a little bit with making games on the Apple Watch using SwiftUI,

0:17:34and it surprisingly just kind of works great,

0:17:37and the animations are nice and smooth.

0:17:40And when SwiftUI works, it is just an absolute delight,

0:17:45and the code kind of feels like magic,

0:17:47like the way you combine and the way the data flow works.

0:17:51I both love it and I absolutely hate it,

0:17:55which is probably in many ways reflective of the way that I come from with view layout on UIKit,

0:18:02where I do all my layout with setting explicit frames.

0:18:07I very much like that kind of layout system,

0:18:10and I never liked auto layout.

0:18:12I never liked the magic where you set it up and it just kind of works.

0:18:17And SwiftUI's data flow system feels very similar to that in some ways,

0:18:21where you create these state objects,

0:18:25and any time they change, the changes just flow to where they need to go,

0:18:29and everything will stay in sync.

0:18:31And when it works, it's amazing.

0:18:33But if it doesn't work, or if there's performance issues or problems with it,

0:18:38it can be very frustrating.

0:18:41But I think the biggest thing that has been interesting working with this

0:18:45the last three or four weeks on this

0:18:49is the most difficult part of working on new APIs

0:18:53that are not particularly largely adopted.

0:18:57I don't get the impression that there's huge amounts of...

0:19:00There's lots of SwiftUI academic use, it seems.

0:19:06There's lots of really good resources and documentation things,

0:19:11lots of toy projects and things,

0:19:13but actually in use with lots of complications.

0:19:16You start running into all kinds of weird edge cases.

0:19:19The thing that is most challenging is when you find yourself in this place

0:19:24where it's like, "Do I not understand how this should work,

0:19:27and my code is broken?"

0:19:29Or is this new API, this new capability, just not working?

0:19:35And the difference between those two things is often...

0:19:41There's no way to specifically determine that.

0:19:44"Am I doing it wrong, or is it just not working?"

0:19:47I had a kind of hilarious one recently, I think I may have mentioned this to you,

0:19:50where I was doing a thing where in SwiftUI

0:19:54you can have your navigation hierarchy be based on a state.

0:20:01So you can say which of the detail views should be visible at any given time,

0:20:07and the way you do this is each row gets an identifier,

0:20:10and you say which of the identifiers is active.

0:20:12And I was using that, and it was working great,

0:20:15and then I added a few more rows to my table,

0:20:17and it stopped working for half of the rows,

0:20:20and it would work for some but not all of them.

0:20:22It turned out it would only work for a row that was visible on screen.

0:20:27Which, A, took forever for me to work out, because it worked fine,

0:20:32it worked fine, and then it just didn't.

0:20:34And then it's like, you're kind of playing this matching game of,

0:20:36"Why? If I try and set the value to this row, then it works,

0:20:40and if I switch to the other one, it just doesn't work."

0:20:42And so right now in my code I have this horrific workaround

0:20:45where I have a one-pixel-high row at the top of my thing

0:20:51that includes all the other rows in it,

0:20:53and I actually push to those rows and have them change the detail view

0:20:58rather than the rows that appear on the bottom of the screen.

0:21:00So that sort of works, but stuff like that is just so complicated to know,

0:21:06"Am I doing something wrong? Am I misusing this API?

0:21:09Or is it just a bug and it just doesn't work?"

0:21:12There's plenty of things still in WatchOS 6 that are just kind of buggy.

0:21:17You never know if it's just, "Is it me or is it you?"

0:21:22I don't know. But it's definitely been fun, though, I will say.

0:21:26And I think I'm enjoying working on something that has a bit of ambition behind it,

0:21:31that I feel like a lot of my projects previously have been interesting,

0:21:38and they've been challenging in their own ways.

0:21:42But what I've been enjoying about this project in particular

0:21:44is that I'm taking so many parts of the last ten years of work

0:21:49I've been doing on Apple platforms and kind of combining it all together.

0:21:52And so it's this really interesting kind of Voltron experience

0:21:56that is pulling all these parts together,

0:21:58all these different experiences I have,

0:22:00and then smooshing them all together in kind of an ambitious way.

0:22:03So that part's been fun.

0:22:04SwiftUI and its error messages continue to be just horrifically comical,

0:22:09though apparently I do believe, last I heard, the latest--

0:22:13I'm not on the Swift developer mailing list sort of things,

0:22:16but I remember hearing someone saying that the first version

0:22:20of the new Swift error message system is now out in beta.

0:22:25And so I look forward to hopefully that making my life much better,

0:22:28where the error messages maybe will actually point to the line of code

0:22:32that is actually the problem rather than just pointing to some random line

0:22:36and giving me strange messages.

0:22:38My favorite one recently was I was passing--

0:22:43at some point I'm passing a zero into a frame width or something,

0:22:49and then I make a change ten lines down,

0:22:52and the change had a bug in it. Fair enough. That was my fault.

0:22:57But the error message I get was ten lines up.

0:22:59It said the zero could not be converted to an int.

0:23:02And I didn't know what that means.

0:23:06I still don't really know what that means

0:23:08or what to make of that particular error message,

0:23:11but that's my life now.

0:23:14Yeah, this is--

0:23:16this couldn't be more different than the kind of thing I'm doing.

0:23:20But I see there are times--

0:23:24there are--my development kind of goes in various cycles or seasons,

0:23:29as we've talked about before.

0:23:31And there are times when I'm in an exploration or expansion

0:23:35or new construction phase,

0:23:37where using a whole bunch of new stuff like this

0:23:40is actually what I want to do and what I enjoy doing

0:23:43and oftentimes is the right move.

0:23:45And right now I'm not in one of those phases.

0:23:47Right now I'm in a refinement and small fixes kind of phase

0:23:52as I prepare to launch this big update.

0:23:55But I totally get the appeal of that.

0:23:58And there will be a time when I will join that,

0:24:02that exclusive club of Swift UI users.

0:24:05I don't think that time is soon for me.

0:24:08But next time I get into a new construction phase,

0:24:13that's probably what I'm going to want to do.

0:24:15Yeah.

0:24:17And it's--I think the thing that's tricky, though,

0:24:19is there's part of me that sometimes is like,

0:24:21is this--I guess maybe the thing that I'm trying to be

0:24:24very thoughtful of is, am I using Swift UI

0:24:26or the related new technologies

0:24:28because they're the best tool for the problem

0:24:30or because they're the new tool?

0:24:32Because I feel like that's the biggest trap

0:24:34that I have to keep honest with myself about,

0:24:37is sometimes I've--like, some of my things

0:24:40I've just rolled back to using WatchKit in

0:24:43because WatchKit was better for whatever reason.

0:24:47And then a lot of times it's just because it's simpler

0:24:49or it's more performant.

0:24:51Like, WatchKit is very straightforward,

0:24:53or at least I know where all the rough edges are.

0:24:56Like, every single one of them I've hit, I'm sure.

0:24:58And so I know how to do that.

0:25:00And so sometimes I have to be like, look, like,

0:25:03Swift UI is cool and could make this, like, slightly shinier.

0:25:07But I need to be thoughtful about the fact that, like,

0:25:10it may not actually be the right tool for the job.

0:25:13And I think that's--I think the biggest advice

0:25:16I would give to anyone kind of--just to anyone

0:25:18when we're adopting these new things is,

0:25:20it's making sure that you're adopting it because

0:25:22it's better and appropriate for the job that needs to be done

0:25:26and is actually going to tangibly improve the application

0:25:29as a result versus just because it--

0:25:32adopting it because it's cool.

0:25:33Because more likely--because, like, inevitably

0:25:35it's going to come with drawbacks and problems

0:25:37and bugs and issues.

0:25:39And so those--all those negatives have to be

0:25:41sort of outweighed by the positives.

0:25:43Like, the new stuff that in UITableView,

0:25:46like, the DiffableDataSource stuff,

0:25:47it's really cool and can do some, you know,

0:25:49some cool, like--have some--gives you some--

0:25:53it gives you some great stuff for free,

0:25:55but it also, like, comes with some costs and some complexities,

0:25:58and you have to restructure, you know,

0:26:00how you're getting your data source

0:26:01and may have some complicated questions with memory

0:26:04and, you know, how many of your objects

0:26:07you actually have to have in memory at any one time.

0:26:09And so, like, I've looked into that,

0:26:11and I've adopted it, I think, in one place in my app,

0:26:14but several other spots, I'm just like,

0:26:16"I'm just going to do this the old-fashioned way,"

0:26:18and not worry so much about, you know,

0:26:21the fact that I'm missing out on the new hotness

0:26:23and instead just like, "No, this is, like--

0:26:26this just needs the boring solution

0:26:27rather than the new solution."

0:26:29- Yeah, I think kind of a theme to my arc

0:26:32through iOS 12 and into iOS 13,

0:26:34now back to iOS 12 compatibility,

0:26:36is kind of that I overestimated the gains I would get

0:26:41by doing that, and I underestimated the costs

0:26:44of just doing new stuff or only supporting new stuff.

0:26:48And in every OS release every year

0:26:51and for different markets, those are different.

0:26:54Like, I was applying my old wisdom

0:26:57that had always worked for me to date,

0:27:00which was just support the new thing,

0:27:02adopt everything immediately, that's better for most indies.

0:27:04But that wasn't better for me this time.

0:27:06And so it's important to, you know,

0:27:09keep an open mind about that, that, you know,

0:27:11what you've done in the past in either direction,

0:27:12either supporting old stuff forever

0:27:14or jumping on new stuff immediately

0:27:16or anything in between, whatever you've done in the past

0:27:19might not hold this time around or next time around

0:27:22because conditions are different.

0:27:24You know, OS releases are different,

0:27:25hardware support is different, like, you know,

0:27:27it changes every time.

0:27:29And the value of supporting only the new stuff also changes

0:27:34because in different years that'll be--

0:27:37it'll be harder or easier, you know,

0:27:39to maintain backwards compatibility.

0:27:41The new APIs will be more or less compelling

0:27:44and they'll be more or less specialized.

0:27:46Like, you know, the iOS 13 API for dark mode

0:27:50is pretty specialized, so there's one feature in iOS 13

0:27:53and if you adopt that API, it doesn't really make it

0:27:55any harder to support the old way of doing things.

0:27:58If you adopt SwiftUI, then it makes it almost impossible

0:28:01to keep compatibility because you basically have

0:28:03to write your entire UI twice or somehow implement

0:28:05SwiftUI yourself for iOS 12, which is a terrible idea.

0:28:09You shouldn't do that.

0:28:10(laughs)

0:28:11And so, you know, every time you are faced with this choice,

0:28:15you should reevaluate based on the current conditions.

0:28:19Ask around, do some research, see if you can find

0:28:21good numbers on adoption, things like that.

0:28:23And really think, like, is it the right move

0:28:26to adopt the new shiny thing in this case

0:28:28at the expense of compatibility?

0:28:31And if you're building something brand new from scratch,

0:28:33it probably is.

0:28:35If you're pushing your app update forward, it might not be.

0:28:39- Yeah, and I think what's interesting too,

0:28:41what's awkward is that the only way to really know the cost

0:28:45is to actually try it to some degree.

0:28:47That is much as you kind of want to estimate it,

0:28:49but I think there is certainly a value in doing

0:28:53the kind of like quick explorations to get a sense of things.

0:28:57I think you can give yourself a lot more information

0:28:59and make better choices as a result.

0:29:01I think about how it ended up the try iOS 12 compatibility

0:29:04was half a day or so, and if like, towards the end

0:29:08of the summer, had just been like, huh, I wonder

0:29:10what it would take to add 12 support.

0:29:13And it'd be like, I'll give myself half a day to work on it

0:29:16and see how far I can get.

0:29:18And if you've just gotten to the end and you had it all

0:29:20in there, it's like, okay, maybe I'll just ship this then.

0:29:22- Yeah, exactly.

0:29:23- So it's good to, I think, be thoughtful and explore

0:29:26in that way, but understand that sometimes you are

0:29:28just gonna have to try it and then just be thoughtful

0:29:31about not getting stuck in a hole just because you've started

0:29:34doesn't mean you have to finish.

0:29:36Thanks for listening everybody, and we'll talk to you

0:29:38in two weeks.

0:29:39- Bye.

0:29:40[BLANK_AUDIO]