Skip to main content
Quicko Tools can be easily integrated into your mobile app by loading the tool URL in a WebView. This approach is identical to using an iframe on web—simply load the tool URL and it renders seamlessly within your app.

Overview

The mobile integration uses a WebView to display Quicko Tools, providing a consistent experience across platforms with minimal setup.

No SDK Required

Simply use your platform’s native WebView component—no additional dependencies needed.

Consistent Experience

Tools render exactly as they would on web, ensuring feature parity across platforms.
Customize appearance using URL parameters, just like web integration.

Quick Start

Use WKWebView to load the tool URL:
import WebKit
import Foundation

class ToolViewController: UIViewController {
    private var webView: WKWebView!

    override func viewDidLoad() {
        super.viewDidLoad()
        
        webView = WKWebView(frame: view.bounds)
        webView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
        view.addSubview(webView)
        
        // Define theme configuration
        let theme: [String: Any] = [
            "mode": "dark",
            "seed": "#2962FF"
        ]
        
        // Convert theme to base64
        if let jsonData = try? JSONSerialization.data(withJSONObject: theme),
           let base64Theme = jsonData.base64EncodedString()
                .addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) {
            
            // Construct the tool URL with base64 encoded theme
            let toolUrl = "https://tools.quicko.com/calculators/hra?theme=\(base64Theme)"
            
            if let url = URL(string: toolUrl) {
                webView.load(URLRequest(url: url))
            }
        }
    }
}

URL Structure

The tool URL follows this pattern:
https://tools.quicko.com/{tool-path}?theme={base64-encoded-theme}
The theme parameter is a base64-encoded JSON object:
{
  "mode": "dark",
  "seed": "#2962FF"
}
PropertyTypeDescription
modeStringTheme mode: light or dark
seedStringSeed color (hex with #) for theme generation

View All Options

Learn about all available customization options and how they affect the generated theme.

Integration Steps

1

Get the Tool URL

Find the tool you want to integrate from the Tools Directory and note its URL path.
2

Create Theme Object

Define a theme object with mode (light/dark) and seed (hex color) properties.
3

Encode as Base64

Convert the theme JSON to a base64 string.
4

Load in WebView

Append the base64 theme to the URL and load it in your platform’s WebView component.

Best Practices

Match App Theme

Use your app’s primary color as the seed color for consistent branding.

Respect System Theme

Detect the user’s system theme preference and set the mode accordingly.

Handle Navigation

Consider implementing back button handling for WebView navigation.

Loading States

Show a loading indicator while the WebView content loads.

Next Steps

Browse Available Tools

Explore all tools available for your mobile app.