Jan Codes
  • Home
  • About me

swiftui

A collection of 5 posts

Conditionally applying View Modifiers in SwiftUI
swift

Conditionally applying View Modifiers in SwiftUI

Oftentimes I get to a situation where I need to apply a View Modifier only if a certain condition is met. Achieving this - surprisingly - is not so easy in SwiftUI. Fortunately,

  • Jan Kaltoun
    Jan Kaltoun
1 min read
Custom modal dialog with SwiftUI
ios

Custom modal dialog with SwiftUI

While building a fully SwiftUI app I needed a fully customizable modal dialog that I could present things in with as little effort as possible. So I built it.SwiftUI is immensely powerful

  • Jan Kaltoun
    Jan Kaltoun
8 min read
Creating dashed border around View in SwiftUI
swift

Creating dashed border around View in SwiftUI

Creating borders around Views in SwiftUI is simple. But what if you wanted to create a stroked border? Let's see how to do that!

  • Jan Kaltoun
    Jan Kaltoun
1 min read
Creating a header by laying out from top in SwiftUI
swift

Creating a header by laying out from top in SwiftUI

This might sound silly but it took me a while to wrap my head around laying views out from top in SwiftUI. Here's how to do it if you're wondering too!

  • Jan Kaltoun
    Jan Kaltoun
1 min read
SwiftUI: Presenting a modal sheet
swift

SwiftUI: Presenting a modal sheet

SwiftUI is still very new and still in beta but it is already great and we can play with it! While writing my first SwiftUI app I needed to present a modal sheet.

  • Jan Kaltoun
    Jan Kaltoun
2 min read
Jan Codes © 2021
Latest Posts Ghost