Open in app

Sign In

Write

Sign In

Gabriel Theodoropoulos
Gabriel Theodoropoulos

160 Followers

Home

About

Feb 17

Creating Image Thumbnails Programmatically In iOS

Get a recipe that generates image thumbnails easily. — Working with images in iOS projects is not rare. There are various operations one could perform to an image, and sometimes such an operation is to create a thumbnail, meaning a smaller version, of the original image. At first sight it might look like a complicated process involving a series…

Swift

9 min read

Creating Image Thumbnails Programmatically In iOS
Creating Image Thumbnails Programmatically In iOS
Swift

9 min read


Nov 25, 2022

The onHover View Modifier In SwiftUI

Detecting hover events in SwiftUI couldn’t be easier. — View modifiers exist in SwiftUI in order to help us change the appearance and behavior of views easily. In the long list of them some work with particular views only and some other are intended to be used with any view. …

Swiftui

3 min read

The onHover View Modifier In SwiftUI
The onHover View Modifier In SwiftUI
Swiftui

3 min read


Published in Better Programming

·Nov 11, 2022

Pop-Up And Pull-Down Buttons in AppKit

Create that special kind of button on macOS programmatically without hassle — AppKit framework exposes a variety of buttons to layout when implementing macOS apps, so we can provide users with the most appropriate controls to use when interacting with the app’s interface. Even though NSButton is the basic class to create buttons, there is a subclass of it named NSPopupButton, which…

Macos Programming

8 min read

Pop Up And Pull Down Buttons in AppKit
Pop Up And Pull Down Buttons in AppKit
Macos Programming

8 min read


Oct 14, 2022

Presenting Sheets Of Various Heights In SwiftUI

A new view modifier makes the job easy. — Back in time I had written a post about sheets in SwiftUI, discussing how to present and work with them. Although the content of that tutorial remains valid, new interesting additions to sheets were introduced in WWDC 2022 that definitely deserve a new post to talk about them. Given that…

Mobile Programming

7 min read

Presenting Sheets Of Various Heights In SwiftUI
Presenting Sheets Of Various Heights In SwiftUI
Mobile Programming

7 min read


Jul 21, 2022

First Experience With Transferable Implementing Drag And Drop In SwiftUI

A game changer protocol in Swift — In WWDC 2022 and among other interesting announcements, Apple presented a new protocol in Swift, named Transferable. In a nutshell, Transferable makes it really easy and absolutely straightforward to copy data either among different spots within the same app, or even different apps. …

App Development

11 min read

First Experience With Transferable Implementing Drag And Drop In SwiftUI
First Experience With Transferable Implementing Drag And Drop In SwiftUI
App Development

11 min read


Jul 5, 2022

The Facade Design Pattern In Swift

A quite common structural design pattern presented through a practical example. — The facade (spelled façade) design pattern is a pretty common pattern that’s usually easy to adopt. Having taken its name from the front side in architecture and buildings that hide their internals, chances are that you have already put it in motion, even without realizing it. What the facade pattern…

Software Development

10 min read

The Facade Design Pattern In Swift
The Facade Design Pattern In Swift
Software Development

10 min read


Jun 27, 2022

Testing Throwing Methods In Swift Actors

A few guidelines for smooth testing of concurrent code. — In an ideal world, testing should be part of the development process of an app. The truth, however, is that testing is not always in the mix, and that’s mostly because it requires additional time; an asset that’s often missing from developers, especially when it’s necessary to meet deadlines. …

Swift

6 min read

Testing Throwing Methods In Swift Actors
Testing Throwing Methods In Swift Actors
Swift

6 min read


May 27, 2022

Does SwiftUI View Not Compile? Time To Start Making It Lighter

It’s necessary to be resourceful in unexpected situations when programming. — Well, this post is about a specific issue that I recently met in SwiftUI and I would like to share here. Comparing to UIKit, SwiftUI is still an infant, yet it’s not that new so we still have many dark points about it. …

Swiftui

8 min read

Does SwiftUI View Not Compile? Time To Start Making It Lighter
Does SwiftUI View Not Compile? Time To Start Making It Lighter
Swiftui

8 min read


May 20, 2022

Iterating Through Enum Cases With CaseIterable In Swift

Treat enum cases as if they were collections with a single move. — Enums are a vital programming tool in Swift, as they allow to define types that enumerate related values and therefore write code that’s safe and specific. As we all know, enum cases can be either simple, or with associated values that store additional data tied to them. Regardless, it’s often…

Swift

3 min read

Iterating Through Enum Cases With CaseIterable In Swift
Iterating Through Enum Cases With CaseIterable In Swift
Swift

3 min read


Apr 29, 2022

In-Out Parameters In Swift Functions

It’s not hard to mutate original provided arguments in functions, it’s just risky sometimes! — When coding in Swift, we usually don’t need to mutate the arguments that we provide to functions, and then make these changes visible back to the call site. We mostly use them as inputs to calculations or other expressions, and if necessary, we return some value from functions. …

Swift

4 min read

In-Out Parameters In Swift Functions
In-Out Parameters In Swift Functions
Swift

4 min read

Gabriel Theodoropoulos

Gabriel Theodoropoulos

160 Followers

An iOS & macOS app maker writing code in Swift. Author of countless programming tutorials. Content creator. https://serialcoder.dev

Following
  • Lisa Sealey

    Lisa Sealey

  • Matteo Cervelli | People Gardener 🧑‍🌾

    Matteo Cervelli | People Gardener 🧑‍🌾

  • Sonja Glucksberg

    Sonja Glucksberg

  • Lance Cummings PhD

    Lance Cummings PhD

  • Sébastien REMY

    Sébastien REMY

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech