Skip to content

Instantly share code, notes, and snippets.

View AitoApps's full-sized avatar
🏠
Working from home

Redoine Aito AitoApps

🏠
Working from home
View GitHub Profile
@AitoApps
AitoApps / InstaStories.swift
Created September 3, 2019 22:15 — forked from kunofellasleep/InstaStories.swift
Share on Instagram stories
import UIKit
class InstaStories: NSObject {
private let urlScheme = URL(string: "instagram-stories://share")!
enum optionsKey: String {
case StickerImage = "com.instagram.sharedSticker.stickerImage"
case bgImage = "com.instagram.sharedSticker.backgroundImage"
case bgVideo = "com.instagram.sharedSticker.backgroundVideo"
@AitoApps
AitoApps / .dart
Created August 17, 2019 09:38 — forked from azamsharp/.dart
import 'package:http/http.dart' as http;
import 'package:http/http.dart';
class Resource<T> {
final String url;
T Function(Response response) parse;
Resource({this.url,this.parse});
}
@AitoApps
AitoApps / InstagramActivity.swift
Created August 9, 2019 20:41 — forked from almassapargali/InstagramActivity.swift
UIActivity for Instagram image sharing
import Foundation
import UIKit
private let InstagramAppURL = URL(string: "instagram://app")!
class InstagramActivity: UIActivity, UIDocumentInteractionControllerDelegate {
override class var activityCategory: UIActivityCategory { return .share }
override var activityType: UIActivityType? { return UIActivityType("postToInstagram") }
override var activityTitle: String? { return "Instagram" }
override var activityImage: UIImage? { return #imageLiteral(resourceName: "instagram_activity") }