Password Lock
You can password lock any app by changing the variables inside the shortcut
fractalgeometry2Scan with your iPhone to install
You can password lock any app by changing the variables inside the shortcut. Locks the device after an incorrect attempt
What's New
Version 1.0
First release
What it does
9 actions-
Ask for InputEnter passcode here:
-
If
-
CommentChange the passcode where it says "Placeholder"
-
Open App
-
CommentWhere it says "youtube" you can put any app there, that's just what I put
-
If
-
Show Result
-
Wait
-
Lock Screen
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#include 'actions/device'
#define color darkgray
#define glyph lock
const AskForInput = prompt("Enter passcode here:")
if AskForInput == "Placeholder" {
// Change the passcode where it says "Placeholder"
openApp("com.google.ios.youtube")
// Where it says "youtube" you can put any app there, that's just what I put
} else {
show("Password Denied... Locking screen")
wait(0)
lockScreen()
}
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by fractalgeometry2
You Might Also Like
Advertisement