Though I use Python here, the flow should generally be the same across all languages and APIs. You don’t have to be a Python or flask expert to understand this post as it’s more about the OAuth2 lifecycle with Google APIs but, I recommend having the docs open on flask and Python to understand someContinue reading “How to authorize requests to Google Calendar API”
Author Archives: Paul Young-Suk Lee
Toggle AppStorage values in subviews in SwiftUI (iOS14+, Xcode13+)
Redefine the AppStorage in subviews with UserDefaults and toggle the value directly in subviews to have it reflected in parent views.
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.
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.
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.
How to implement pagination in SwiftUI
Use TabView alongside PageTabViewStyle 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.
How to deactivate (disable) buttons in SwiftUI
Use the .disabled modifier on views to deactivate any elements with a boolean value set to true.
How to detect tap gestures in SwiftUI
Use the handy onTapGesture method to recognize taps on views.
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.