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
| // CalculatorView.swift | |
| // as seen in http://nshipster.com/ibinspectable-ibdesignable/ | |
| // | |
| // (c) 2015 Nate Cook, licensed under the MIT license | |
| /// The alignment for drawing an String inside a bounding rectangle. | |
| enum NCStringAlignment { | |
| case LeftTop | |
| case CenterTop | |
| case RightTop |
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
| /** | |
| * ================== angular-ios9-uiwebview.patch.js v1.1.1 ================== | |
| * | |
| * This patch works around iOS9 UIWebView regression that causes infinite digest | |
| * errors in Angular. | |
| * | |
| * The patch can be applied to Angular 1.2.0 – 1.4.5. Newer versions of Angular | |
| * have the workaround baked in. | |
| * | |
| * To apply this patch load/bundle this file with your application and add a |
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
| function transformOrigin(matrix, origin) { | |
| const { x, y, z } = origin; | |
| const translate = MatrixMath.createIdentityMatrix(); | |
| MatrixMath.reuseTranslate3dCommand(translate, x, y, z); | |
| MatrixMath.multiplyInto(matrix, translate, matrix); | |
| const untranslate = MatrixMath.createIdentityMatrix(); | |
| MatrixMath.reuseTranslate3dCommand(untranslate, -x, -y, -z); | |
| MatrixMath.multiplyInto(matrix, matrix, untranslate); |
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
| struct Colors { | |
| let primary: Color | |
| } | |
| struct Fonts { | |
| let body: Font | |
| } | |
| class Theme: ObservableObject { | |
| let color: Colors |