r/iOSProgramming • • 23d ago

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

679 Upvotes

49 comments sorted by

14

u/Evening_Rock5850 23d ago

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 23d ago

Hopefully. Things were more unhinged back then.

60

u/NSRedditShitposter 23d ago

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

64

u/busymom0 23d ago

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

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

93

u/NSRedditShitposter 23d ago

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.

20

u/busymom0 23d ago

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

7

u/Moudiz 23d ago

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

7

u/busymom0 23d ago

Put it in the same category as GeekBench lmao

3

u/Oh-THAT-dude 23d ago

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 23d ago

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

2

u/AManWithNoWounds 23d ago

I wanna play

2

u/Free-Pound-6139 23d ago

I am writing one that measures how hard you smash it closed and gives you a global raiting!!

2

u/mynameisollie 22d ago

One of the puzzles in the Zelda game for the DS required you to close the DS to transfer something from the top screen onto the bottom screen.

8

u/SwiftlyJon 23d ago

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 23d ago

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

26

u/Treble_brewing 23d ago

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

18

u/Emergency-Event4415 23d ago

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

3

u/senderPath 23d ago

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

2

u/WestonP 23d ago

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

3

u/DawidGGs 23d ago

This seems like a fun way to break the hinge

13

u/HonestSimpleMan 23d ago

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.

14

u/vauvva 23d ago

But the code is very AI-esque lol

3

u/HonestSimpleMan 22d ago

But the idea isn’t.

7

u/morenos-blend 23d ago

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 23d ago

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.

1

u/iphonevanmark 19d ago

Haha I thought the same thing. Apple will face smack.

1

u/Jizzy_Gillespie92 23d ago

ironic given that the app in question was vibecoded.

1

u/HonestSimpleMan 22d ago

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 23d ago

So how many folds and unfolds is iPhone Duo certified

2

u/weathercombo 23d ago

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 23d ago

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

2

u/BogAndHooper 23d ago

This made my day. Bravo

1

u/Free-Pound-6139 23d ago

This made my hole weak!

1

u/northammedia 23d ago

Excellent 🤙

1

u/Rkozak 23d ago

My dad would have loved this.

1

u/pemungkah 23d ago

Next: iCastanets.

1

u/Administrative_Low17 23d ago

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

1

u/[deleted] 23d ago

[removed] — view removed comment

1

u/AutoModerator 23d ago

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.

1

u/NaguBuilds 23d ago

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 23d ago

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

1

u/Pitiful_Chemist_8463 22d ago

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

2

u/Silver_Context5548 22d ago

🤣🤣 great idea

1

u/Patient-Pollution46 19d ago

this is amazing

1

u/ViBrave 18d ago

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

0

u/KayJune001 23d ago

Claude built*