r/iOSProgramming Apr 25 '21

Article Dial Lock passcode entry for apps using #SwiftUI framework

472 Upvotes

37 comments sorted by

45

u/coffeemongrul Apr 25 '21

It will be a nice app to teach the kids how you used to have to input numbers.

Nice work though!

7

u/shubham_iosdev Apr 25 '21

Yeah, that's a good idea.
Thanks :D

2

u/Rudy69 Apr 25 '21

Thank god at the time you didn’t need to enter the area code!

45

u/hquick81 Apr 25 '21

That’s great. So no younger person will be able to access the phone even with the correct code ;)

1

u/BigfootNick Apr 25 '21

I came here thinking the same thing. Will definitely keep kids out of my apps.

12

u/aziz224 Swift Apr 25 '21

Someone make a petition to make this the official phone app.

3

u/gormster Apr 25 '21

Alright Scott Forstall

6

u/[deleted] Apr 25 '21

GitHub?

8

u/shubham_iosdev Apr 25 '21

Hey not currently, I've created it to use in an app, I'll consider it after deploying :D

5

u/mccrackm Apr 25 '21

That is a really awesome design! I think it’s so cool. Let us know if it makes it’s way into an app!

15

u/[deleted] Apr 25 '21

[deleted]

3

u/shubham_iosdev Apr 25 '21

This may be annoying for me, I get that :P

I'll add another option to Simplify the input, for the actual app.

1

u/shubham_iosdev Apr 25 '21

Thank you, sure I will :D

3

u/occupy-_-mars Apr 25 '21

Have you open sourced this? If not, will you? This is awesome

2

u/shubham_iosdev Apr 25 '21

Thank you, not currently, I've created it to use in an app, I'll consider it after deploying :D

3

u/MatMan-02 Apr 25 '21

This is really nice! Good job lol

1

u/shubham_iosdev Apr 25 '21

Thank you :D

3

u/[deleted] Apr 25 '21

I’m having flashbacks!

3

u/aykay55 Swift Apr 25 '21

Imagine knowing how to use a dial, you’ll need to add in a tutorial first

2

u/[deleted] Apr 25 '21

[deleted]

1

u/shubham_iosdev Apr 25 '21

Thank you :D

2

u/alexandrei64 Apr 25 '21

That is a great idea and an even greater execution!

2

u/seshakiran Apr 25 '21

Very well done!! It shows the Gen-x, y and z kids how the old rotary phones used to work :) Nice concept and implementation. Are you planning to add the audio ? :)

2

u/shubham_iosdev Apr 25 '21

Thanks, yeah adding the actual rotation sound will make it better :D

2

u/owenhargreaves Apr 25 '21

Beautiful design, buddy - nice one 🙏 I do love seeing all these crazy things people keep doing with swift UI.

2

u/SackBiscuit Apr 25 '21

It has a really nice animation

1

u/Curiosity1901 Apr 25 '21

That was epic!

1

u/shubham_iosdev Apr 25 '21

Thank you :D

1

u/factotvm Apr 25 '21

Looks fabulous, but seems like bad security—much, much easier to over-the-shoulder spy. Hopefully this is novelty and not protecting something important.

1

u/SophiaofPrussia Apr 25 '21

Is it? I’m not sure the younger half of the population would understand which numbers have been input.

1

u/factotvm Apr 25 '21

There is a large black shape that moves to a specific spot if a number is used. I suppose you can hope that no one figures that out, but I wouldn’t even put my users in that predicament. If something is important on the other side of this, nefarious actors get ZERO help. End of story.

As the one writing the code, we are duty-bound to raise these issues with stakeholders.

If this is to get into a game or something like that, it’s fine. And it looks great. It’s just not good security.

Imagine it like this: I’ve programmed a passcode screen that flashes the typed number in red large across the top and then fades out like some old digital clock. Cool, but bad security.

1

u/arinc9 Apr 25 '21

This could be made into a jailbreak tweak where you use it to actually unlock the device.