Passing closure as an argument while initializing an object in Swift and SwiftUIPassing closure as an argument while initializing an object in Swift and SwiftUI6 min read·conglesolutionx.hashnode.devOct 26, 2023
Previewing UIViews and UIViewControllers With SwiftUI PreviewSteps on how to do it 1. Create a new Cocoa Touch Class File template as a subclass of UIViewController using Swift language. Name that file as BaseUIViewController 2. Replace the boilerplate code with this example code snippet import UIKit import Sw...3 min read·conglesolutionx.hashnode.devOct 10, 2023
Objective-oriented Programming Principles in SwiftObject-oriented programming has four main principles: Encapsulation, Inheritance, abstraction, and polymorphism. Let's see how these four critical principles of Object-Oriented Programming (OOP) apply in Swift. 1. Encapsulation Encapsulation is an OO...2 min read·conglesolutionx.hashnode.devOct 10, 2023
Adding Swift Font to your SwiftUI appAdding custom fonts to your Xcode project involves adding font files to your project and declaring them in your app's Info.plist. The following steps detail the procedure: Add Font Files to Your Project Drag and drop your .ttf or .otf font files int...4 min read·conglesolutionx.hashnode.devOct 10, 2023