Sometimes can be useful to add a gradient on a UIView. This simple UIView extension helps you “coloryze” your screen.

Let see how to use and how is implemented.
Continue reading “Swift – UIView gradient extension”notes from a developer, tutorials, how-to, ideas
Sometimes can be useful to add a gradient on a UIView. This simple UIView extension helps you “coloryze” your screen.
Let see how to use and how is implemented.
Continue reading “Swift – UIView gradient extension”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”PrivateFrameworks are always a joy.
Today, for a personal project I discovered how to use private Login.framework to lock programmatically via code (Swift or C) the screen of my mac book.
Continue reading “Swift / C – Lock macOS programmatically”Starting from iOS 11, Apple introduces a new framework called Vision.
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.
https://developer.apple.com/documentation/vision
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”Rotate a UIImageView using Gyroscope:
Continue reading “Swift – Rotate image using Gyroscope”Very often you should insert a pin-code in a UITextField that some service in order to verify your identity sends you via SMS (generally for a 2FA, two-factor authentication).
Continue reading “Swift – Read automatically pin-code from SMS / OneTimeCode”With the NetworkExtension framework, you can customize and extend the core networking features of iOS and macOS. Specifically, you can:
The NetworkExtension framework is available in macOS and iOS, but not all features are available on both platforms and some features have specific restrictions (for example, some features only work on supervised iOS devices). The documentation for each feature describes these restrictions.
Apple offer the batteryState in the UIDevice class:
In iOS12 Apple introduced a new way to check if your device is in “flat” mode, or better is on your desk.
Let’s take a look at the reference:
Continue reading “Swift – UIDevice orientations using iOS12”
Hi!
with iOS 12, Apple released a new framework for language recognition and other interesting stuff. Is called NLLanguageRecognizer.
Use the Natural Language framework to perform tasks like language and script identification, tokenization, lemmatization, parts-of-speech tagging, and named entity recognition. You can also use this framework with Create ML to train and deploy custom natural language models.