Skip to main content

Posts

Showing posts from October, 2020

Add a Scene Delegate to your existing project with Storyboard in Swift

To add a scene delegate, first, create a new Swift file that you’ll call "SceneDelegate" containing a subclass of UIResponder, just like the AppDelegate, and that conforms to UIWindowSceneDelegate.  As your app might supports other versions than iOS 13, make this class only available for iOS 13. This is what you should have : If you are working a project that is storyboard based, please set storyboard  initial view controller SceneDelegate.swift import UIKit @available ( iOS 13.0 , *) class SceneDelegate : UIResponder , UIWindowSceneDelegate {     var window : UIWindow ?     func scene ( _ scene: UIScene , willConnectTo session: UISceneSession , options connectionOptions: UIScene . ConnectionOptions ) {                  let storyboard = UIStoryboard (name: "Main" , bundle: nil )         let initialViewController = storyboard. instantiateViewController (withIdentifier: "ViewController" )         let mainNavigationController = UINavigationControlle

Deep Linking - What Allow User Deep Linking

  What is Deep Linking? (The Best Answer!) https://buildfire.com/what-is-deep-linking/  - GitHub Here’s the deal: The ability to sync your  mobile app  with relevant content and make it more user-friendly and invaluable depends to a large degree on how you use deep links. It’s no news that apps are taking over the mobile experience.  Data by Flurry  shows that over 86% of the 3 hours people spend with their mobile phones daily are spent within their mobile apps. ComScore recently published a  supporting data  on that also. It’s predicted  that by 2021, enterprise app revenue will hit $430 billion even as companies are increasing their investments on mobile apps. There are a bunch of  reasons develop a mobile app for your business  if you don’t already have, and to optimize it for best conversion. However, unlike websites where you can easily link to your products within your web page or from other websites — it wasn’t possible for mobile apps until deep linking was introduced into the

Create Graphs & Charts in App with Swift With Charts cocoapods

Charts 3.6.0 1. CocoaPods Install Add pod 'Charts' in your podfile pod 'Charts' Then Pod Install With Terminal. Then  1. if you want to used Bar Chart in your project then Start. import Charts import UIKit     class ViewController: UIViewController, ChartViewDelegate {          var barChart = BarChartView()          override func viewDidLoad(){     super.viewDidLoad()     barChart .delegate = self     }            override func  viewDidLayoutSubviews(){     super.viewDidLayoutSubviews()     barChart.frame = CGRect(x: 0, y: 0, width: self.view,frame.size.width , hieght: self.view,frame.size.width)     barChart.center = view.center     view.addSubview(barChart)          var entries = [BarChartDataEntry]()     for x in 0..<10{         entries.append(BarChartDataEntry(x: Double(x), y: Double(x)))     }     let set = BarChartDataSet(entries)     set.colors = ChartColorTemplets.joyful()      let data = BarChartData(dataSet: set)     barChart.data = data     } } 2. if you