Open in app

Sign in

Write

Sign in

Oleg Dreyman
Oleg Dreyman

836 Followers

Home

About

Jul 17

Simplifying Swift Timers: solving memory leaks & complexity once and for all

Creating easy-to-use Timers with automatic memory management — TL;DR? Explaining how to create a system for intuitive Swift Timers with automatic memory management. Minimal gist here, fully featured Swift package here, or read the article for details This article is not an explainer on Timer API. If you need a deep dive on Foundation.Timer …

Swift

6 min read

Simplifying Swift Timers: solving memory leaks & complexity once and for all
Simplifying Swift Timers: solving memory leaks & complexity once and for all
Swift

6 min read


Published in

Parable Engineering

·Jul 20, 2022

Building a reusable system for complex URL requests with Swift

Deal with query items, HTTP headers, request body and more in an easy, declarative way — Theoretically, building a URLRequest in Swift is easy: let googleURL = URL(string: "https://google.com")! var urlRequest = URLRequest(url: googleURL) urlRequest.httpMethod = "POST" But at some point, when your requests are complex enough, it starts to get frustrating. First of all, there will be a lot of repetition — setting all the…

IOS

6 min read

IOS

6 min read


Nov 14, 2021

Animator: easy trick to make UIKit animations reusable

Fighting duplicate animation code in two easy steps — People sometimes come to me on the street and ask: “Mate, what are the two most important things that define the character of a mobile app?” And whenever that happens, I answer “oh boy, what a silly question. Everybody know that those are animations and code reusability!”. Incredible, huh? So…

Swift

3 min read

Animator: easy trick to make UIKit animations reusable
Animator: easy trick to make UIKit animations reusable
Swift

3 min read


Feb 19, 2021

The ultimate solution to the “how on Earth do I host and show this Privacy Policy” problem

Introducing TelegraphKit — It’s a well-known fact that app development (like any job) has its fair share of mundane tasks. Tasks like creating Legal pages, support screens, and settings screens, to name a few. Let’s talk about adding a Privacy Policy. Maybe you already have written it (great work!), …

Libraries

4 min read

The ultimate solution to the “how on Earth do I host and show this Privacy Policy” problem
The ultimate solution to the “how on Earth do I host and show this Privacy Policy” problem
Libraries

4 min read


Feb 4, 2021

An easier way to create dates in Swift

Introducing DateBuilder — TL;DR? I’ve open sourced DateBuilder, a powerful date calculation library. Check out the README to see all the incredible stuff it can do. Apple’s Calendar API is amazing, it is. It’s quite obscure in some parts, true, and it requires quite a little bit of learning and adjusting, but it’s…

Uikit

2 min read

An easier way to create dates in Swift
An easier way to create dates in Swift
Uikit

2 min read


Jan 27, 2021

Introducing ScheduledNotificationsViewController

The best way to debug your local notifications — TL;DR? Check out our new Swift package, it helps you debug local notifications with ease and elegance. At my company we’ve had a few projects recently where we had to implement a sophisticated and sometimes quite complex local notifications system. It’s always tricky to get right, because there are always…

IOS App Development

3 min read

Introducing ScheduledNotificationsViewController
Introducing ScheduledNotificationsViewController
IOS App Development

3 min read


Jan 24, 2021

Crafting a beautiful, responsive UIButton in Swift

Most apps do it wrong. Learn how to stand out! — UIButton is one of the most loved and hated controls in UIKit. It’s central to pretty much any app out there, but it being one of the oldest UIKit classes, it sometimes feel quite awkward to use. In this article, we’ll explain how to make it not only look beautiful…

Button

6 min read

Making a beautiful, responsive UIButton in Swift
Making a beautiful, responsive UIButton in Swift
Button

6 min read


Dec 22, 2020

Keep private information out of your logs with Swift

One simple trick to avoid unintentionally leaking your users private info — So imagine you have an app with a fairly simple model struct like this: struct User { var identifier: String var handle: String var name: String var dateOfBirth: Date var city: String } And to help you debug problems in your code, you have a remote-logging system that will send…

IOS

4 min read

Keep private information out of your logs with Swift
Keep private information out of your logs with Swift
IOS

4 min read


Dec 7, 2020

No more [weak self], or the weird new future of delegation

Ready for some property wrappers? — It’s been almost three years since I wrote ”Do you often forget [weak self]? Here’s a solution”, which luckily resonated with many people. I’ll do a short recap, but if you want a deeper understanding of the topic you can go ahead and read that article first. In short, the…

Swift

5 min read

No more [weak self], or the weird new future of delegation
No more [weak self], or the weird new future of delegation
Swift

5 min read


Published in

AnySuggestion

·Jan 30, 2020

Why so many iOS developers feel so frustrated right now

Stuck between UIKit and SwiftUI, many of us have a hard time finding the energy to push forward “I switched one of my side projects from SwiftUI to UIKit because that shit is not ready for prime time” Since SwiftUI was announced last summer, I talked to many, many of…

Uikit

2 min read

Why so many iOS developers feel so frustrated right now
Why so many iOS developers feel so frustrated right now
Uikit

2 min read

Oleg Dreyman

Oleg Dreyman

836 Followers

iOS development know-it-all. Talk to me about Swift, coffee, photography & motorsports.

Following
  • Khoa Pham

    Khoa Pham

  • Maxim Zaks

    Maxim Zaks

  • AmberChiu.dev

    AmberChiu.dev

  • Ajith Renjala

    Ajith Renjala

  • Cameron Jackson

    Cameron Jackson

See all (66)

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams