0:00:00Welcome to Under the Radar, a show about independent iOS app development.
0:00:04I'm Marco Arment.
0:00:06And I'm David Smith. Under the Radar is never longer than 30 minutes, so let's get started.
0:00:10So for today, I want you to just sit down in a comfortable chair,
0:00:14lean back, relax, close your eyes, and just come along with me on a journey.
0:00:18This is a David Smith story hour, or half hour,
0:00:22and we're going to talk about an experience, a journey I've just recently concluded going on,
0:00:28building a feature out in WatchSmith.
0:00:31And I feel like a couple, several months ago, I did a similar kind of episode where
0:00:36I feel like sometimes it's fun to just talk through the process that I go through,
0:00:41or Marco has done a couple of these too, where it's this funny thing of like,
0:00:45"How did we actually build this feature and some of the weird things we have to deal with along the way?"
0:00:50And I just went through one of these things where I thought,
0:00:52"Oh, this would be a pretty straightforward feature," and turned out, "No, no, no."
0:00:55It was the opposite of that.
0:00:58So the feature that I've been working on is I wanted to add photo complications to WatchSmith.
0:01:06So if you imagine, so in Widgetsmith, the most popular widget by far is the photo widget.
0:01:11That is what people love to use, and I can understand why,
0:01:14and it seems like an obvious sort of inclusion for me to add to WatchSmith
0:01:18as part of this big update I'm working on for WatchSmith.
0:01:21And so I want to be able to allow the user to, on their phone, pick a picture,
0:01:26adjust what it looks like, getting it just right, and then essentially hit save
0:01:32and have that appear as a complication on their watch.
0:01:35It seems relatively straightforward. It's just a picture.
0:01:37It's going to be shown at a very small resolution,
0:01:40but it turned out the process of getting from that idea to actually having it work,
0:01:46which I finally had it to work yesterday after many, many days of banging my head against the wall
0:01:51and lots of pain and suffering.
0:01:53And so that's the journey I'm going to take you on now,
0:01:56and that's the end goal that we're trying to get to.
0:01:58We're trying to get to a place where I can pick a picture on a phone and have it show up on a watch.
0:02:03This is one of those things that programmers so often use the wonderful phrase,
0:02:08"How hard could it be?"
0:02:10"How hard could it be?"
0:02:12"We're about to find out."
0:02:14And when I'm describing the feature, I'm like, "Well, that doesn't sound like it would be that bad,
0:02:17especially since you've already done it for WidgetSmith."
0:02:20Yeah. So first thing you need to know about watch programming
0:02:26is that everything on the watch is just a little bit harder.
0:02:28It's just a little bit more sort of challenging.
0:02:31And so the first thing you have to deal with,
0:02:33and this is one of those things where it is completely trivial in WidgetSmith
0:02:37and it is very difficult on the watch,
0:02:39is how do you get that picture from the phone to the watch?
0:02:44And on the phone, I just add it to the application container,
0:02:49and it's in a shared space, and both the widget and the main app can read it.
0:02:54But for the watch, you're going to have to somehow get it over there.
0:02:58And so the obvious answer is to use watch connectivity.
0:03:02Though I will say...
0:03:05What? What could possibly go wrong with sending files over watch connectivity?
0:03:10Exactly. What could possibly go wrong?
0:03:12And these aren't big files. It's probably fair to say, too.
0:03:15The ultimate result for a graphic circular complication is 94 pixels by 94 pixels.
0:03:22And the extra large circular one, which is the biggest image that I can send,
0:03:27is 264 pixels by 264 pixels.
0:03:30These are things that an old, original Macintosh image could probably display.
0:03:37These are not big things, but you think, okay...
0:03:40I will say, I did have the thought of,
0:03:42I wonder if I should upload these to a server and then have the watch download them directly
0:03:46just so I could avoid watch connectivity.
0:03:48That's how much I have had problems with watch connectivity over the days.
0:03:52Though in the end, I decided, no, that's silly.
0:03:54Then there's all kinds of problems with doing it that way.
0:03:56Is it silly? I mean, that's literally... I just built my entire watch app from scratch
0:04:00to have its own direct-to-the-network sync engine,
0:04:03mostly to avoid the problems I've had for years with watch connectivity.
0:04:07So that way the watch has to talk to the phone as little as possible.
0:04:11Yes. And I did think about it, and I did kind of...
0:04:16The problem that I wanted to avoid is that then it requires an internet connection
0:04:21to set up your complications,
0:04:23which maybe is a fine assumption to make,
0:04:26but it seemed like it was a slightly awkward thing.
0:04:29If you were out... It's like, imagine you have this scenario where you have to be on good networking,
0:04:36and especially it gets weird because even if you're out and you have a cellular connection on your phone,
0:04:42the watch proxying that cellular connection through itself is often just as problematic as watch connectivity.
0:04:48So, anyway, I decided watch connectivity it is.
0:04:52So I'm going to use watch connectivity to get these teeny tiny files across, I thought.
0:04:56So the first thing you think, "Oh, these are files, so maybe I should use the transfer file API in watch connectivity."
0:05:02Nope. It doesn't work. For whatever reason, I find that the transfer file thing...
0:05:07When it works, it works flawlessly, but most of the time it doesn't work.
0:05:10And you hit transfer file, and it's just like transferring,
0:05:13and you have no idea when it's going to happen.
0:05:16So you think, "Oh, maybe I should use the message data protocol,
0:05:19which is a different version of watch connectivity.
0:05:22It's designed for more interactivity, but turns out because I'm initiating these transfers from the phone,
0:05:28you can't actually use that side of the protocol unless the watch app is active.
0:05:34Otherwise it just fails. So I can't use that.
0:05:37So I'm down to user info, which is the third kind of way to do watch connectivity.
0:05:42And that seems to work okay for what I'm doing.
0:05:46But initially I started running into all kinds of payload to large errors with user info.
0:05:55And so it's like, "Okay, so apparently I'm sending images over this API.
0:05:59It's not necessarily intended for this. It's probably... You're supposed to be sending data dictionaries back and forth.
0:06:04So there's a limit somewhere. What is the limit? Who knows?"
0:06:07So you start googling around, and I find a Stack Overflow comment that's like,
0:06:10"According to some private symbols, the WC payload size limit user info symbol
0:06:15says that it's 65,000 bytes."
0:06:18And so that's what they said. And it's like, "Okay, I need to somehow make sure that all of my images
0:06:22that I send over this need to only be 65,000 bytes, which should be fine in some ways."
0:06:28And so the first thing I do at this point is I make a test project,
0:06:32and I progressively make the payload larger and larger until I sort of cross over the threshold where I get this error back.
0:06:41And it turned out whoever this person was on this random Stack Overflow form, they were exactly right.
0:06:45It's about 65,000 bytes. So yay for Stack Overflow, and now I have a goal that I need to work against.
0:06:52And so now what I need to do is this weird problem where I take the image,
0:06:56and I progressively use JPEG compression to make it more and more compressed
0:07:02until it fits in the space that I have available to me.
0:07:06So I start off with it being good and high quality, and if for some reason...
0:07:09I've actually done this same logic on my servers for years for thumbnailing.
0:07:14I have the exact same problem, because if you send an image that's too large to iOS devices,
0:07:21they might crash while decoding it or trying to hold it in memory.
0:07:25And so I try to put as much data on the server side as possible, and my thumbnailer actually has different sizes,
0:07:31and it has different byte-sized thresholds for each size, and it will attempt to maintain 100% quality,
0:07:38like first with ping, and then if it can't, it will go to high quality JPEGs and then do the same thing,
0:07:42slowly lower the quality level until it is below that threshold.
0:07:46However, I have right away, because I have done that process,
0:07:52I know of a gotcha that might be getting you, which might be a future part of the story that I don't necessarily want to ruin,
0:07:58but were you removing things like color profiles from the images first,
0:08:03because those alone can balloon it past that threshold.
0:08:07And you can keep the image compressing further and further down to quality zero,
0:08:11and it will still be like 85k, and you're like, "Why is it this big? What could possibly be taking up all that space?"
0:08:17And it's basically crap in the EXIF data, like large blobs in the EXIF data.
0:08:21So I haven't run into that yet, though I am writing that down as something that inevitably will come up and bite me at some point,
0:08:28and I'll need to deal with.
0:08:30So I think, though, because of the way that I've, of something else that I'm doing,
0:08:35I think I will be fine, because ultimately the images that I'm, I don't take the raw image and try and compress that down,
0:08:41I have to resize it first, and I think because I'm resizing it, there's no profile,
0:08:46because the version that I'm making is just like a very simple basic UI image renderer image.
0:08:52I don't think it has any of that overhead to it, but I will investigate.
0:08:57As long as it can't carry forward any of the EXIF data from the original, then you should be okay.
0:09:01Yeah, because I think it's fine because I'm rendering, you know, I'm doing a UI image rendering context,
0:09:07and so it should, ultimately I'm just moving the pixels back and forth, so I think I should be fine,
0:09:12but I will, that is a good thing to investigate.
0:09:15But anyway, so I have this method now that I can get these images,
0:09:19because essentially, progressively compressed down until they are small enough that watch connectivity will move them,
0:09:26so now I have the ability to add to this test project a watch companion app, and I can send these over the watch connectivity,
0:09:34and then whenever it receives one, it just throws it into a complication.
0:09:37And it actually worked.
0:09:39So this was the point of this project where I was like, okay, this is viable.
0:09:43This is something that theoretically should be possible now, that I've gone through the proof of concept phase,
0:09:49because for a while I was like, I don't even know if this is possible, that there may be some weird limitation,
0:09:53and before I went too far down the road with this, I didn't want to invest all the time,
0:09:58and it turns out I can't even move the images between my phone and my watch.
0:10:01That just wasn't possible.
0:10:03But now I know it is possible. It's just tricky.
0:10:06So now comes the question of, I need to get the images,
0:10:11and I need to allow you to be able to orient and adjust the images so that they make sense in a tiny little complication.
0:10:17Because you're talking about, you know, you may have a big, you take a nice image with your iPhone,
0:10:21and you have this beautiful, what is it, 12 megapixel image,
0:10:24and you're compressing it down into something that's like 48 pixels, or 96 pixels by 96 pixels.
0:10:30So I don't want to just smush it down, because that would be pointless.
0:10:33You wouldn't be able to see anything. It wouldn't make sense.
0:10:36So I need you to be able to sort of zoom and pan inside of an image.
0:10:41And this is one of those things where at first, it's like, okay, how do I do this in a way that makes sense?
0:10:48And this is where using SwiftUI for this application definitely came back to bite me a little bit,
0:10:53because I feel like in UIKit, this would have been a much, much easier thing,
0:10:57because the gesture recognizers inside of UIKit are so good.
0:11:02So that's a little bit of foreshadowing, but I start going down the road of doing this using the SwiftUI gestures,
0:11:08and I get it vaguely to work, like in terms of, you know, you pick a picture,
0:11:14which as a side note is using the UIImagePickerController API just wrapped in a SwiftUI view,
0:11:23because that's the only way that I have found to be able to do this in a reasonable way.
0:11:28And I love using UIImagePicker, because then I don't have the photo kit,
0:11:33photo authorization issues, and having to ask people for permission to see all of their pictures,
0:11:38which I don't want to get into. So I just want to use an image picker, and it works.
0:11:42But I get the image, and it's giant, and so I need to zoom in and pan around,
0:11:46and I get it working in SwiftUI. But it's one of those funny things,
0:11:52and this is just an interesting note that I've been discovering in my work with SwiftUI and from UIKit,
0:11:59is that there's a lot of these things in UIKit that they're just, like,
0:12:03I imagine ultimately things like these do these little coefficients that are built into things like UIScrollView
0:12:09and the way the UIPinchGestureRecognizer works and things, where I just could never get,
0:12:14with a magnification gesture and the pan gesture inside of SwiftUI, things to behave like you would expect them to.
0:12:21And it was hard to explain, because it was working correctly, in the sense of,
0:12:26when I move my fingers out, it changes size, but it didn't change the right speed
0:12:32or handle the ramp up and the ramp down. All these things just felt off.
0:12:38And so, in the end, what I do is I just ended up having to get rid of all the native SwiftUI stuff,
0:12:43and I just ended up wrapping some UIGestureRecognizers inside of a SwiftUI view
0:12:49and end up using that as a way to use it inside of SwiftUI.
0:12:53And that worked, except for all kinds of weird, just sort of like,
0:12:58getting the state management of that working correctly just drove me insane.
0:13:02There was probably a good four-hour period where everything seemed like it was working,
0:13:06but nothing would update correctly.
0:13:08And it turned out it was one of these weird things that had happened to me many times in SwiftUI,
0:13:12where the wrong part of my view hierarchy's state data was getting updated.
0:13:19And so, some of the parts were getting these change events.
0:13:24So when I'm saying, "Move the image to the left, move the image to the right,"
0:13:27some parts of it were getting it and some parts weren't.
0:13:30And so it was just breaking in weird ways.
0:13:32And so a little pro tip that I came up with with this, which is how I ultimately saved my sanity,
0:13:37was I added an extension to color that you could just ask it for a random color.
0:13:43So I just say color.random, and it just gives me a random color every time.
0:13:46And I would wrap a bunch of my components at different levels of the view hierarchy
0:13:50with .border, color.random.
0:13:53So essentially, all the elements have these random colors, and if everything's changing correctly,
0:13:58as I swipe my finger across, everything should go crazy and there should be these rainbow colors everywhere.
0:14:04Every time it updates, it gets a new color.
0:14:07And that would let me identify which part of the view hierarchy wasn't getting updated,
0:14:10because its border would stay the same and wouldn't have the rainbow party.
0:14:15So pro tip, if you ever need to debug SwiftView object refresh stuff, that's a great way to do it.
0:14:25I wish I had thought of it earlier in the process rather than just banging my head against the wall for a long time.
0:14:32But in the end, I was able to get it to work.
0:14:36I was able to get the pan and zoom system to work reasonably well, and I ended up having to fall back to UIKit,
0:14:47which I feel kind of sad about. There's part of me that wishes I didn't have to go back to UIKit, but I did, and so it's fine.
0:14:52And in general, it worked reasonably well. There are a few areas that it was a bit funny,
0:14:58because the number of different coordinate systems that I'm having to deal with in this app right now is too many.
0:15:05It's a short reality, because I'm dealing with the UI views, coordinates and coordinatespace,
0:15:12and then I need to translate that into the images coordinatespace, which is slightly different than the SwiftUI imagespace,
0:15:21because then I need to ultimately, and this is the one that really, really hurt my head,
0:15:26and this is where it made me laugh a little bit, because ultimately I have this image, I have it in a SwiftUI view,
0:15:32and I can scale it up and down and I can move it around, so I can orient it onto a different part of the image.
0:15:36And then I need to ultimately render that into a smaller, essentially the cropped version of that image,
0:15:42is what I'm ultimately needing to render. But trying to get the coordinate system transform and the things like,
0:15:49I need to essentially take the image and I need to actually be trying to render it at an origin that is outside of the frame that you can see.
0:15:56So if you imagine you zoom in on a picture, the actual origin of that picture that I'm rendering is way off to the top left, conceptually.
0:16:04And that way you can see just the little part in the middle in the window that you actually can see.
0:16:09And trying to get that logic right, it made me laugh because it was essentially like machine learning programming,
0:16:14is what I felt like I was doing, where I had no idea the right combination of negatives and positives,
0:16:21and adding offsets and subtracting offsets, and all the things that I needed to do,
0:16:25and when I need to multiply by the difference in aspect ratio between the two things, and all this.
0:16:30I had no idea what I was doing at some point, and so I just kept trying. I just tried every possible version,
0:16:35and then just like, once I got whichever version seemed slightly better, I would sort of like dial down into that,
0:16:41and it's like this genetic algorithm I'm running where I just keep trying every possible solution of plus and minus,
0:16:46and add and subtract, and divide and multiply, until it worked.
0:16:49And eventually it worked, and it sort of is not a very viable way to do programming,
0:16:54but in this particular case it actually sort of worked.
0:16:57And that was just one of those funny, like, okay, once it worked, I'm like, great, it worked.
0:17:03I don't actually know all the math that I did to get there.
0:17:07I don't really understand why that's the particular math that I need to do, but I can do it.
0:17:10I can take the giant image, you've moved it around with your pan and zoom gesture, and I can render it now into an image.
0:17:17Hooray. It worked. But that's not the end of the story.
0:17:21Well, we'll hear the shocking conclusion next, but first we are brought to you this week by Pingdom.
0:17:28Do you have a website? Does your website have things like a shopping cart, or registration forms, or contact pages?
0:17:34If you answered yes to any of these questions, you need Pingdom.
0:17:37Nobody wants their critical website transactions to fail, because that means bad experiences for your users,
0:17:42and could mean lost business for you.
0:17:44Pingdom can monitor these transactions, in addition to monitoring your website uptime in general.
0:17:50So, transaction monitoring will alert you when things like cart checkout, or form submissions, or login pages fail,
0:17:56before they affect too many of your customers and therefore your business.
0:18:00Pingdom will let you know the moment any of these fail in whatever way is best for you.
0:18:04You can customize how you're alerted, who's alerted, depending on the outages, conditions, and severity.
0:18:09And Pingdom cares about your users having the smoothest site experience possible.
0:18:14If disaster strikes, you will be the first person to know, so you can go fix it.
0:18:19It is super easy to get started on Pingdom. I personally have used Pingdom for a long time,
0:18:23and I'm using it like literally right now, this morning.
0:18:26I keep checking Pingdom because I'm having a network connectivity issue with some of my servers,
0:18:30and I can look at Pingdom and I can see latencies of all the checks from all around the world that they're checking it from.
0:18:36So I can see like, "Hey, this server's okay when it's checked from North America,
0:18:39but right now when it's being checked from Europe, it's seeing, you know, unusual latency."
0:18:43And I can actually go be notified of stuff like that and go fix it.
0:18:46It is great. Go to Pingdom.com/RelayFM right now for a 30-day free trial with no credit card required.
0:18:55Pingdom.com/RelayFM. When you sign up, use code RADAR at checkout to get a huge 30% off your first invoice.
0:19:03Once again, Pingdom.com/RelayFM, code RADAR for 30% off your first invoice.
0:19:08Thank you to Pingdom from SolarWinds for their support of this show and RelayFM.
0:19:12Okay, so now that we left our hero, he had just finally gotten the basics of the system to work.
0:19:19And so what does he do? Does he celebrate? Does he say, "Good job, Dave," and move on?
0:19:23No. He decides, "Let's make this problem 10 times harder."
0:19:26So what I just had the thought of is like most people, I think, who are going to use this feature
0:19:31are going to take a picture probably of someone they care about and they want to show that person on their watch face.
0:19:37So what do I think they do? Oh, I'm going to use the vision framework to identify faces in those images
0:19:43and have the ability for you to zoom in automatically to the person.
0:19:48If I detect people in a picture, I want you to be able to automatically zoom into those people's faces
0:19:53and have that be the center point of the complication.
0:20:01Seems like that should be reasonable, right? Like there's a whole framework for this.
0:20:04Every year Apple talks about how amazing their machine learning and stuff is, and I've never had a reason to use it.
0:20:10And I was like, "I finally have a reason to use machine learning kind of stuff in my application, so let's try it."
0:20:16First thing I discovered, which broke my heart, was that the vision frameworks don't work in the simulator,
0:20:21which doesn't make any sense to me because I have an M1 Mac, so I don't understand why they don't work,
0:20:27but apparently they just don't. And so it's Apple Silicon. I don't know why these don't work, but they don't.
0:20:34So that is always just a bit discouraging because a lot of this stuff, when I'm doing this iteration,
0:20:39when I'm working kind of rapidly and trying to just work through stuff, and as we'll get into,
0:20:43there's a whole other round of my machine learning-based programming where I'm just flailing wildly trying to get something to work.
0:20:49It's so much nicer when it's in the simulator and not on the device, but that's not the case.
0:20:54So I get on the device, and the nice thing, the vision framework is actually, it's relatively,
0:20:58from what I'm trying to do with it, it's relatively straightforward. You give it an image,
0:21:01it has this really weird call structure where you create a request, and then the request has to be passed to a request processor,
0:21:10and there's all kinds of weird error states, but once I worked through that, I could get it so I could reliably say,
0:21:14"Here's a UI image. Give me the rectangles where there's a face, if you see one, or nothing, if there was no face,
0:21:22if it's a picture of a non-face, anyway." But the strange thing there is, of course,
0:21:28I have to add in one more different coordinate system. So the vision framework does something that I've never seen anywhere else,
0:21:35completely broke my brain for many hours, is it gives all of the rectangles in a normalized version,
0:21:43where all of the values go from zero to one, and it's proportional inside of the width and the height of the image.
0:21:52I don't know why, but that's what it does. And so everything you do has to be denormalized back into image space
0:22:01before you can deal with it. And in a weird way, the y-axis seemed like it was flipped in a weird way,
0:22:11and so even just trying to know if I was using it, which always drives me crazy when I'm working with something like this,
0:22:17I wanted to see if I'm using it correctly. And so I give it an image, and I get back a rectangle,
0:22:23and the rectangle is from 0.268, 0.563, and then it's 0.1 and 0.1. And it's like,
0:22:32"What do I do with this? How do I know if that number is correct, if I'm using the framework correctly,
0:22:36if the zigs are good?" And it took me forever to be able to reconvert that back into something that I could then pass to SwiftUI,
0:22:42to then overlay an image, and then move that image inside of its geometry reader so that it was in the right place.
0:22:48And eventually I got there. Eventually I didn't lose my mind, but there were a few touch-and-go moments there
0:22:55where trying to get to that point turned out to just be so tricky. And I get why, in some ways, they're doing it that way,
0:23:03but at a certain level, I'm like, "Why are you doing this? Why are you inventing this totally new..."
0:23:07I've never seen any other UI framework in all of iOS, and I've been doing this for a long time,
0:23:12where it's all normalized. It's a CG rect, but it isn't actually a CG rect, because it doesn't represent x and y coordinates.
0:23:20Essentially it represents percentages of the image. But anyway, I finally got down there, and it was one of those things.
0:23:28You know it's a good feature when the first time you do it, it just works perfectly, and it just does exactly what you want,
0:23:34where I load up a picture of me and my family, and immediately it just zooms right in on our faces,
0:23:42and I have a little preview window that shows how it would look on the watch, and it's just like, "Yep, that's perfect."
0:23:47It's really cool when it happens, where the idea is relatively straightforward, but I didn't need to do it.
0:23:54Once I've done it, it's like any other version of this is completely insufficient, because trying to get it exactly zoomed in
0:24:01and tanned around and look just right, if I can do it automatically, that's so much better, and it makes the feature so much better.
0:24:08Other than having to make it so that I zoom out slightly, because the funny thing about the vision framework is it's face detection,
0:24:15not head detection, and so it gives me the rectangle that is essentially eyebrow to just below your lips, mid-chin to eyebrows,
0:24:25and so the first version zoomed to there, and so everyone looks a little bit crazy, but I could zoom out a little bit,
0:24:32and I just had a buffer to it, and finally it works, and then I had to convert that into zoom and pan calls,
0:24:39as though it had happened to the pan and zoom thing, so that the UI pinch recognizer, which is deeply wrapped way down inside of a SwiftUI view,
0:24:47can have the correct starting point when it starts to move again, but it all worked, and that was the end of this fun,
0:24:54and it was interesting because, and at this point I'm still working entirely inside of a test project,
0:25:01because I will say I highly recommend using test projects for this kind of thing, where I didn't worry about all the overhead that you have to do
0:25:10if you actually incorporate this into your main app, because the number of times I just had to keep build and run, build and run,
0:25:17because it was only building essentially one file, the build process was super fast, the run process was super fast,
0:25:24it was easy to change the entry point into the application, so that it was always exactly what I was trying to test at a particular time,
0:25:30and now I'm just going through the process of actually backporting essentially this test project into the main WatchSmith app,
0:25:36and that so far has been going reasonably well, I've worked out most of the problems,
0:25:42and now comes the only things that are going to be slightly annoying, or is always the thing when you're prototyping something,
0:25:49you make a lot of assumptions, you make a lot of guesses, things that you don't necessarily have to worry about,
0:25:54where in this version I need to make sure that I'm not creating files, sending them over to the watch,
0:26:00and then never deleting them if they get replaced, for example, so I have to do that kind of bookkeeping and cache management
0:26:06to make sure that I'm not just slowly gobbling up all the user space over time, and things like that which I didn't have to worry about in the test project,
0:26:13but overall, that's where we are, a few more gray hairs as a result of this feature, but I finally got there.
0:26:19Wow. Yeah, watch connectivity and trying to build apps on the watch is such that I'm kind of surprised that you have any non-gray hairs left,
0:26:30given your career choices of focusing so much on the watch. I feel like this is a great example of, A, something that seems like it should be fairly straightforward,
0:26:42and then realizing doing it at all, let alone doing it well, has some surprising pitfalls that you might have thought back in the beginning when you think,
0:26:52"How hard could it be?" But also, I think this is a good example of tackling somewhat hard to do correctly things like this is a pretty good business model to attempt,
0:27:06because here's something that, it seems easy, and it seems like a lot of people want this, so there's demand for this,
0:27:14but doing it right is a little bit beyond what most iOS programmers are willing to tackle or able to tackle.
0:27:22And if you make a career out of doing, you know, mostly easy enough things so you can handle it as an indie,
0:27:31but occasionally tackling something that's kind of tricky like this and doing a really good job with it,
0:27:36you can build a business on that, because there will be way less competition that is willing and able to go through all this hassle and get this right,
0:27:45compared to, you know, you being willing, just wanting this to exist so badly that you're willing to go through all these challenges to get there.
0:27:52And so, that actually, as long as the market wants whatever you're doing, that's actually a pretty reasonable business strategy.
0:27:59Yeah, and I think it's also, I feel like it's one of these opportunities to grow as a developer. Like, I really,
0:28:06as much as I joke about how sort of like crazy making it was, I'm really glad that I know how the vision framework works now.
0:28:14Like, I've never used that before, and it's really cool. And I do think it is kind of one of these funny things where I do think it puts a moat around my app,
0:28:20because there are so many steps that you would have to go through in order to recreate this feature that it just makes it that much harder.
0:28:27Not that I think anyone else is doing this, because I think in general, with complications,
0:28:34I'm pushing the complications way beyond what I think it was intended for with WatchSmith.
0:28:41But from a business perspective, I do think it is a good thing. And hopefully it's a good thing.
0:28:45Hopefully people like this feature. I really have enjoyed having pictures of my kids on my watch, and hopefully the other people like it too.
0:28:51But the process of putting it there, it turns out to be really uncomfortable of a journey to make it happen.
0:28:58Which is, hopefully, yeah, it's a business move, and it makes me think of a lot of the things where you think of some of the choices you make in Overcast,
0:29:07with your voice processing and the way that you've kind of held the line on, there's been several points that there was the easy way,
0:29:14and then there was the right way of building the feature. And you could have decided long ago,
0:29:18"Oh, I'm not going to do any voice processing of things on the watch." And it's like, you decide to know,
0:29:22everywhere you listen in Overcast, you want it to sound good. And as a result, that makes your life harder, but it makes the app better.
0:29:30And I feel like that balance between the hard thing and the right thing, in this case, is definitely something that is not an easy choice always,
0:29:39but it's usually a rewarding choice, and so I can certainly recommend it nevertheless.
0:29:43Thanks for listening everybody, and we'll talk to you in two weeks.
0:29:46Bye.
0:29:47[ Silence ]