Show & Tal

Tal's blog about swift and life

Creating a custom speech bubble 💬

When developing iOS apps UI, it is very common to create custom controls which can be reused all across app. Custom controls allows creating very specific UI and behaviours while controling pixel perfect display. In today’s post I’m going to demonstrate how to create a custom speech-bubble which can be used in chat-like applications.

Read More

Custom operators 🥳

Swift lets us easily define custom operators. I am going to demonstrate how it is done using a simple use case - managing and layouting views.

Read More

Optionals explained 🧐

Any Swift developer is familiar with Optionals. Optionals are Swift method of ensuring that when a variable is accessed, its value is not nil. This allows us to access the variable safely, making our code clean and consistent. But how is this mechanism implemented? If we examine the Swift language repository, we’ll find that Optional is actually implemented as an enum!

Read More