Posts from Swift

How to show math symbols and equations in SwiftUI – LaTeX

By Saruque Ahamed Mollick

In this tutorial, I will let you know how easily we can show math symbols in SwiftUI. Showing simple mathematical symbols in SwiftUI is not a big deal. Simple math symbols We can d.... Read More

Format dates inside text views in SwiftUI

By Samim

In this tutorial, I will show how you can format dates inside text views in SwiftUI. In SwiftUI, we can make our app look more appealing by formatting dates in text views. There ar.... Read More

Detect tap and double-tap gestures in SwiftUI

By Samim

In this tutorial, we will see how to detect tap and double-tap gestures in SwiftUI. We can use onTapGesture modifier to handle taps on Views. We can attach tap actions to any view .... Read More

Prevent the TextField from moving up with the keyboard in SwiftUI

By Samim

In this tutorial, we will see how to prevent the TextField from moving up with the keyboard in SwiftUI. We can use the ignoresSafeArea() modifier to prevent the TextField from movi.... Read More

@ObservedObject and Friends in SwiftUI

By Samim

In this tutorial, we will know about @ObservedObject and friends in SwiftUI. In SwiftUI, the @ObservedObject is a property wrapper for observing changes to objects according to the.... Read More

Find last Saturday of a month in Swift

By Samim

In this tutorial, we will see how to find the last Saturday of a month in Swift, that means I will print the date of the last Saturday. First of all, to get any day of the month we.... Read More

Create a custom segmented control in SwiftUI

By Samim

In this tutorial, we will see how to create a custom segment control in SwiftUI. A segment control is like a row of buttons or tabs that lets us pick from different options. We hav.... Read More

Create a share sheet in SwiftUI

By Samim

In this tutorial, we will see how to create a share sheet in SwiftUI. The share sheet is like a menu that pops up on our phone or computer when we want to share something. Suppose .... Read More