Today a funny 😎 way to use device motion to move using the gravity the objects on your view controller, like this:
Read Moregeneric
BASH – Credit card number generators
Today I want to share a simple command line utility, used to generate random and valid credit cards number for:
- Visa
- Visa13Digit
- MasterCard
- Discover
- AmericanExpress
- DinersClubUSA
- DinersClubCanada
- DinersClubInternational
- DinersClubCarteBlanche
- JCB
Read More Lock Your Roll for iOS is now online!
Lock Your Roll is a new and innovative idea to lock (or unlock) your photos 🖼 directly from your camera roll without removing or moving in another albums! 😍
Now you can give your phone to your friends without worrying about your secret or NSFW photos 😱.
Read MoreSend push notifications to iOS Simulator
As you know, when implement push notifications on iOS Application and run the app on simulator, you’ll receive this classic error in console:
Remote notifications are not supported in the simulator
But is really true?
Read MoreDebug (and control) your Robotic Arm with 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:
Read MoreCandy Crush – Play without limitations
Today a funny trick to play Candy Crush without waiting and waste time for next life.
Read MoreSwift – UIView gradient extension
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.
Read MorePython – Draw “complex” shapes in Photoshop
Today a funny trick using Python that allow you to control the mouse movements (move, click, drag, recognize RGB and much more…).
Configure the environment
Read MoreSwift – Push UIView animation
Simple code snippet today that show how to push a UIView
and obtain the same effect of a UINavigationController
as push action, choosing also the side (.fromLeft
/ .fromRight
).
We can do this using the CATransition
animations. Very simple:
func push( view: UIView, side: CATransitionSubtype = .fromRight ) {
let transition = CATransition()
transition.type = CATransitionType.push
transition.subtype = side
self.layer.add(transition, forKey: nil)
self.addSubview(view)
}
Enjoy pushing!
Swift – Get app keyWindow
Quick memo to get the keyWindow for all iOS versions until now.
KeyWindow is the “key” window of your entire application. The key window receives keyboard and other non-touch related events. Only one window at a time may be the key window.
Use the #available(iOS 13.0, *)
keyword to bypass system check: