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
| import UIKit | |
| import GifSwift | |
| class ViewController: UIViewController { | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| if let file = GifFile(path: Bundle.main.url(forResource: "cat", withExtension: "gif")!) { | |
| debugPrint("Image has size: \(file.size) and contains \(file.imagesCount) images") | |
| } |
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
| framework module GifSwift { | |
| umbrella header "GifSwift.h" | |
| explicit module CLibgif { | |
| private header "gif_lib.h" | |
| } | |
| export * | |
| } |
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
| import Foundation | |
| import GifSwift.CLibgif | |
| public class GifFile { | |
| private let path: URL | |
| private let fileHandlePtr: UnsafeMutablePointer<GifFileType> | |
| private var fileHandle: GifFileType { | |
| return self.fileHandlePtr.pointee |
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
| for i in `seq 1 200`; do echo $i && curl -s -H "PRIVATE-TOKEN: TOKEN" "https://gitlab.domain/api/v3/projects/\$i/keys" | jq .; done |