iOS ContentHugging vs. ContentCompressionResistance in UIStackView In Swift, it is quite common to see ContentHugging and ContentCompressionResistance either when we are using the storyboard or code to render the user interfaces in UIStackView. Those 2 properties Needone 9 Dec 2022 · 1 min read
Swift A summary of use enum in Swift Enumeration type is a common type in many programming languages, which normally presents a set of limited status for a program, such as list all the directions for a compass: Needone 1 Mar 2021 · 2 min read
Swift Use Extension in Swift Extension is a great feature in Swift, which can help us to create helper/utility variables and method, and etc. Use extension to conform protocols It is quite common to Needone 27 Feb 2021 · 1 min read
iOS Property in Swift Unlike other programming languages, there are three types properties in Swift. Stored Properties They are constants or variables of a class, and part of the class instances that used to Needone 25 Feb 2021 · 1 min read
iOS How to check whether a mobile device is muted or not on iPhone/iPad On iOS devices, there are mainly two types of sounds: * Ringtones and reminders: Including system sounds such as phone calls, text messages, notifications (also including key tones, lock sounds, which Needone 23 Feb 2021 · 2 min read
iOS Init vs Convenience init in Swift Initializers, also known as constructors in other programming languages, have two types: Designated init and Convenience init. They are used to initialize properties or customize a variable or object for Needone 15 Feb 2021 · 2 min read
iOS iPhone/iPad Redeem promo code to get free App in 2022 This will happen when developers decides to give out some free apps, which sometimes you will see the promo code like this EAJXJEXL7MJH. As many of you might know how Needone 1 Jan 2021 · 1 min read
iOS Days Gone Widget Dear time master, Thanks for downloading this app. Time travels fast, with days gone app we can put a nice-looking widget on your Home Screen so we would know where Needone 1 Jan 2021 · 1 min read
Swift Keyword Lazy in Swift lazy variables are variables will be computed until accessing. In other words, lazy variables won't have the real value until get called/used. As lazy variables can be re-assigned, so Needone 31 Dec 2020 · 1 min read
iOS Constants in Objective-C Recently I was working on a legacy project written in Objective-C, which reminded me of the early days when working on Objective-C projects. In the code I saw few things Needone 13 Dec 2020 · 1 min read
iOS How to use Swift Package Manager What is Swift Package? According to Apple's doc: * Swift packages are reusable components of Swift, Objective-C, Objective-C++, C, or C++ code that developers can use in their projects. They bundle Needone 31 Oct 2020 · 2 min read
iOS VIP Architecture in Swift with easy explanation Recently I joined a project where the architecture follows the Clean-Swift VIP Pattern. This article is an overview and some thoughts from a mobile developer’s perspective who have NEVER Needone 25 Oct 2020 · 2 min read
iOS SwiftLint: Writing good quality code in Swift SwiftLint is a programming guide tool which can automatically check the code quality with certain rules such as https://github.com/github/swift-style-guide. The article will cover: * How to install Needone 17 Oct 2020 · 4 min read
iOS What is Bitcode in iOS You may compile and build iOS app using Swift and/or Objective-C every day, and you've probably you heard of Bitcode multiple times. So what exactly is the Bitcode, as Needone 15 Oct 2020 · 1 min read
iOS iOS14: How to show all your photos on WhatsApp iOS14: How to show all your photos on WhatsApp, instagram, facebook Needone 25 Sep 2020 · 1 min read
iOS What is Codable in Swift codable in swift, and Decoeable, encodable example Needone 29 Aug 2020 · 1 min read
iOS Complete guide on custom class/struct comparison swift compare custom class or custom struct Needone 15 Aug 2020 · 2 min read
iOS Extract the debug or crash log from iPhone/iPad For Real devices 1. Open Settings app 2. Tap Privacy 3. Tap Analytics & Improvements 4. Tap Analytics Data 5. There might be quite a lot of Data, so try to Needone 5 Aug 2020 · 1 min read