Skip to content

Category: Tips

sort code tips and tricks

iOS User Authentication with Face ID

With the new UserAuthentication class available in Xojo 2021 Release 1, you can now easily ask an iOS user to authenticate themselves using Face ID, Touch ID or with their password/passcode. In an iOS project, add a UserAuthentication object to your screen and change its name to Authenticator.

Comments closed

MobileMoviePlayer

The MobileMoviePlayer is a relatively new iOS feature in the Xojo Programming language. To use MobileMoviePlayer start a new iOS project and drag the MoviePlayer control from the Library onto a Screen.

Comments closed

A Functional ForEach

When looping through an array, I am a big fan of using For Each as I find it more readable than using a For loop with a counter and looking up the item in the array with the counter. Sometimes it’s fun to do stuff just because you can! Plus, it makes for a good excuse to learn about some more advanced Xojo features

Comments closed

Folder Contents in a Menu, Redux

Since I was asked for a few enhancements, here’s a quick update to my previous Folder Contents in a Menu post from earlier this week. Enhancements include: Display the requested folder in the menu.
Sort the folder contents.
Skip files that cannot be accessed.

Comments closed

Folder Contents in a Menu

A user on the forum asked how they might show folder contents in a PopupMenu. Since a PopupMenu is not hierarchical, that wasn’t really an option. But an alternative would be to show the contents in a hierarchical menu. Here’s how you can recurse through files and add them to a regular MenuItem.

Comments closed