In Swift, both "if" and "guard" keywords can handle unwrapping optional type. "if" keyword is enough to handle, why is "guard" available?
Category: Swift
Projects which use method swizzling technique
The post basically looks over some projects listed in awesome ios. I do not dive deep into each project to figure out what it does with method swizzling technique. Some of them use method swizzling for writing unit tests, some use swizzling for its core logic business, etc. Data persistence Firebase Firebase is Google's mobile platform that … Continue reading Projects which use method swizzling technique
Method Swizzling Fun Fact
Eventually, I have had my answer about using method swizzling in Swift/Objective-C. One of my teammates in AT&T who went to WWDC 2018 with a list of the desired questions to ask Apple engineers, he took notes some answers. These are 2 questions on Swizzling which were brought up...
Dispatch a task to a queue, be careful!
I'm pretty sure that all of us have known that UI manipulation has to be done on Main-Thread. I/O tasks, Networking tasks, Making Service API requests, etc should be done on Background. This is true but be careful...
Swift 4 years look back
Hello everybody, When I wrote this post on Jun 22, 2018, Swift was 4 years old. In a few weeks earlier, Swift 4.2 was presented in WWDC 2018 and planned to ship with XCode 10 later on. At the very first time, I was an Objective-C developer. I felt good with Objective-C. It was King, … Continue reading Swift 4 years look back
Fear of Swizzling
I believe that Swizzling is the most argumentative technique which I have used in Objective-C/Swift. Apple makes it available to use. Apple also releases some documents about Swizzling, it doesn't set a standard for using the Swizzling technique. Hence the application could have some potential risk to pass the app review. I'm not a fan … Continue reading Fear of Swizzling
Method Swizzling and some applications
As an iOS developer, I'm pretty sure that most of you have ever sometimes heard about Swizzling. I gonna talk about this. Not gonna say all things about Swizzling, definition, what, why, blah blah,... Just share the main ideas, some uses in practice from my experience. In Swift/Objective-C, the language provides some tools to work … Continue reading Method Swizzling and some applications
OOP in Swift
(This article is based on Swift 4.x, the content of it could be obsoleted against the later version). Hi everyone, This is my very second post, so I pick out a very general topic to talk about. It is OOP (Object Oriented Programming), the stuff which involves me almost every day. I'm telling you from … Continue reading OOP in Swift