Khoa Pham

Khoa Pham @onmyway133

About: My apps https://onmyway133.com/apps/

Joined:
May 29, 2017

Khoa Pham
articles - 136 total

Craft stunning code and image screenshot for free

Craft stunning code and image screenshot for free

Learn More 1 0Feb 25 '24

I visualized 8 lessons from 1 year doing indie development

visualize,indie,app,development

Learn More 2 0Apr 14 '22

My year in review 2020

I remember this time last year in December 2019, I spent almost every single bit of my free time on P...

Learn More 5 0Dec 17 '20

How to make white label React app for landing pages

How to make white label React app for landing pages

Learn More 24 2May 14 '20

How to build SwiftUI style UICollectionView data source in Swift

It's hard to see any iOS app which don't use UITableView or UICollectionView, as they are the basic a...

Learn More 8 0Feb 9 '20

How to add AdMob to Android app

Use AdMob with Firebase https://firebase.google.com/docs/admob/android/quick-start buil...

Learn More 6 0Oct 1 '19

How to show context menu from NSButton in macOS

Use NSMenu and popUp func showQuitMenu() { let menu = NSMenu() let aboutItem = NSMenuItem(...

Learn More 5 1Oct 1 '19

How to easily parse deep json in Swift

JSONCodable is awesome, but sometimes we just need to quickly get value in a deepy nested JSON. In th...

Learn More 6 0Sep 12 '19

Back to static site

It's been a while since I wrote Hello world, again, the ease of GitHub issue indeed motivates me to w...

Learn More 3 0Sep 3 '19

How to get Hacker News top stories using parallel coroutine and Retrofit

interface Api { @GET("topstories.json?print=pretty") suspend fun getTopStories(): List<Int...

Learn More 6 0Sep 3 '19

How to safely access deeply nested object in Javascript

An object 's property can be null or undefined. Accessing step by step is tedious props.user &...

Learn More 9 2Sep 3 '19

How to make scrollable NSTextView in AppKit

When adding NSTextView in xib, we see it is embedded under NSClipView. But if we try to use NSClipVie...

Learn More 5 0Jun 27 '19

How to handle keyboard for UITextField in scrolling UIStackView in iOS

Firstly, to make UIStackView scrollable, embed it inside UIScrollView. Read How to embed UIStackView...

Learn More 6 0Jun 26 '19

How to make simple form validator in Swift

Sometimes we want to validate forms with many fields, for example name, phone, email, and with differ...

Learn More 12 3Jun 25 '19

How to deal with weak in closure in Swift

Traditionally we need to if let to strongSelf addButton.didTouch = { [weak self] in guard...

Learn More 5 0Jun 25 '19

I'm launching Menu Launcher - Declutter status bar, dock and desktop

Website https://onmyway133.github.io/apps/menulauncher Product Hunt https://www.producthunt.com/posts...

Learn More 7 1Jun 18 '19

Introducing EasyStash - Easy data persistence in Swift

The library is available on CocoaPods https://github.com/onmyway133/EasyStash EasyStash is an easy a...

Learn More 6 0Jun 12 '19

How to request direction for GMSMapView using MapKit

Due to policy, we can't use Google Directions API on MKMapView, but we can use MKDirections on GMSMap...

Learn More 6 0Jun 11 '19

How to add indicator under tab bar buttons in iOS

selectionIndicatorImage https://developer.apple.com/documentation/uikit/uitabbar/1623456-...

Learn More 7 0Jun 11 '19

Introducing Dropdowns - Add dropdown to iOS app easily

I'm making a new framework, Dropdowns Dropdowns provides the quickest way to present a dropdown in y...

Learn More 6 0May 27 '19

How to setup Android projects

This post details installing check tools for Java and Kotlin, as well as obfuscation and gradle grgit...

Learn More 27 1May 23 '19

I'm launching Almighty - powerful configurations for macOS

Product Hunt https://www.producthunt.com/posts/almighty Gumroad https://gumroad.com/l/lbZCs Hi,...

Learn More 20 7May 15 '19

How to use Stripe and Apple Pay in iOS

iOS Integration Setting Up Apple Pay Requirements Apple Pay Show basic add card in iOS...

Learn More 9 1May 14 '19

How to use CAReplicatorLayer to make activity indicator in iOS

CAReplicatorLayer is a layer that creates a specified number of sublayer copies with varying geometri...

Learn More 5 0May 14 '19

How to use MainController in iOS

Usually in an app, we have these flows: onboarding, login, main. And we usually set OnboardingControl...

Learn More 4 0May 12 '19

Understanding suspend function in Kotlin Coroutine

Getting to know Coroutine From https://kotlinlang.org/docs/reference/coroutines.html To...

Learn More 6 0May 12 '19

How to avoid UIVisualEffectView crash in iOS

We all know that there's a potential crash with UIVisualEffectView on iOS 11. The fix is to not add s...

Learn More 5 0May 9 '19

How to overload functions in Swift

Function Functions in Swift are distinguishable by parameter label parameter type return...

Learn More 5 0May 6 '19

How to create a piano using iOS 9 Auto Layout

In the beginning, people use frame and Autoresizing Mask, then they use Auto Layout, then iOS 9 encou...

Learn More 5 0May 4 '19

Auto Layout with different screen sizes

Auto Layout is awesome. Just declare the constraints and the views are resized accordingly to their p...

Learn More 7 0May 2 '19