This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // VideoUltilities.swift | |
| // | |
| // Created by Le Ngoc Giang on 4/13/16. | |
| // Copyright © 2016 gianglengoc. All rights reserved. | |
| // | |
| import Foundation | |
| import AVFoundation | |
| import AssetsLibrary |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // VideoHelper.swift | |
| // | |
| // Created by Giang Le Ngoc on 2/5/20. | |
| // Copyright © 2020 Giang Le Ngoc. All rights reserved. | |
| // | |
| import Foundation | |
| import AVFoundation | |
| import UIKit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extension UIView { | |
| // MARK: - Safe anchors | |
| /// Contains view's top anchor depending to iOS version. | |
| var safeTopAnchor: NSLayoutYAxisAnchor { | |
| if #available(iOS 11.0, *) { | |
| return self.safeAreaLayoutGuide.topAnchor | |
| } else { | |
| return self.topAnchor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| test | |
| wewe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //http://www.innofied.com/implementing-image-masking-in-ios/ | |
| - (UIImage*) maskImage:(UIImage *) image withMask:(UIImage *) mask | |
| { | |
| CGImageRef imageReference = image.CGImage; | |
| CGImageRef maskReference = mask.CGImage; | |
| CGImageRef imageMask = CGImageMaskCreate(CGImageGetWidth(maskReference), | |
| CGImageGetHeight(maskReference), | |
| CGImageGetBitsPerComponent(maskReference), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using UnityEditor; | |
| using UnityEditor.Callbacks; | |
| using UnityEditor.iOS.Xcode; | |
| using System.IO; | |
| using System.Collections.Generic; | |
| public class PostBuildProcess : MonoBehaviour | |
| { | |
| internal static void CopyAndReplaceDirectory(string srcPath, string dstPath) |