J-Naishj-naish.hashnode.dev·Apr 12, 2024What is the role of "$" in Swift?Today, I will explain what "$" is both in SwiftUI and pure Swift. When it comes to SwiftUI We can pass a variable by reference into a function so that the variable is modified by the function using an "&" prefix. Here is an example: func SwapInt(_ a:...1 likeSwiftUIAdd a thoughtful commentNo comments yetBe the first to start the conversation.