Swift

Understanding how Xibs work in detail.

Have a good day everyone, hope you’re doing well in this pandemic.In today article, I’m going to talk about Xibs in detail because I’ve seen many developers use it but not very understand the concept and how it works behind the scenes. So in this article we’re going to explore everything ok ? As a …

Continue Reading
Swift

Interact with TableView when using DiffableDataSource

In the first post we discussed on using DiffableDataSource and Combine together but so far we only learned how to setup data source. In this part we’re going to learn how to setup swipe to delete action by creating your own DiffableDataSource. If you haven’t read the first part you can find it here: Also, …

Continue Reading
Swift

Using DiffableDataSource and Combine.

DiffableDataSource is an API was introduced in iOS 13. It helps us more efficiently and easily setup datasource for a table view or collection view. Today, we’re gonna increase its powerful by using it with the Combine framework. OK, let’s see how it work together. Before start feel free to download and then open the …

Continue Reading
Swift

Introduction to Regular Expressions

I’m been working in an application that need to use Regular Expression (as well known as Regex) to validate user informations so today I want to talk a little bit about it. Let’s get started. Regular Expressions Regular Expressions are useful for parsing and validating if any text matches a given pattern or not. Let’s …

Continue Reading
Swift

Compositional Layout in UICollectionView

I had a lot of fun when explore the new API so I decided to make a post to share with you guys what I’ve learned. Let’s get started. Updated: I’ve created a instagram-like layout using Compositional Layout. You can check it out here: https://github.com/LearnWithTung/InstagramGridLayout A boring introduction (but it’s worth to read) Compositional Layout …

Continue Reading
Swift

Functional programming by example in Swift

Map, flatMap, Reduce and Filter. Hôm trước mình được đề nghị tìm một số bài viết về functional programming cho các anh em dev đọc vì khách hàng đang muốn áp dụng nó vào trong dự án của họ tuy nhiên nhiều anh em chưa biết hoặc hiểu nhiều về cách sử dụng. Uhm… Mình …

Continue Reading