iOS Install specific iOS beta on simulator Apple release the new iOS SDK every day, as the developer, we want to test our apps on those new SDK before they are officially released. For example, we want Needone 16 Sep 2023 · 1 min read
iOS How to do a deep cleaning for pod If you are like me, the project is still using the pod to manage the libraries and frameworks. We need to clean the projects from time to time. The following Needone 19 Jul 2023 · 1 min read
Swift Nested class in Swift A nested class in Swift is a class that is defined within another class. Some key features: * Nested class have access to local variables or constants of the outer class Needone 17 Jul 2023 · 1 min read
RxSwift 2 hours to master RxSwift - Part 2 In this article we will dig a bit more depth in some core concepts on 2 hours to master RxSwift - Part 1. Section 1: Observable Like mentioned in the Needone 1 May 2023 · 6 min read
RxSwift 2 hours to master RxSwift - Part 3 Introduction In the previous post: 2 hours to master RxSwift - Part 1 (needone.app) and 2 hours to master RxSwift - Part 2 (needone.app), we get to know Needone 11 Apr 2023 · 3 min read
Swift 2 hours to master RxSwift - Part 1 a simple introudction on rxswift, including what is rxswift, how to use it and a quick example (with swift code) on demo that. Needone 14 Mar 2023 · 8 min read
Kotlin Singleton in Kotlin In the Kotlin programming language, a singleton is a design pattern that allows you to create only one instance of a class. This is useful when you want to make Needone 11 Mar 2023 · 1 min read
Kotlin Use keystore to store your sensitive in Kotlin The keystore is a secure storage location in Android that is used to store encryption keys, digital certificates, and other sensitive information. The keystore is encrypted with a hardware-based key, Needone 9 Mar 2023 · 1 min read
Swift Generic type vs. Any in Swift Generic type In Swift, a generic type is a placeholder for a specific type that is specified when the generic type is used. A generic type allows you to write Needone 7 Mar 2023 · 2 min read
iOS indirect enum in Swift An indirect enum in Swift is an enum that can be used to define a recursive data structure. This means that one or more of its cases can refer to Needone 4 Mar 2023 · 1 min read
Swift UITraitCollection UITraitCollection is a class in the UIKit framework that defines a set of interface traits that specify the environment in which your app is running. These traits include the device’ Needone 2 Mar 2023 · 2 min read
Swift UIKit vs. SwiftUI - A general discussion UIKit and SwiftUI are two different frameworks for building user interfaces on Apple platforms. UIKit UIKit is the older of the two frameworks, and has been around since the early Needone 28 Feb 2023 · 2 min read
Kotlin Certificate pinning and Public key pinning in Kotlin With the last article (Certificate pinning and Public key pinning), we know the concept of Certificate pinning and Public key pinning, and how to implement them in iOS. This article Needone 25 Feb 2023 · 1 min read
Encryption and decryption Certificate pinning and Public key pinning Certificate pinning and public key pinning are both techniques that are used to enhance the security of a network connection by ensuring that the client trusts only a specific certificate Needone 23 Feb 2023 · 3 min read
Android Download image from URL in Kotlin In Android, we can get the image from synchronously and asynchronously, but it is more common to see in the later. Download image synchronously To download an image from a Needone 21 Feb 2023 · 2 min read
Swift Sort custom objects by property in Swift Many of us have met the situation that we have an array/list of custom objects, and we want them can be sorted in a specific order. For example, we Needone 18 Feb 2023 · 1 min read
Android RunBlocking in Kotlin Coroutine In previous post, we have gone through most of the key concepts and methods in Coroutine: Kotlin Coroutines Table Content 1, Introduction to Coroutine in Kotlin 2, Non-blocking in Kotlin Needone 16 Feb 2023 · 2 min read
Swift Format currency in Swift Recently I have done quite an amount of work on formatting currency in Swift project, here are some tricks on how to format number in Swift: Format currency with auto Needone 14 Feb 2023 · 1 min read