For an framework to be compatible with various devices it has to be compiled for them specifically, This script does those tasks in single shot.
- Select Target
import UIKit | |
import WebKit | |
class WorkaroundWebViewController: UIViewController, WKNavigationDelegate { | |
let request: URLRequest | |
private let websiteDataStore = WKWebsiteDataStore.default() | |
private var webView: WKWebView! | |
private var initialDummyNavigation: WKNavigation? | |
import Reachability | |
import CoreTelephony | |
enum NetworkType { | |
case unknown | |
case noConnection | |
case wifi | |
case wwan2g | |
case wwan3g | |
case wwan4g |
// MIT License | |
// Copyright (c) 2018 Boris Polania | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: |
// | |
// Created by はるふ on 2017/12/11. | |
// Copyright © 2017年 ha1f. All rights reserved. | |
// | |
import Foundation | |
import CoreImage | |
import AVFoundation | |
extension CIFilter { |
#import "MKOVideoMerge.h" | |
#import <AVFoundation/AVFoundation.h> | |
@implementation MKOVideoMerge | |
+ (void)mergeVideoFiles:(NSArray *)fileURLs | |
completion:(void(^)(NSURL *mergedVideoFile, NSError *error))completion { | |
NSLog(@"Start merging video files ..."); | |
// | |
// GIF2MP4.swift | |
// | |
// Created by PowHu Yang on 2020/4/24. | |
// Copyright © 2020 PowHu Yang. All rights reserved. | |
// | |
/* How to use | |
let data = try! Data(contentsOf: Bundle.main.url(forResource: "gif", withExtension: "gif")!) | |
let tempUrl = URL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent("temp.mp4") |
//: Playground - noun: a place where people can play | |
import UIKit | |
public protocol CIFilterChainable { | |
var cifilter: CIFilter? { get } | |
} | |
extension String : CIFilterChainable { | |
public var cifilter: CIFilter? { |
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com