Tapslash

The Tapslash Developer Hub

Welcome to the Tapslash developer hub. Here you'll find comprehensive guides and documentation to help you start working with the SDK(s) as quickly as possible, as well as support if you get stuck slong the way. Let's jump right in!

Get Started    

Integrate iOS SDK

Initialize Tapslash SDK

Use the API Key and Secret Key from your Tapslash developer account to initialize the Tapslash SDK. Add this to the application:didFinishLaunchingWithOptions: method of AppDelegate.

func application(_ application: UIApplication, didFinishLaunchingWithOptions 
launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

    // Initialize Tapslash SDK
    Slash.sharedInstance(
        apiKey: API_KEY,
        secretKey: SECRET_KEY
        language: nil
    )

    return true
}

Initialize the Toolbar

The SLKSlashView is the main interface for the Tapslash toolbar. Initialize an SLKSlashView and add it as a subview of your conversation view controller. Passing in an inputField in the initializer allows custom views to replace the keyboard for certain services, like photos.

// Conversation View Controller
let slashView = SLKSlashView(inputField: self.messageTextView)

override func viewDidLoad() {
    super.viewDidLoad()
    
    self.slashView.delegate = self
    self.view.addSubview(self.slashView)
}

To attach the Tapslash toolbar to the top of the keyboard, set it as the inputAccessoryView of your input field.

self.messageTextView.inputAccessoryView = self.slashView

Integrate iOS SDK