How to build a simple AI text to image iOS app with Stable Diffusion, Python and SwiftUI
4 min read Stable Diffusion offers a way to generate image from text using AI or machine learning. The SDK is available only in Python at the time of this writing.
Convert SwiftUI view to an image, save or share it
3 min read The iOS 16 has introduced a way to convert your SwiftUI views to image. Let’s look at how it can be done. ImageRenderer is a new class introduced in iOS 16 for SwiftUI, which you can easily generate an image for your SwiftUI view in just a few lines of code as below:
Jumpstart to Rust from a background of Swift, PHP, Java….
3 min read Recently, I’ve got some interest to explore the Blockchain database which I’d need to write some smart contracts by the use of Rust programming language. As someone with a background of a number of programming languages such as Swift, PHP, JS & Java etc, I’ll tend to compare a new programming language that I’m going […]
Scheduling local notification the MVVM way in SwiftUI
6 min read In the previous tutorial, we’ve shown you how we can send, receive and handle local notifications with SwiftUI and now we are going to look at a practical example to build a simple app to schedule notification by using the MVVM design approach.
Handling local notification in SwiftUI
8 min read There are two types of notifications in iOS app, the local and remote notifications. The local notification is a handy way for you to send notifications right away from the app to the users without having to do it from the server side.
Build a PDF composer app with PDFKit – the SwiftUI and MVVM way
10 min read PDFKit is the framework by Apple that you need to display and manipulate PDF files in your app. PDF is useful so we can generate files that cannot be modified and shared or sent to others. This is especially useful for apps that need to generate receipts, bills, invoices or any other confidential or important […]
Useful extension functions to decode Json from Bundle and remote URL with SwiftUI examples
5 min read Here are two useful extension functions for decoding Json data into structs or objects of any type. The first one is an extension function of Bundle for decoding any JSON file stored in your local bundle. The second one is an extension function of URLSession for decoding any JSON data from remote URL.
JSON parsing and examples of creating views in loop with SwiftUI
4 min read Most of our apps need to deal with JSON parsing these days. Especially when your apps need to load data from REST API which provides data in the form of JSON. With SwiftUI, the use of ForEach and List that allow the creation of views in a loop with ease, making it better to have […]
A first look at SwiftUI stacks, VStack, HStack, ZStack and build some combined views
3 min read SwiftUI is the new way of designing and developing your UIs which has been introduced by Apple since iOS 13. It’s a new framework which allows you to write less code when developing the user interfaces of your iOS apps.
Changing this blog into a programming blog, it’ll be about swift, kotlin, react-native & more
2 min read Initially, this blog was intended to record some of my game development progresses. But due to some changes in the past couple of months, I’ve now switched to focus more on developing a number of iOS & Android mobile apps that involve several service platforms; as one of my passion projects. And what I’m doing […]