- 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
26 lines
632 B
Swift
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
|
|
}
|
|
}
|
|
}
|