Open in app

Sign In

Write

Sign In

Gabriel Theodoropoulos
Gabriel Theodoropoulos

167 Followers

Home

About

May 15

Presenting Content In Pages Using SwiftUI

Displaying paged content in SwiftUI is really a breeze — One of the tasks iOS developers often come to perform is to present paged content. That usually happens in on-boarding screens, as well as other parts in apps where users should scroll left or right to see subsequent content. Doing so in SwiftUI is surprisingly easy, especially when comparing to…

Ios Programming

5 min read

Presenting Content In Pages Using SwiftUI
Presenting Content In Pages Using SwiftUI
Ios Programming

5 min read


Apr 7

Presenting Expandable Text Fields In SwiftUI

No more text views, no more tricky workarounds, everything works out of the box now. — Traditionally, two kinds of text input controls exist in iOS and macOS; text fields and text views. The difference between them is that a text field accepts a single line of text, while a text view provides multi-line text editing. Although in macOS it’s possible -but not so common- to…

Mobile App Development

6 min read

Presenting Expandable Text Fields In SwiftUI
Presenting Expandable Text Fields In SwiftUI
Mobile App Development

6 min read


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

Gabriel Theodoropoulos

Gabriel Theodoropoulos

167 Followers

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

Following
  • Kenneth Watkins

    Kenneth Watkins

  • Lance Cummings PhD

    Lance Cummings PhD

  • Sonja Glucksberg

    Sonja Glucksberg

  • Alessandor Earnest

    Alessandor Earnest

  • Lisa Sealey

    Lisa Sealey

See all (39)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech