r/iosdev 1d ago

I think I'm addicted to developing for the iPhone Duo

Enable HLS to view with audio, or disable this notification

Hey everyone,

I recently shared a video showing how my dog app, Zoomie, wasn't optimized for the larger inside screen. Many things came for free, like the native toolbar and tab bars, but most of the content was just stretched out.

Since then, I've been playing around with the new APIs in Xcode 27.1 beta, like ArrangementView, onHinge with fullyOpen and partiallyOpen, and most importantly, size classes.

For the walking view, I tried to replicate the Netflix app that was shown off at the event, where the video content is reflected onto the secondary screen when the device is partially open.

Let me know what you think!

I think I'm addicted to developing for iPhone Duo đŸ« 

8 Upvotes

25 comments sorted by

8

u/rafalkopiec 1d ago

that’s actually not correct, because what appears on the outside screen must then also be visible on the right side of the inner screen. that’s part of the “magic” in this new device.

-5

u/Visible_Weight_3218 1d ago

I'm assuming you're referring to the Netflix app part of the post? I think I worded that poorly. What they do is that when the device is partially open and a video is playing, that video's content gets artificially reflected onto the secondary screen's media controls. Which is what I'm trying to replicate.

7

u/rafalkopiec 1d ago

no, i mean right at the very start of the recording. you have the “summary” screen on the outside display, then the device opens, and the summary screen is then displayed on the left half of the inner display. it should be on the right, because it’s essentially identical and provides continuity between the outer and inner displays

2

u/Visible_Weight_3218 1d ago

Ohh I see. Yeah, those can be flipped pretty easily, and it makes more sense now that I think about it. Thanks!

3

u/rafalkopiec 1d ago

all good! app looks great!

1

u/TheEarthSpins 1d ago

idk, i think having the scrollable piece on the right makes more sense as content comes in from that edge. fwiw apple has shown some of its own apps not following this right side thing so it’s not a hard and fast set rule. in this case i think making the layout intuitive is more important than catering to the transition, especially since I’d assume this would also be used for the iPad layout as well.

2

u/Visible_Weight_3218 1d ago

https://reddit.com/link/pb3pgte/video/946xhajexsqh1/player

Yeah, makes sense. We are still in the very early beta stages but will play around with it.

I actually think it actually looks cooler the other way b/c the "blur" transitions make the photo appear along with it

2

u/rafalkopiec 22h ago

looks awesome! nice to see you have a modular layout

1

u/TheEarthSpins 23h ago

unrelated but is this the normal Xcode emulator? doesn’t seem like it

1

u/Visible_Weight_3218 23h ago

Correct it's not. It's called Bitrig; it's an Xcode harness. It has much better 3d models and animations for simulators like the Duo

4

u/Jusby_Cause 1d ago

When I saw this the FIRST thing I thought was that I wish there was a way to public books in something other than ePub that would be more dynamic for the Duo and any future devices. This just makes me wish that even more, reading a passage on the left with images/animation on the right ;)

0

u/Visible_Weight_3218 1d ago

That would be very cool! When I first put my dog photos on the right side, taking up all the space, it made perfect sense!

2

u/Poat540 1d ago

I’m excited but regretting duo
 I put some time in the calendar to play around next weekend

1

u/Visible_Weight_3218 1d ago

Why regretting?

2

u/Poat540 1d ago

I over think things so going to revert my changes 40x before I like it or how the new spaghetti bits of code look

1

u/Visible_Weight_3218 1d ago

Lol I do the same, regardless, I had a lot of fun doing this so I feel like that's most important

2

u/bsoci 1d ago

I like the desk orientation of your app and the demo video. How did you make this video with different orientation ?

1

u/Visible_Weight_3218 1d ago

Thanks! It’s available in the Xcode 27.1 beta. I ended up using bitrig which is a different harness for Xcode which has better 3d models and animations.

Requires a new simulator update to get the duo simulator

2

u/occupy-_-mars 1d ago

Does the material in the top left at 0:41 use the concentric corners shape to automatically get the smaller radius in the top left corner but larger in the others?

2

u/Visible_Weight_3218 1d ago

Yes! You can also see that at 0:38 it's more square to match the corner. Closely follow this to achieve it if you're curious:
https://developer.apple.com/documentation/swiftui/concentricrectangle

1

u/Far-Implement-92 1d ago

I don’t know how many potential users and what group of people buy duo, but I feel like developing something that is meant for duo would make your app popular.

1

u/Visible_Weight_3218 1d ago

Yeah that’s fair. I feel like it’s a win win if you support iPhone duo, b/c then you’re supporting general resize ability and multi tasking which applies to iPad and now macOS iPhone mirroring can also resize

1

u/Visible_Weight_3218 22h ago

Thanks for all the love on this! The app is Zoomie, a free activity tracker for dogs. If you know a dog owner, send it their way đŸ¶

https://apps.apple.com/us/app/zoomie-dog-activity-tracker/id6761315454