SaleAssist for Developers
HomeDashboardAPI DocsBook A Demo
  • 👋Welcome
  • Introduction
  • Onboarding Steps
  • Admin Account Creation
  • Getting Started
  • Features Overview
    • Live Video Calling
      • Outbound Calls
        • Schedule Video Meets
        • Instant Video Meets
      • Inbound Calls
        • How to use ?
        • Integration
        • Desktop Call Management
    • Live Stream Selling
      • How to go Live?
      • Get RTMP and Stream Key from social channels.
    • Shoppable Videos Tiles
      • How to use?
      • Integration
    • Strike
      • AI Videos
    • Co-Browsing
  • Integration Guide
    • Mobile SDK integration
      • Cobrowse - Flutter SDK
      • React Native SDK
      • IOS SDK
      • Android SDK
      • How to delete my account?
      • Cobrowse - Android SDK
      • Cobrowse - IOS SDK
      • Identify your devices for Cobrowse
      • Use 6-digit codes
      • Redact sensitive data
      • Start and Stop Cobrowsing
      • Listening for events
    • User Experience
    • Agent Mapping
    • Nudges
    • Agent Feedback
    • AI Chat (Add Context)
    • API Integration
    • Webhook Integration
    • FAQ & Troubleshooting
    • Lead Management
    • Task Management
    • SaleAssist Whatsapp Feature
    • Sales/Conversion Tracking - Widget
    • Sales/Conversion Tracking - Video Tiles
    • Integrate meetings lite dashboard
  • Assets Managment
    • Media
    • Products
    • Orders
  • Organization Settings
    • Profile
    • Organization
    • Users & Roles
    • SMTP Integration
    • Custom Domain
    • Notification Manager
  • Addons
    • Transcription & Summarization
    • Video QR Codes
    • Video Emails
    • Live Chat
    • Outbound Phone Calling
    • Book In-store appointment
    • Schedule Call
    • Shoppable Video Links
      • How to use?
      • Integration
    • Video FAQs
      • How to use?
      • Integration
    • WhatsApp Onboarding steps
  • Analytics
    • Widget Insights
    • Video tiles insights
    • Reporting
    • SaleAssist Mobile Application
    • How to manage calls on Mobile Application
    • Admin Controls
  • Troubleshooting
    • Troubleshoot Video Call Permissions
  • Release Logs
    • v24.11.24
    • v24.11.30
    • v24.12.10
    • v25.01.10
    • v25.01.18
    • v25.01.29
    • v25.02.05
    • v25.02.05
Powered by GitBook
On this page

Was this helpful?

  1. Integration Guide
  2. Mobile SDK integration

IOS SDK

This document assumes that you understand the basic terms of IOS app development

Step 1: Create a UIButton for the floating button

  let fabButton: UIButton = {
            let button = UIButton()
            button.setImage(UIImage(systemName: "plus.circle.fill"), for: .normal)
            button.tintColor = .white
            button.backgroundColor = .systemBlue
            button.layer.cornerRadius = 28 // Adjust the size as needed
            button.layer.shadowColor = UIColor.black.cgColor
            button.layer.shadowOffset = CGSize(width: 0, height: 3)
            button.layer.shadowRadius = 3
            button.layer.shadowOpacity = 0.7
            button.translatesAutoresizingMaskIntoConstraints = false
            return button
        }()

Step 2: Add the floating button to the view hierarchy and the FAB to the view controller's view

  override func viewDidLoad() {
        super.viewDidLoad()
        self.navigationController?.setNavigationBarHidden(false, animated: false)
        let myURL = URL(string:"https://shorts-stg.saleassist.ai/source/e7a1dac1-56d1-445c-b1e3-bd6a487cda6b/")
        let myRequest = URLRequest(url: myURL!)
        webView.load(myRequest)
        
        // Add the floating button to the view hierarchy
        // Add the FAB to the view controller's view
                view.addSubview(fabButton)
                // Configure FAB constraints to position it at the bottom-right corner
                fabButton.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor, constant: -16).isActive = true
                fabButton.trailingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.trailingAnchor, constant: -16).isActive = true
                fabButton.widthAnchor.constraint(equalToConstant: 56).isActive = true
                fabButton.heightAnchor.constraint(equalTo: 
                fabButton.widthAnchor).isActive = true
                // Add a tap action to the FAB
                fabButton.addTarget(self, action: #selector(fabTapped), for: .touchUpInside)
 
    }

    @objc func fabTapped() {
        
        let  newViewController:UIViewController = (self.storyboard?.instantiateViewController(withIdentifier:  "NewViewController") as? NewViewController)!
        self.navigationController?.pushViewController(newViewController, animated: true)
        
        }
PreviousReact Native SDKNextAndroid SDK

Last updated 3 months ago

Was this helpful?