This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| // env -i swift Application/Acknowledgements.swift > $CODESIGNING_FOLDER_PATH/Settings.bundle/Acknowledgements.plist | |
| import Foundation | |
| let fileManager = FileManager() | |
| let folders = try! fileManager.contentsOfDirectory(atPath: fileManager.currentDirectoryPath).sorted() | |
| var specifiers = [[ "Type" : "PSGroupSpecifier", "Title" : "Open Source", "FooterText" : "This application uses the following third party libraries:" ]] | |
| folders.forEach { folder in | |
| if let path = [ "LICENSE.md", "LICENSE", "COPYING" ].lazy.map({ "\(folder)/\($0)" }).first(where: { fileManager.fileExists(atPath: $0) }) { | |
| var license = (try! String(contentsOfFile: path, encoding: .utf8).replacingOccurrences(of: "(c)", with: "©")) |
| #import <UIKit/UIKit.h> | |
| @interface UIView (SMFrameAdditions) | |
| @property (nonatomic, assign) CGPoint $origin; | |
| @property (nonatomic, assign) CGSize $size; | |
| @property (nonatomic, assign) CGFloat $x, $y, $width, $height; // normal rect properties | |
| @property (nonatomic, assign) CGFloat $left, $top, $right, $bottom; // these will stretch the rect | |
| @end |