Tag: ios
Codable in Swift
Best Tutorial i Found for Codable: Coable is for converting JSON data to object (decodable) and object into JSON format (encodable) struct Loan: Codable { … Read more “Codable in Swift”
How set environment in iOS?
using config file https://blog.kiprosh.com/environment-setup-to-manage-different-app-name-icon-and-endpoint-using-xcode-configurations-in-ios-swift-language/ – Best one https://www.freecodecamp.org/news/managing-different-environments-and-configurations-for-ios-projects-7970327dd9c9/ using multiple target View at Medium.com https://www.appitventures.com/blog/setting-up-xcode-targets-how-to-create-multiple-ios-builds-with-different-api-environments
Display time as “Time Ago” in Swift
create Date extension like Date+Extension.swift and use it like If you have date in string convert that to Date using bellow code String to Date Date to… Read more “Display time as “Time Ago” in Swift”
LocalNotification with Time Schedule in Swift
use this AppDelegate.swift code
Get Push-notification in simulator iOS
Xcode 11.4 onwards Testing push notifications in the iOS simulator make it a lot easier to add support for remote notifications. Required – Xcode 11.4 + Step… Read more “Get Push-notification in simulator iOS”
Use userdeafult in iOS project in better way
Method 1: You could declare a computed property for getting/setting the value from the user defaults Create Utility.swift class and you can set value anywhere ex. userDeviceToken… Read more “Use userdeafult in iOS project in better way”
Best Resources for Firebase in iOS Swift
For CRUD operations “https://www.simplifiedios.net/firebase-realtime-database-tutorial/“ For Firebase Login and Sign Up “https://www.appcoda.com/firebase-login-signup/“