Pedro Rojasswiftandtips.com·Apr 18, 2024Is MVVM Necessary for Developing Apps with SwiftUI?Hi, everyone. In this article, I want to share my opinion about the question above. Before starting, I would like to clarify that my goal is to show a different perspective from what most people think. No perfect pattern or architecture magically fit...Discuss·1.4K readsModel-View
J-Naishj-naish.hashnode.dev·Apr 14, 2024What is "@Binding" in SwiftUI?@Binding is an almost essential tool for developing apps with SwiftUI. Today, I will show what the @Binding is and how to use it. TL; DR @Binding is a property wrapper in SwiftUI that shares states from views. In many cases, it is used to pass a stat...Discuss·1 likeSwift
Mason Cochranmasondevelops.hashnode.dev·Apr 13, 2024The New York Times API Integration: A Game-Changer for My AppHello everyone! I hope your Spring allergies aren't keeping you inside. If they are, I'm sure you can find some time to read the news, especially with the latest feature I am building into LegisLink. Why "The New York Times"? The New York Times was t...DiscussSwift
J-Naishj-naish.hashnode.dev·Apr 13, 2024What is "self", "Self", and ".self" in Swift?The "self" keyword is a way to refer to an instance of a type (struct, class, and enum) within its own methods or initializers, similar to "self" in Python. However, we also see the uppercase "Self" and with the "." prefix pattern ".self". What is th...Discuss·1 likeSwift
Patrickblog.ptrkstr.com·Apr 13, 2024Localize a SwiftUI appApp localization is crucial when tailoring an app to different regions and locales. Localization boosts user engagement, increases accessibility, and can significantly expand an app’s market reach. I had concerns that localizing Clean Share (app for ...Discuss·1 like·395 readsiOS
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:...Discuss·1 likeSwiftUI
J-Naishj-naish.hashnode.dev·Apr 11, 2024What is "some" in Swift?Every time we create a Swift project using SwiftUI, we can see: import SwiftUI @main struct LandmarksApp: App { var body: some Scene { WindowGroup { ContentView() } } } import SwiftUI struct ContentView: View ...Discuss·1 likeSwift
J-Naishj-naish.hashnode.dev·Apr 10, 2024What is "@State" in SwiftUI?I am learning Swift and had no idea of "@State" at the first site.Today, I explain what "@State" is and how it works that I have learned. TL;DR "@State" is a property wrapper of SwiftUI. The properties with it will be observed by SwiftUI, and the vie...DiscussSwift
Phạm Trung Huyhuypham85.hashnode.dev·Apr 8, 2024Publisher in CombineContinue with the Combine series, today we will discuss Publisher. Combine needs something that can model a data stream. This is the role of the Publisher protocol. If you haven’t read my article about Combine in general, let’s check it out: Introduc...Discuss·8 likesCombineiOS
Jay WilsonProheyjaycodes.com·Apr 5, 2024coffee_ Rebuild: Writing Roasters to a user's Firestore Collectionhttps://www.youtube.com/watch?v=LcXB0MsRvNg This live stream I worked on PR #97 which gives the user the ability to add a Roaster to their private Firestore collection. I ran into an issue at first where the simulator couldn't run the app. Just repla...DiscussCoffee_ Developmentfirestore