Skip to content

Paul Young-Suk Lee

SWE @lyft. Currently working on data infrastructure

  • EspaƱol
  • English

Author Archives: Paul Young-Suk Lee

How to create a capsule button with text in SwiftUI (Xcode 13.1, iOS 14+, Swift5)

Use the .overlay with a view and the built-in Capsule shape to create a capsule button with text in SwiftUI.

Posted byPaul Young-Suk LeeNovember 10, 2021December 16, 2021Posted inenglish, ios, swiftui, UncategorizedLeave a comment on How to create a capsule button with text in SwiftUI (Xcode 13.1, iOS 14+, Swift5)

How to detect first time app launch in SwiftUI

You can use @AppStorage in SwiftUI which wraps over UserDefaults to detect whether a user has been onboarded onto your app or not.

Posted byPaul Young-Suk LeeNovember 9, 2021December 16, 2021Posted inenglish, ios, swiftui, UncategorizedLeave a comment on How to detect first time app launch in SwiftUI

How to indicate page index on pagination with TabView in SwiftUI

You can use indexViewStyle and set the display to always to show to users which page they are on within TabView.

Posted byPaul Young-Suk LeeOctober 28, 2021December 16, 2021Posted inenglish, ios, swiftui, UncategorizedLeave a comment on How to indicate page index on pagination with TabView in SwiftUI

How to implement pagination in SwiftUI

Use TabView alongside PageTabViewStyle to implement pagination in SwiftUI.

Posted byPaul Young-Suk LeeOctober 27, 2021December 16, 2021Posted inenglish, ios, swiftui, UncategorizedLeave a comment on How to implement pagination in SwiftUI

How to drag views around with DragGesture

You can use a combination of absolute positioning and DragGesture to create a view that can be dragged around by users.

Posted byPaul Young-Suk LeeOctober 26, 2021December 16, 2021Posted inenglish, ios, swiftui, UncategorizedLeave a comment on How to drag views around with DragGesture

How to deactivate (disable) buttons in SwiftUI

Use the .disabled modifier on views to deactivate any elements with a boolean value set to true.

Posted byPaul Young-Suk LeeOctober 25, 2021December 16, 2021Posted inenglish, ios, swiftui, UncategorizedLeave a comment on How to deactivate (disable) buttons in SwiftUI

How to detect tap gestures in SwiftUI

Use the handy onTapGesture method to recognize taps on views.

Posted byPaul Young-Suk LeeOctober 22, 2021December 16, 2021Posted inenglish, ios, swiftui, UncategorizedLeave a comment on How to detect tap gestures in SwiftUI

How to detect a dragging motion with DragGesture in SwiftUI

Use the DragGesture struct within a .gesture modifier to detect any type of dragging motion alongside the methods of .onChanged and .onEnded with the DragGesture.

Posted byPaul Young-Suk LeeOctober 22, 2021December 16, 2021Posted inenglish, ios, swiftui, UncategorizedLeave a comment on How to detect a dragging motion with DragGesture in SwiftUI

How to make views disappear in SwiftUI with DispatchQueue

You can make views disappear after some delay by utilizing the DispatchQueue to schedule async work after some amount of time which toggles a boolean value to make a view appear or disappear.

Posted byPaul Young-Suk LeeOctober 21, 2021December 16, 2021Posted inenglish, ios, swiftuiLeave a comment on How to make views disappear in SwiftUI with DispatchQueue

How to set the size of SF Symbols in SwiftUI?

Because SF Symbols are similar to fonts you can set the size directly with the .font modifier and passing in a size.

Posted byPaul Young-Suk LeeOctober 20, 2021December 16, 2021Posted inenglish, ios, swiftui, UncategorizedLeave a comment on How to set the size of SF Symbols in SwiftUI?

Posts navigation

Newer posts 1 2 3 Older posts
Paul Young-Suk Lee, Blog at WordPress.com.
  • Follow Following
    • Paul Young-Suk Lee
    • Already have a WordPress.com account? Log in now.
    • Paul Young-Suk Lee
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar