Files
Woka_Native_iOS/WOKA/Main/ShareApp.swift
Bilal 15681d2402 - made a custom captcha module, as per apple law child cannot directly share a link
- Added share functionality for kids
- improved timing for add to cart and remove cart, cart icon text update
- remove login from first app start, now when language is selected guest login api ill be called.
- added google ads to audiobooks and games
- added google ads to more section
- updated fm url
2024-09-20 19:04:23 +05:30

26 lines
632 B
Swift

//
// ShareApp.swift
// WOKA
//
// Created by Bilal on 20/09/2024.
//
import UIKit
class ShareApp{
static let shareInstance = ShareApp()
private init(){}
func share(vc : UIViewController){
if let name = URL(string: "https://apps.apple.com/in/app/woka/id6465305185"), !name.absoluteString.isEmpty {
let objectsToShare = [name]
let activityVC = UIActivityViewController(activityItems: objectsToShare, applicationActivities: nil)
vc.present(activityVC, animated: true, completion: nil)
} else {
// show alert for not available
}
}
}