r/iOSProgramming • • Sep 19 '26

Roast my code I turned iPhone Duo hinge into accordion

Post image

Fold and unfold the phone to play. Left screen is bass, right is keys. Sound is synthesized, no samples.

SwiftUI, open source: https://github.com/artemnovichkov/Accorduon

Update: it's now on the App Store as a full app: https://apps.apple.com/app/id6816177737

Six registers, play-along songs, and it works on regular iPhones too (rock the phone to pump the bellows). The open-source demo stays on GitHub.

684 Upvotes

50 comments sorted by

14

u/Evening_Rock5850 Sep 19 '26

I miss all the goofy apps we had when all of the iPhones sensors were a new and novel thing. Like iBeer or the zippo lighter where you’d flick the phone to open the top. Or that fun marble game for the iPad.

Maybe the hinge will bring some of that energy back.

6

u/lilacomets Sep 20 '26

Hopefully. Things were more unhinged back then.

→ More replies (1)

62

u/NSRedditShitposter Sep 19 '26

This seems fun but the app reviewers won’t be happy.

62

u/busymom0 Sep 19 '26

Apple Develoepr's own demo shows them using the hinge for guitar lol:

https://www.youtube.com/shorts/IbRvqX65C-0

93

u/NSRedditShitposter Sep 19 '26 • Heartwarming

That’s it, I’m going to write a game where there is a mosquito on the screen and you need to kill it by smashing the phone shut.

19

u/busymom0 Sep 19 '26

I am building a Clapping Simulator with Game Center leaderboards for how loud the clapping is :)

7

u/Moudiz Sep 19 '26

I don’t know how they would feel about apps that support limit testing the phone lmao

→ More replies (1)

3

u/Oh-THAT-dude Sep 19 '26

I’m writing an app that every time you snap the Duo closed, the iPhone’s selected voice says “well, they sure closed the book on THAT …”

6

u/Free-Pound-6139 Sep 20 '26

Mine says "I said goodday sir!". Only $5.99 monthly fee.

→ More replies (3)

9

u/SwiftlyJon Sep 19 '26

And one of the devs in the second Duo lab mentioned how he hopes someone makes an accordion app. So I don't think they're at all against using the hinge angle for things, gimmick or not. They would likely block the fly swatter app suggested by NSRedditShitposter though, 😆.

5

u/jpmiller03 Sep 19 '26

The developer video literally asked for developers to try making an accordion

26

u/Treble_brewing Sep 19 '26

It folds the wrong way for an accordion for a start…

18

u/Emergency-Event4415 Sep 20 '26

If you’re strong enough it still folds the right way.

4

u/senderPath Sep 19 '26

I applaud your creativity! I hope Weird Al can find out about this.

2

u/WestonP Sep 20 '26

Came here to say the same. Forget ASO, let's see OP get promoted by Weird Al!

3

u/DawidGGs Sep 19 '26

This seems like a fun way to break the hinge

12

u/HonestSimpleMan Sep 19 '26

I think this is beautiful, and you, my friend developer, are the reason I don’t believe AI is going to take our jobs ever.

13

u/vauvva Sep 19 '26

But the code is very AI-esque lol

3

u/HonestSimpleMan Sep 21 '26

But the idea isn’t.

7

u/morenos-blend Sep 19 '26

But this is exactly what they’ve done. One look at the code you can be sure it’s written with AI

3

u/chutehappens Sep 20 '26

This accordion app idea was joked about by Apple developers at a recent Q&A panel. I was already bracing for a flood of accordion apps.

→ More replies (1)

1

u/Jizzy_Gillespie92 Sep 20 '26

ironic given that the app in question was vibecoded.

1

u/HonestSimpleMan Sep 21 '26

My point is that no AI will come up with an idea so absurd. If it was coded by a lizard, I don’t care much.

2

u/hadoopken Sep 19 '26

So how many folds and unfolds is iPhone Duo certified

2

u/weathercombo Sep 19 '26

Haha very cool to see this. Two days ago earlier this week at the online iPhone Duo Group Lab the panelists talked about how someone should make an accordion app and start a band with the guitar app they made in their own demo. I assume this was inspired by that session. Looks great!!

2

u/anurodhp Sep 20 '26

you joke but some of us remember the fart app and how huge it was.

2

u/Silver_Context5548 Sep 21 '26

🤣🤣 great idea

2

u/BogAndHooper Sep 19 '26

This made my day. Bravo

1

u/Free-Pound-6139 Sep 20 '26

This made my hole weak!

1

u/northammedia Sep 20 '26

Excellent 🤙

1

u/Rkozak Sep 20 '26

My dad would have loved this.

1

u/pemungkah Sep 20 '26

Next: iCastanets.

1

u/Administrative_Low17 Sep 20 '26

The most fun you will have while breaking Duo’s hinge. 

1

u/NaguBuilds Sep 20 '26

A sensitivity setting could be fun here: let someone get the full sound range from small folds, without having to open and close the phone all the way for every note.

1

u/mklx99 Sep 20 '26

Great idea! But may be a way to cause a crease at the fold faster…

1

u/Pitiful_Chemist_8463 Sep 21 '26

since when did xcode have iphone duo simulation??? I dint even have it yet

1

u/Patient-Pollution46 Sep 24 '26

this is amazing

1

u/ViBrave Sep 25 '26

Another benefit of the app: test how many unfolds can the duo survive before breaking.

0

u/[deleted] Sep 20 '26

[deleted] — view deleted comment

1

u/AutoModerator Sep 20 '26

Hey /u/Educational_Bet2579, your content has been removed because Reddit has marked your account as having a low Contributor Quality Score. This may result from, but is not limited to, activities such as spamming the same links across multiple subreddits, submitting posts or comments that receive a high number of downvotes, a lack of recent account activity, or having an unverified account.

Please be assured that this action is not a reflection of your participation in our subreddit. This is simply an automated filter in place to reduce spam.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.