Firebase has become the first tool any iOS developer adds to his projects. And while
Performance usually work out-of-the-box, there is one tool that rises more questions. It’s
How does it handle app localization?
How to configure it in production?
How to set proper environment and versioning?
And how to make this integration smooth, maintainable, and testable?
We will talk about this in the context of the app
strings and briefly review different ways to handle
strings. From the simplest setup with no localization to remote localized database environment with versioning.
Working on any iOS…
Joining UBER was a new chapter in my iOS Engineering career, and it all began with the new architecture, which is called RIBs. The major idea behind this architecture is that the app should be driven by business logic, and not by the view. The best way to visualize it is a tree: each RIB is a node, and it can have none, one, or multiple child nodes.
This is a continuation of my article from June 11, where we created the universal manager to handle all types of deep-linking (notifications, shortcuts, universal links, deeplinks). The only question that we haven’t discussed is:
“How do we actually navigate to an appropriate screen once the deeplink is handled?”
In this article, we will go deeper and implement the clear and flexible way of App Root Navigation, that includes the Deeplink navigation. You will be able to access any part of your app from both inside the app or from any type of external deeplinks.
Most of the modern apps…
Let’s be honest: tableView.reloadData is only there for two reasons:
Most data-driven apps use the server to fetch a new data and then display this data in the table view. When you reload the data, some of the items in your collection may not change, or the collection may only add/delete a few items without affecting all other items. Calling .reloadData() on the tableView will update the tableView instantly the scroll position will be ambiguous. Not the best user experience, right? …
Have you ever built an app, that handles Push Notifications? If your app is something more complex than a “Hello, World!” app, then, most likely, the answer is yes.
How about opening Shortcuts? When all the new iOS devices support 3d touch, this feature is becoming something more than just a nice-to-have addition.
Does your app support the Universal Links? This is a relatively new feature, that is becoming popular in the modern apps. So, if you don’t use it, you may want to start.
The good thing is that you can easily find dozens of learning materials, examples, and…
This is the third Tutorial in my Table View with MVVM series. In the first two parts, we created the Table View with dynamic cells of different types, and we added a collapsible sections feature. Today, we will go through another common-used Table View scenario: multiple selections.
In many use cases, we need to create a Table View, that allows the user to select multiple cells. Usually, the API provides the list of items, that you display in Table View, and the user can select a few of this items to use them later (send to the backend, save to…
This is the second part of my Tutorial series on Table View with multiple cell types.
After reading the multiple responses and advice for the first part, I decided to add some major updates.
UITableViewController is changed to UIViewController with a TableView as a subview.
Now, ViewModel conforms to TableViewDataSource protocol. NumberOfRowsInSection, cellForRowAt, and numberOfSections are the part of ViewModel. This keeps the ViewController and ViewModel separated.
Please find the final updated project here.
Thanks everyone for the contribution!
In the first part we created the following Table View:
There are Table Views with the static cells, where the number of the cells and the cell order is constant. Implementing this Table View is very simple and not much different from the regular UIView.
There are Table Views with dynamic cells of one type: the number and the order of the cells are changing dynamically, but all cells have the same type of content. This is where the reusable cells come in place. This is also the most popular type if Table Views.
The are also Table Views with dynamic cells that have different content types: the number, order…
If you build iOS projects, you already know this fact: one of most commonly used component is a UITableView. If you haven’t yet build any project, you still can see a UITableView in many popular iOS app: YouTube, Facebook, Twitter, Medium, most messenger apps, etc. Basically, every time, when you need to display a dynamic number of data objects on the same view, you use UITableView.
Another base component is CollectionView, which I personally prefer to use, because it’s more flexible. I will make another article about CollectionView later.
So, you want to add a UITableView to your project.
If you are an iOS developer, or a software developer in general, you definitely solve this problem in almost every project: how to pass data from the Model to Controller.
This assumes, of course, that you are using MVC or MVVM pattern in your project. If all of your code for requesting, receiving, and parsing data, along with updating the UI is located within a single UIViewController subclass, you should probably adopt one of the iOS Architecture Patterns first.
I will describe three basic ways of passing the data back to your Controller:
Senior iOS Engineer at Instacart