resuming an old post, that help you to create an
UIAlert extension to show a modal popup, https://www.albertopasca.it/whiletrue/objective-c-modal-view-in-navigation-and-tabbar-controller-projects/ , I’ve created a new modern implementation that use UIWindow.
The scope is to show a spinner (or a
Lottie spinner, or whatever you prefer), centered in the screen with automatic or manually dismission. Background can be blurred or colored, like this screen: Continue reading “Swift – Simple full screen loader”
Weward is a mobile app that basically pay-you if you walk; offer also a price exchange and lots of offers inside the app.
The first time I opened it, I see at glance that I can hack it… and of course you can do it by yourself, very quick and easily. Let’s see how.
Continue reading “DIY: Hack Weward for iOS”
This is my work in progress ~50cm
Robotic Arm with 6 AXIS Servo motors, an Arduino and a RaspberryPi ( for image recognition in phase 2):
While writing the C++ code in Arduino I found I needed a way to send easily and fast commands to Arduino with my iPhone using Bluetooth.
Basically I need to control my robotic arm using an external device instead of running and running again the code on the Arduino board.
For this reason: I’ve attached a BLE board to Arduino and I have created a simple app (completely written in
SwiftUI 😍😎) that use BLE connection to connect to Arduino BLE board and send string commands that are parsed and executed.
Commands sended are like:
Continue reading “Debug (and control) your Robotic Arm with iOS”
Very often a lots of iOS applications use your gps position to retrieve data or to lock / unlock contents positions based.
With Android you can use lots of apps called
Fake GPS or similar that allow you to change your real gps position with a mocked one.
On Android development side this can be blocked checking via code the:
Continue reading “iOS – Fake GPS position: how to use and prevent”
Today I want to share a simple way to retrieve user data from a native
iOS cache image, automatically generated when your app goes in background.
You can retrieve this kind of informations if your phone was lost or
Jailbreaked or connecting it to your pc and open an old backup. You can use tools like iBackup Viewer and more…
Let’s see how it works!
Continue reading “iOS – Data Leakage: App background cache”
Every time you upload a
screenshot on the App Store for a new app submission, you receive from Apple this error message:
“Images can’t contain alpha channels or transparencies.”
Continue reading “Remove alpha channel from png images”
Very often you should use a notification name in your code and every time you miss something, you write the wrong name and so on…
I want to simplify the coding like, so I use this solution. Easy and simple for me and I want to share:
Continue reading “Swift – Useful NotificationName extension”
A simple tutorial for find and identify the wrong typed words of the user in your application using the
UITextChecker framework and the NatualLanguage framework. Final result:
Continue reading “Swift – Identify misspelled words and errors in phrases”
Starting from iOS 11, Apple introduces a new framework called
The Vision framework performs face and face landmark detection, text detection, barcode recognition, image registration, and general feature tracking. Vision also allows the use of custom Core ML models for tasks like classification or object detection.
Today we implement with few lines of code one of the simplest features of this beautiful framework, the OCR reader.
Continue reading “Swift – Native OCR reader”
Very often you create a
new class or a new view controller and customize it before start coding.
Every time you select from
XCode, New File, the file type and add it to your project, like this: Continue reading “Create your own XCode template”