Sep 16How to implement UICollectionView tutorialUITableView is used to display lists of data, but UICollectionView is used to present complex and customized data. According to the requirements of your app, you may create a simple scrolling grid or an advanced custom layout using UICollectionViewController This article will teach you the fundamental building pieces for displaying…Uikit3 min readUikit3 min read
Aug 28How to use Completion Handler in SwiftTo know when a network request has been successfully completed while retrieving data from the web, completion handlers must be created. When carrying out lengthy operations, it comes in helpful. You must learn how to hit an API and parse json data before reading any further in this article. Syntax func…Networking2 min readNetworking2 min read
Aug 25Dealing with App Transport Security in XcodeWhat is App transport security(ATS)? App transport security improves user security and privacy by making secure connections to network. When we try to make network requests, a console error has been printed. App Transport Security has blocked a cleartext HTTP connection since it is insecure. …Swift Programming2 min readSwift Programming2 min read
Aug 10Getting Started with SwiftDataThere are lot of frameworks introduces on WWDC23. SwiftData is one of them. SwiftData designs to persist data using Swift code. You can query and filter data and it’s easily integrate with SwiftUI. It’s very easy to use with widgets and CloudKit. …Wwdc233 min readWwdc233 min read
Published inLevel Up Coding·Apr 25How to write concurrent code in SwiftIn a previous article, we learned how to request data from the web, handle JSON data, and make custom models using Codable. We also learned how to write a completion handler while making network requests. You can also learn how to use NSCache to cache or store temporary data and…Programming3 min readProgramming3 min read
Apr 4How to cache data in Swift using NSCacheWhen we develop apps for iOS, we need to perform heavy tasks such as loading images from the network, loading files, etc. It’s a very time-consuming task, which affects the performance of the application. Therefore, we cache or store temporary data for them and reuse them appropriately. Swift uses NSCache…IOS App Development2 min readIOS App Development2 min read
Mar 30How to use Property observers in SwiftIt’s a common pattern or technique in various programming languages when we want to perform some action when a value is changed. Property observers are used in Swift when we want to perform an action when the value of a property changes. …Swift Programming2 min readSwift Programming2 min read
Published inLevel Up Coding·Mar 22How to hit an API and parse json dataIn the world of apps, practically all apps use web services to get data from the internet. It enables user to send and receive data from the web. Swift uses URLSession to fetch data from the web and uses JSONDecoder to decode it. …Jsondecoder4 min readJsondecoder4 min read
Mar 7How to use enum in SwiftEnumerations defines a type for group of related values. Enumerations (enum) enables you to write code in a type safe way. Enum is very useful while defining common type of values. You don’t have to provide value while defining enum. Syntax You can declare enumerations with enum keyword. enum SomeEnumerations {…Swift2 min readSwift2 min read
Published inLevel Up Coding·Aug 5, 2022How to integrate AdMob to an iOS appYou successfully created an app and uploaded it to the app store. You want to finally reap the rewards of your work. You have a variety of ways to monetize your app, including the premium model and freemium. In the premium model, you can generate income through in-app purchases or…IOS4 min readIOS4 min read