Tsungyu YuInheriting existing Class type to support ObservableObjectWe know that we can do the @Published for a new class, but what if we already have an old class and modify it become really hard? We are…Sep 8, 2020Sep 8, 2020
Tsungyu YuSwift 5.2 callAsFunction by example: Advanced Fibonacci NumberLast time, we discussed how capturing value work in Swift, in this article, we are taking more fun with callasFunction. Swift Capturing…Jul 8, 2020Jul 8, 2020
Tsungyu YuHandle tons of API requests in Generical way, including JSON decode and Unit test in SwiftIt’s very often seen a lot of different API request in a large project. If make each API unrelated, once there are needs to change some…Aug 3, 2019Aug 3, 2019
Tsungyu YuDecoding unpredictable JSON, with Declarative syntax decodable protocol in SwiftWhat is the feeling of working with yet fully mature backend, the data structure may be different from time to time, the value of certain…Jul 26, 2019Jul 26, 2019
Tsungyu YuSwift Capturing Value: Adventure in Fibonacci Number of Dynamic ProgrammingThis an advanced topic about the Fibonacci number, by using Dynamic programming, we can reduce duplicate operation in the previous number…Jul 8, 2019Jul 8, 2019
Tsungyu YuAPI Management by Route, a JSON type-safe way in SwiftThe story was beginning with a little kid, Don, who has been confused by how to figure out a right way to solve a dynamical Web API…Jun 11, 2019Jun 11, 2019
Tsungyu YuXcode preprocessing with Custom flags in SwiftIt has been a long time since I became a developer, really enjoy seeking problems and finding a good workflow.Jun 8, 20191Jun 8, 20191