Category: Programming
How to Show Alert & Sheet with Swift
This is example for show Alert & Sheet easily. Simple alert: alert(title: "Simple Alert") Custom alert: let yesAction = UIAlertAction(title: "Yes", style: .default) { (action) in toast(message: "Yes action", view: self.view) } let noAction = UIAlertAction(title: "No", style: .destructive) { (action) in toast(message: "No action", view: self.view) } alert(title: "Alert",…
How to Convert String to SHA-256 & SHA-512 with Swift
The SHA (Secure Hash Algorithm) is one of a number of cryptographic hash functions. A cryptographic hash is like a signature for a text or a data file. Hash is a one way function – it cannot be decrypted back. It's implemented in some widely used security applications and protocols,…
How to Show Toast on iOS App with Swift
Showing Toast like image above for iOS app not as simple as Android. Now with AfriwanLib we can show Toast on iOS app easily with Swift language. This is simple step to show Toast like image above on AfriwanLib. First step, you want to add pod 'AfriwanLib' similar to the…
How to Load an Image URL with Swift
Load an image from url is important for the app. The reality we find apps load an image every open app or page, that is wasting our time and internet quota. This section I will present how to load an image url effectively with Swift language. AfriwanLib is powerfull library…
Easy Way to Check Internet Connection on your iOS App
I create general library for iOS Developer to build their apps more fun and easy. AfriwanLib the name of library, one of the ability is you can check internet connection like image above easily only with this simple code: Documentation of this library on my Github. Happy Coding!!
Create animation, round corner of view and much more easily for your iOS app
As an iOS Developer, we have spend a lot of line by code just for create round corner or animation for view/button. It’s waste our time and line of code just for doing that. Now with AfriwanLib library, we can create animation, round corner of view or button and much…
Creat First iOS App
At this article you can learn how to create your own iOS calculator app, Motion Calculator. I share the source code on my Github account. Firs step create file ViewController.swift on your project: // بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ // // ViewController.swift // Motion Calculator // // Created by Afriwan Ahda on 12/31/17.…