├── .gitignore ├── LICENSE ├── README.md ├── UIStrokeAnimatedLabel ├── UIStrokeAnimatedLabel │ ├── Info.plist │ ├── UIStrokeAnimatedLabel.h │ └── UIStrokeAnimatedLabel.swift └── UIStrokeAnimatedLabelFramework.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ └── contents.xcworkspacedata ├── UIStrokeAnimatedLabelDemo.xcodeproj ├── project.pbxproj └── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ └── DrawTextAnimationDemo.xccheckout ├── UIStrokeAnimatedLabelDemo ├── DrawTextAnimationDemo │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── DrawTextAnimationDemo.xcdatamodeld │ │ ├── .xccurrentversion │ │ └── DrawTextAnimationDemo.xcdatamodel │ │ │ └── contents │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Info.plist │ └── ViewController.swift └── DrawTextAnimationDemoTests │ └── Info.plist ├── demo.gif ├── ib-customization.png └── ib-setup.png /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xcuserstate 23 | 24 | ## Obj-C/Swift specific 25 | *.hmap 26 | *.ipa 27 | *.dSYM.zip 28 | *.dSYM 29 | 30 | ## Playgrounds 31 | timeline.xctimeline 32 | playground.xcworkspace 33 | 34 | # Swift Package Manager 35 | # 36 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 37 | # Packages/ 38 | .build/ 39 | 40 | # CocoaPods 41 | # 42 | # We recommend against adding the Pods directory to your .gitignore. However 43 | # you should judge for yourself, the pros and cons are mentioned at: 44 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 45 | # 46 | # Pods/ 47 | 48 | # Carthage 49 | # 50 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 51 | # Carthage/Checkouts 52 | 53 | Carthage/Build 54 | 55 | # fastlane 56 | # 57 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 58 | # screenshots whenever they are needed. 59 | # For more information about the recommended setup visit: 60 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 61 | 62 | fastlane/report.xml 63 | fastlane/Preview.html 64 | fastlane/screenshots 65 | fastlane/test_output 66 | 67 | .DS_Store 68 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Just contributors 4 | 5 | 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: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # UIStrokeAnimatedLabel (Swift) 2 | ### A UILabel subclass with stroke drawing animations, with customization options 3 | 4 | A `UIStrokeAnimatedLabel` is a `UILabel` that has a stroke animation when displayed. 5 | Animation duration, stroke width and spacing and easily customizable through Interface Builder or programatically. 6 | 7 | ![UIStrokeAnimatedLabel Demo](demo.gif) 8 | 9 | ## Installation 10 | 11 | Build and link the `UIStrokeAnimatedLabel` framework (`UIStrokeAnimatedLabel/UIStrokeAnimatedLabelFramework.xcodeproj`). 12 | 13 | Alternatively, copy `UIStrokeAnimatedLabel/UIStrokeAnimatedLabel/UIStrokeAnimatedLabel.swift` directly in your project. 14 | 15 | ## Usage and customization 16 | 17 | A `UIStrokeAnimatedLabel` can be created and customized through Interface Builder or programmatically. 18 | 19 | ### Interface Builder 20 | 21 | 1. Drag a `UILabel` into a view. 22 | 2. Set the label's class to `UIStrokeAnimatedLabel`. You might also need to set the Module name to `UIStrokeAnimatedLabelFramework` if using CocoaPods. 23 | 24 | ![UIStrokeAnimatedLabel Interface Builder Setup](ib-setup.png) 25 | 26 | Customize the label using the Attributes inspector. From there, animation duration and stroke color can be modified. 27 | 28 | ![UIStrokeAnimatedLabel Interface Builder Customization](ib-customization.png) 29 | 30 | ### Programmatically 31 | 32 | Create `IBOutlet`s or create the labels programatically. 33 | 34 | ``` 35 | @IBOutlet weak var swiftLabel: UIStrokeAnimatedLabel! 36 | @IBOutlet weak var rocksLabel: UIStrokeAnimatedLabel! 37 | 38 | override func viewDidLoad() { 39 | super.viewDidLoad() 40 | 41 | swiftLabel.animationDuration = 1.0 42 | rocksLabel.animationDuration = 2.0 43 | 44 | swiftLabel.strokeWidth = .relative(scale: 1.4) 45 | rocksLabel.strokeColor = .gray 46 | swiftLabel.characterSpacing = .absolute(value: 20.0) 47 | rocksLabel.wordSpacing = .relative(scale: 0.5) 48 | 49 | rocksLabel.animationEnabled = true 50 | 51 | rocksLabel.completionHandler = { 52 | print("Animation complete") 53 | } 54 | } 55 | 56 | ``` 57 | ## License 58 | MIT, see LICENSE for details. 59 | -------------------------------------------------------------------------------- /UIStrokeAnimatedLabel/UIStrokeAnimatedLabel/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /UIStrokeAnimatedLabel/UIStrokeAnimatedLabel/UIStrokeAnimatedLabel.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIStrokeAnimatedLabel.h 3 | // UIStrokeAnimatedLabel 4 | // 5 | // Created by Franklin Schrans on 1/22/17. 6 | // Copyright © 2017 Franklin Schrans. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for UIStrokeAnimatedLabel. 12 | FOUNDATION_EXPORT double UIStrokeAnimatedLabelVersionNumber; 13 | 14 | //! Project version string for UIStrokeAnimatedLabel. 15 | FOUNDATION_EXPORT const unsigned char UIStrokeAnimatedLabelVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /UIStrokeAnimatedLabel/UIStrokeAnimatedLabel/UIStrokeAnimatedLabel.swift: -------------------------------------------------------------------------------- 1 | // 2 | // StrokeAnimator2.swift 3 | // DrawTextAnimationDemo 4 | // 5 | // Created by Franklin Schrans on 1/21/17. 6 | // Copyright © 2017 Franklin Schrans. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | public class UIStrokeAnimatedLabel: UILabel { 12 | 13 | // MARK: Properties 14 | 15 | /// Duration of the stroke animation. 16 | @IBInspectable public var animationDuration: Double = 1.0 17 | 18 | /// Stroke animation enabled. 19 | @IBInspectable public var animationEnabled: Bool = true 20 | 21 | /// Color of the storke used to draw the label. 22 | @IBInspectable public lazy var strokeColor: UIColor = { 23 | return self.textColor 24 | }() 25 | 26 | /** 27 | Width of the stroke used to draw the label. 28 | Can be set absolutely or relatively to the `strokeWidthReferenceCharacter`'s width using the enum: 29 | 30 | ``` 31 | enum StrokeWidth { 32 | case absolute(value: CGFloat) 33 | case relative(scale: CGFloat) 34 | } 35 | 36 | ``` 37 | 38 | Default value is `.relative(scale: 0.2)`. 39 | */ 40 | public var strokeWidth: StrokeWidth = .relative(scale: 0.2) 41 | 42 | /// Reference character to compute stroke width. 43 | /// Default is `l`. 44 | public var strokeWidthReferenceCharacter: String = "l" 45 | 46 | /** 47 | Spacing between characters of a word. 48 | Can be set absolutely or relatively to `spacingReferenceCharacter`'s width using the enum: 49 | 50 | ``` 51 | enum CharacterSpacing { 52 | case absolute(value: CGFloat) 53 | case relative(scale: CGFloat) 54 | } 55 | 56 | ``` 57 | 58 | Default value is `.relative(scale: 1.2)`. 59 | */ 60 | public var characterSpacing: Spacing = .relative(scale: 0.2) 61 | 62 | /** 63 | Spacing between words. 64 | Can be set absolutely or relatively to `spacingReferenceCharacter`'s width using the enum: 65 | 66 | ``` 67 | enum StrokeWidth { 68 | case absolute(value: CGFloat) 69 | case relative(scale: CGFloat) 70 | } 71 | 72 | ``` 73 | 74 | Default value is `.relative(scale: 0.5)`. 75 | */ 76 | public var wordSpacing: Spacing = .relative(scale: 0.5) 77 | 78 | /// Reference character to compute character spacing and word spacing. 79 | /// Default is `M`. 80 | public var spacingReferenceCharacter: String = "M" 81 | 82 | public var completionHandler: (() -> Void)? 83 | 84 | // MARK: UILabel 85 | 86 | /// Override `draw` to animate the label. 87 | public override func draw(_ rect: CGRect) { 88 | if !animationEnabled { 89 | super.draw(rect) 90 | return 91 | } 92 | 93 | performStrokeAnimation() 94 | } 95 | 96 | // MARK: Convenience 97 | 98 | /// Performs the stroke animation by adding and animating subviews. 99 | private func performStrokeAnimation() { 100 | guard let text = text else { 101 | return 102 | } 103 | 104 | let words = text.characters.split(separator: " ").map(String.init) 105 | let wordLayers: [CALayer] = words.flatMap({ layer(for: $0) }) 106 | 107 | let textView = view(from: wordLayers) 108 | 109 | textView.frame.origin.x = (frame.width - textView.frame.size.width) / 2 110 | textView.frame.origin.y = (frame.height - textView.frame.size.height) / 2 111 | 112 | addSubview(textView) 113 | 114 | let animation = CABasicAnimation(keyPath: "strokeEnd") 115 | animation.duration = animationDuration 116 | animation.fromValue = 0 117 | animation.toValue = 1 118 | 119 | CATransaction.begin() 120 | 121 | if let completionHandler = completionHandler { 122 | CATransaction.setCompletionBlock(completionHandler) 123 | } 124 | 125 | animateSublayers(textView.layer, animation: animation) 126 | CATransaction.commit() 127 | } 128 | 129 | /// Creates a `CALayer` representing `text` using the the label's properties. 130 | private func layer(for text: String) -> CALayer? { 131 | var unichars = [UniChar](text.utf16) 132 | var glyphs = [CGGlyph](repeating: 0, count: unichars.count) 133 | 134 | guard CTFontGetGlyphsForCharacters(font, &unichars, &glyphs, unichars.count) else { 135 | return nil 136 | } 137 | 138 | let strokeWidthReferenceCharacterBoundingBox = self.boundingBox(for: strokeWidthReferenceCharacter, using: font) 139 | 140 | let strokeWidth: CGFloat 141 | 142 | switch self.strokeWidth { 143 | case .absolute(value: let value): 144 | strokeWidth = value 145 | case .relative(scale: let scale): 146 | strokeWidth = strokeWidthReferenceCharacterBoundingBox.width * scale 147 | } 148 | 149 | let layers: [CALayer] = glyphs.flatMap({ glyph in 150 | guard let path = CTFontCreatePathForGlyph(font, glyph, nil) else { 151 | return nil 152 | } 153 | 154 | let layer = CAShapeLayer() 155 | layer.path = path 156 | layer.bounds = path.boundingBox 157 | layer.isGeometryFlipped = true 158 | layer.strokeColor = strokeColor.cgColor 159 | layer.fillColor = UIColor.clear.cgColor 160 | layer.lineWidth = strokeWidth 161 | 162 | return layer 163 | }) 164 | 165 | let groupLayer = CAShapeLayer() 166 | 167 | let letterHeight = strokeWidthReferenceCharacterBoundingBox.height 168 | 169 | var offset = CGFloat(0) 170 | 171 | let spacingReferenceCharacterBoundingBox = self.boundingBox(for: spacingReferenceCharacter, using: font) 172 | 173 | for layer in layers { 174 | let yOrigin = letterHeight - layer.bounds.height 175 | layer.frame.origin = CGPoint(x: offset, y: yOrigin) 176 | 177 | let characterSpacing: CGFloat 178 | 179 | switch self.characterSpacing { 180 | case .absolute(value: let value): 181 | characterSpacing = value 182 | case .relative(scale: let scale): 183 | characterSpacing = spacingReferenceCharacterBoundingBox.width * scale 184 | } 185 | 186 | offset = layer.frame.maxX + characterSpacing 187 | groupLayer.addSublayer(layer) 188 | } 189 | 190 | groupLayer.bounds = CGRect(x: layers.first!.frame.origin.x, y: layers.first!.frame.origin.y, width: layers.last!.frame.maxX, height: layers.first!.frame.size.height) 191 | 192 | groupLayer.frame.origin = CGPoint(x: 0, y: 0) 193 | 194 | return groupLayer 195 | } 196 | 197 | private func view(from layers: [CALayer]) -> UIView { 198 | let textView = UIView() 199 | 200 | let wordSpacing: CGFloat 201 | 202 | switch self.wordSpacing { 203 | case .absolute(value: let value): 204 | wordSpacing = value 205 | case .relative(scale: let scale): 206 | wordSpacing = boundingBox(for: spacingReferenceCharacter, using: font).width * scale 207 | } 208 | 209 | let digitHeight = layers.first!.frame.size.height 210 | 211 | for i in 0.. CGRect { 237 | var unichars = [UniChar](letter.utf16) 238 | var glyphs = [CGGlyph](repeating: 0, count: unichars.count) 239 | _ = CTFontGetGlyphsForCharacters(font, &unichars, &glyphs, unichars.count) 240 | let cgpath = CTFontCreatePathForGlyph(font, glyphs[0], nil) 241 | 242 | return cgpath!.boundingBox 243 | } 244 | 245 | // MARK: Enumerations 246 | 247 | /// Enum describing a stroke width, which can be set absolutely, or relatively to `strokeWidthReferenceCharacter`'s width. 248 | public enum StrokeWidth { 249 | 250 | /// Set the same stroke width between every character of a word. 251 | case absolute(value: CGFloat) 252 | 253 | /// Set the stroke width relative to the `strokeWidthReferenceCharacter`'s width, by specifying a scale factor. 254 | case relative(scale: CGFloat) 255 | } 256 | 257 | /// Enum describing spacing between characters or words, which can be set absolutely, or relatively to `spacingReferenceCharacter`'s width. 258 | public enum Spacing { 259 | 260 | /// Set the same character spacing between every character of a word. 261 | case absolute(value: CGFloat) 262 | 263 | /// Set the character spacing relative to `spacingReferenceCharacter`'s width, by specifying a scale factor. 264 | case relative(scale: CGFloat) 265 | } 266 | 267 | } 268 | -------------------------------------------------------------------------------- /UIStrokeAnimatedLabel/UIStrokeAnimatedLabelFramework.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0EDB77731E34D3A0007912C3 /* UIStrokeAnimatedLabel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0EFAD66A1E34CF16003B5DF0 /* UIStrokeAnimatedLabel.swift */; }; 11 | 0EFAD6641E34CF08003B5DF0 /* UIStrokeAnimatedLabel.h in Headers */ = {isa = PBXBuildFile; fileRef = 0EFAD6621E34CF08003B5DF0 /* UIStrokeAnimatedLabel.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | /* End PBXBuildFile section */ 13 | 14 | /* Begin PBXFileReference section */ 15 | 0EFAD65F1E34CF08003B5DF0 /* UIStrokeAnimatedLabelFramework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = UIStrokeAnimatedLabelFramework.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 16 | 0EFAD6621E34CF08003B5DF0 /* UIStrokeAnimatedLabel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = UIStrokeAnimatedLabel.h; sourceTree = ""; }; 17 | 0EFAD6631E34CF08003B5DF0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 18 | 0EFAD66A1E34CF16003B5DF0 /* UIStrokeAnimatedLabel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UIStrokeAnimatedLabel.swift; sourceTree = ""; }; 19 | /* End PBXFileReference section */ 20 | 21 | /* Begin PBXFrameworksBuildPhase section */ 22 | 0EFAD65B1E34CF08003B5DF0 /* Frameworks */ = { 23 | isa = PBXFrameworksBuildPhase; 24 | buildActionMask = 2147483647; 25 | files = ( 26 | ); 27 | runOnlyForDeploymentPostprocessing = 0; 28 | }; 29 | /* End PBXFrameworksBuildPhase section */ 30 | 31 | /* Begin PBXGroup section */ 32 | 0EFAD6551E34CF08003B5DF0 = { 33 | isa = PBXGroup; 34 | children = ( 35 | 0EFAD6611E34CF08003B5DF0 /* UIStrokeAnimatedLabel */, 36 | 0EFAD6601E34CF08003B5DF0 /* Products */, 37 | ); 38 | sourceTree = ""; 39 | }; 40 | 0EFAD6601E34CF08003B5DF0 /* Products */ = { 41 | isa = PBXGroup; 42 | children = ( 43 | 0EFAD65F1E34CF08003B5DF0 /* UIStrokeAnimatedLabelFramework.framework */, 44 | ); 45 | name = Products; 46 | sourceTree = ""; 47 | }; 48 | 0EFAD6611E34CF08003B5DF0 /* UIStrokeAnimatedLabel */ = { 49 | isa = PBXGroup; 50 | children = ( 51 | 0EFAD6621E34CF08003B5DF0 /* UIStrokeAnimatedLabel.h */, 52 | 0EFAD66A1E34CF16003B5DF0 /* UIStrokeAnimatedLabel.swift */, 53 | 0EFAD6631E34CF08003B5DF0 /* Info.plist */, 54 | ); 55 | path = UIStrokeAnimatedLabel; 56 | sourceTree = ""; 57 | }; 58 | /* End PBXGroup section */ 59 | 60 | /* Begin PBXHeadersBuildPhase section */ 61 | 0EFAD65C1E34CF08003B5DF0 /* Headers */ = { 62 | isa = PBXHeadersBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 0EFAD6641E34CF08003B5DF0 /* UIStrokeAnimatedLabel.h in Headers */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXHeadersBuildPhase section */ 70 | 71 | /* Begin PBXNativeTarget section */ 72 | 0EFAD65E1E34CF08003B5DF0 /* UIStrokeAnimatedLabelFramework */ = { 73 | isa = PBXNativeTarget; 74 | buildConfigurationList = 0EFAD6671E34CF08003B5DF0 /* Build configuration list for PBXNativeTarget "UIStrokeAnimatedLabelFramework" */; 75 | buildPhases = ( 76 | 0EFAD65A1E34CF08003B5DF0 /* Sources */, 77 | 0EFAD65B1E34CF08003B5DF0 /* Frameworks */, 78 | 0EFAD65C1E34CF08003B5DF0 /* Headers */, 79 | 0EFAD65D1E34CF08003B5DF0 /* Resources */, 80 | ); 81 | buildRules = ( 82 | ); 83 | dependencies = ( 84 | ); 85 | name = UIStrokeAnimatedLabelFramework; 86 | productName = UIStrokeAnimatedLabel; 87 | productReference = 0EFAD65F1E34CF08003B5DF0 /* UIStrokeAnimatedLabelFramework.framework */; 88 | productType = "com.apple.product-type.framework"; 89 | }; 90 | /* End PBXNativeTarget section */ 91 | 92 | /* Begin PBXProject section */ 93 | 0EFAD6561E34CF08003B5DF0 /* Project object */ = { 94 | isa = PBXProject; 95 | attributes = { 96 | LastUpgradeCheck = 0900; 97 | ORGANIZATIONNAME = "Franklin Schrans"; 98 | TargetAttributes = { 99 | 0EFAD65E1E34CF08003B5DF0 = { 100 | CreatedOnToolsVersion = 8.2.1; 101 | LastSwiftMigration = 0900; 102 | ProvisioningStyle = Automatic; 103 | }; 104 | }; 105 | }; 106 | buildConfigurationList = 0EFAD6591E34CF08003B5DF0 /* Build configuration list for PBXProject "UIStrokeAnimatedLabelFramework" */; 107 | compatibilityVersion = "Xcode 3.2"; 108 | developmentRegion = English; 109 | hasScannedForEncodings = 0; 110 | knownRegions = ( 111 | en, 112 | ); 113 | mainGroup = 0EFAD6551E34CF08003B5DF0; 114 | productRefGroup = 0EFAD6601E34CF08003B5DF0 /* Products */; 115 | projectDirPath = ""; 116 | projectRoot = ""; 117 | targets = ( 118 | 0EFAD65E1E34CF08003B5DF0 /* UIStrokeAnimatedLabelFramework */, 119 | ); 120 | }; 121 | /* End PBXProject section */ 122 | 123 | /* Begin PBXResourcesBuildPhase section */ 124 | 0EFAD65D1E34CF08003B5DF0 /* Resources */ = { 125 | isa = PBXResourcesBuildPhase; 126 | buildActionMask = 2147483647; 127 | files = ( 128 | ); 129 | runOnlyForDeploymentPostprocessing = 0; 130 | }; 131 | /* End PBXResourcesBuildPhase section */ 132 | 133 | /* Begin PBXSourcesBuildPhase section */ 134 | 0EFAD65A1E34CF08003B5DF0 /* Sources */ = { 135 | isa = PBXSourcesBuildPhase; 136 | buildActionMask = 2147483647; 137 | files = ( 138 | 0EDB77731E34D3A0007912C3 /* UIStrokeAnimatedLabel.swift in Sources */, 139 | ); 140 | runOnlyForDeploymentPostprocessing = 0; 141 | }; 142 | /* End PBXSourcesBuildPhase section */ 143 | 144 | /* Begin XCBuildConfiguration section */ 145 | 0EFAD6651E34CF08003B5DF0 /* Debug */ = { 146 | isa = XCBuildConfiguration; 147 | buildSettings = { 148 | ALWAYS_SEARCH_USER_PATHS = NO; 149 | CLANG_ANALYZER_NONNULL = YES; 150 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 151 | CLANG_CXX_LIBRARY = "libc++"; 152 | CLANG_ENABLE_MODULES = YES; 153 | CLANG_ENABLE_OBJC_ARC = YES; 154 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 155 | CLANG_WARN_BOOL_CONVERSION = YES; 156 | CLANG_WARN_COMMA = YES; 157 | CLANG_WARN_CONSTANT_CONVERSION = YES; 158 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 159 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 160 | CLANG_WARN_EMPTY_BODY = YES; 161 | CLANG_WARN_ENUM_CONVERSION = YES; 162 | CLANG_WARN_INFINITE_RECURSION = YES; 163 | CLANG_WARN_INT_CONVERSION = YES; 164 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 165 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 166 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 167 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 168 | CLANG_WARN_STRICT_PROTOTYPES = YES; 169 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 170 | CLANG_WARN_UNREACHABLE_CODE = YES; 171 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 172 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 173 | COPY_PHASE_STRIP = NO; 174 | CURRENT_PROJECT_VERSION = 1; 175 | DEBUG_INFORMATION_FORMAT = dwarf; 176 | ENABLE_STRICT_OBJC_MSGSEND = YES; 177 | ENABLE_TESTABILITY = YES; 178 | GCC_C_LANGUAGE_STANDARD = gnu99; 179 | GCC_DYNAMIC_NO_PIC = NO; 180 | GCC_NO_COMMON_BLOCKS = YES; 181 | GCC_OPTIMIZATION_LEVEL = 0; 182 | GCC_PREPROCESSOR_DEFINITIONS = ( 183 | "DEBUG=1", 184 | "$(inherited)", 185 | ); 186 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 187 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 188 | GCC_WARN_UNDECLARED_SELECTOR = YES; 189 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 190 | GCC_WARN_UNUSED_FUNCTION = YES; 191 | GCC_WARN_UNUSED_VARIABLE = YES; 192 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 193 | MTL_ENABLE_DEBUG_INFO = YES; 194 | ONLY_ACTIVE_ARCH = YES; 195 | SDKROOT = iphoneos; 196 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 197 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 198 | TARGETED_DEVICE_FAMILY = "1,2"; 199 | VERSIONING_SYSTEM = "apple-generic"; 200 | VERSION_INFO_PREFIX = ""; 201 | }; 202 | name = Debug; 203 | }; 204 | 0EFAD6661E34CF08003B5DF0 /* Release */ = { 205 | isa = XCBuildConfiguration; 206 | buildSettings = { 207 | ALWAYS_SEARCH_USER_PATHS = NO; 208 | CLANG_ANALYZER_NONNULL = YES; 209 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 210 | CLANG_CXX_LIBRARY = "libc++"; 211 | CLANG_ENABLE_MODULES = YES; 212 | CLANG_ENABLE_OBJC_ARC = YES; 213 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 214 | CLANG_WARN_BOOL_CONVERSION = YES; 215 | CLANG_WARN_COMMA = YES; 216 | CLANG_WARN_CONSTANT_CONVERSION = YES; 217 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 218 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 219 | CLANG_WARN_EMPTY_BODY = YES; 220 | CLANG_WARN_ENUM_CONVERSION = YES; 221 | CLANG_WARN_INFINITE_RECURSION = YES; 222 | CLANG_WARN_INT_CONVERSION = YES; 223 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 224 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 225 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 226 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 227 | CLANG_WARN_STRICT_PROTOTYPES = YES; 228 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 229 | CLANG_WARN_UNREACHABLE_CODE = YES; 230 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 231 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 232 | COPY_PHASE_STRIP = NO; 233 | CURRENT_PROJECT_VERSION = 1; 234 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 235 | ENABLE_NS_ASSERTIONS = NO; 236 | ENABLE_STRICT_OBJC_MSGSEND = YES; 237 | GCC_C_LANGUAGE_STANDARD = gnu99; 238 | GCC_NO_COMMON_BLOCKS = YES; 239 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 240 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 241 | GCC_WARN_UNDECLARED_SELECTOR = YES; 242 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 243 | GCC_WARN_UNUSED_FUNCTION = YES; 244 | GCC_WARN_UNUSED_VARIABLE = YES; 245 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 246 | MTL_ENABLE_DEBUG_INFO = NO; 247 | SDKROOT = iphoneos; 248 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 249 | TARGETED_DEVICE_FAMILY = "1,2"; 250 | VALIDATE_PRODUCT = YES; 251 | VERSIONING_SYSTEM = "apple-generic"; 252 | VERSION_INFO_PREFIX = ""; 253 | }; 254 | name = Release; 255 | }; 256 | 0EFAD6681E34CF08003B5DF0 /* Debug */ = { 257 | isa = XCBuildConfiguration; 258 | buildSettings = { 259 | CLANG_ENABLE_MODULES = YES; 260 | CODE_SIGN_IDENTITY = ""; 261 | DEFINES_MODULE = YES; 262 | DEVELOPMENT_TEAM = ""; 263 | DYLIB_COMPATIBILITY_VERSION = 1; 264 | DYLIB_CURRENT_VERSION = 1; 265 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 266 | INFOPLIST_FILE = UIStrokeAnimatedLabel/Info.plist; 267 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 268 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 269 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 270 | PRODUCT_BUNDLE_IDENTIFIER = com.franklinschrans.UIStrokeAnimatedLabel; 271 | PRODUCT_NAME = "$(TARGET_NAME)"; 272 | SKIP_INSTALL = YES; 273 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 274 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 275 | SWIFT_VERSION = 4.0; 276 | }; 277 | name = Debug; 278 | }; 279 | 0EFAD6691E34CF08003B5DF0 /* Release */ = { 280 | isa = XCBuildConfiguration; 281 | buildSettings = { 282 | CLANG_ENABLE_MODULES = YES; 283 | CODE_SIGN_IDENTITY = ""; 284 | DEFINES_MODULE = YES; 285 | DEVELOPMENT_TEAM = ""; 286 | DYLIB_COMPATIBILITY_VERSION = 1; 287 | DYLIB_CURRENT_VERSION = 1; 288 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 289 | INFOPLIST_FILE = UIStrokeAnimatedLabel/Info.plist; 290 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 291 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 292 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 293 | PRODUCT_BUNDLE_IDENTIFIER = com.franklinschrans.UIStrokeAnimatedLabel; 294 | PRODUCT_NAME = "$(TARGET_NAME)"; 295 | SKIP_INSTALL = YES; 296 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 297 | SWIFT_VERSION = 4.0; 298 | }; 299 | name = Release; 300 | }; 301 | /* End XCBuildConfiguration section */ 302 | 303 | /* Begin XCConfigurationList section */ 304 | 0EFAD6591E34CF08003B5DF0 /* Build configuration list for PBXProject "UIStrokeAnimatedLabelFramework" */ = { 305 | isa = XCConfigurationList; 306 | buildConfigurations = ( 307 | 0EFAD6651E34CF08003B5DF0 /* Debug */, 308 | 0EFAD6661E34CF08003B5DF0 /* Release */, 309 | ); 310 | defaultConfigurationIsVisible = 0; 311 | defaultConfigurationName = Release; 312 | }; 313 | 0EFAD6671E34CF08003B5DF0 /* Build configuration list for PBXNativeTarget "UIStrokeAnimatedLabelFramework" */ = { 314 | isa = XCConfigurationList; 315 | buildConfigurations = ( 316 | 0EFAD6681E34CF08003B5DF0 /* Debug */, 317 | 0EFAD6691E34CF08003B5DF0 /* Release */, 318 | ); 319 | defaultConfigurationIsVisible = 0; 320 | defaultConfigurationName = Release; 321 | }; 322 | /* End XCConfigurationList section */ 323 | }; 324 | rootObject = 0EFAD6561E34CF08003B5DF0 /* Project object */; 325 | } 326 | -------------------------------------------------------------------------------- /UIStrokeAnimatedLabel/UIStrokeAnimatedLabelFramework.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /UIStrokeAnimatedLabelDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0E04ADD31E34D93D00585765 /* UIStrokeAnimatedLabelFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0E04ADD21E34D91D00585765 /* UIStrokeAnimatedLabelFramework.framework */; }; 11 | 0E04ADD41E34D93D00585765 /* UIStrokeAnimatedLabelFramework.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 0E04ADD21E34D91D00585765 /* UIStrokeAnimatedLabelFramework.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 12 | 25DB0EB61B93286900E65E08 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 25DB0EB51B93286900E65E08 /* AppDelegate.swift */; }; 13 | 25DB0EBB1B93286900E65E08 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 25DB0EBA1B93286900E65E08 /* ViewController.swift */; }; 14 | 25DB0EBE1B93286900E65E08 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 25DB0EBC1B93286900E65E08 /* Main.storyboard */; }; 15 | 25DB0EC01B93286900E65E08 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 25DB0EBF1B93286900E65E08 /* Images.xcassets */; }; 16 | 25DB0EC31B93286900E65E08 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 25DB0EC11B93286900E65E08 /* LaunchScreen.xib */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | 0E04ADD11E34D91D00585765 /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = 0E04ADBB1E34D86A00585765 /* UIStrokeAnimatedLabelFramework.xcodeproj */; 23 | proxyType = 2; 24 | remoteGlobalIDString = 0EFAD65F1E34CF08003B5DF0; 25 | remoteInfo = UIStrokeAnimatedLabelFramework; 26 | }; 27 | 0E04ADD51E34D93D00585765 /* PBXContainerItemProxy */ = { 28 | isa = PBXContainerItemProxy; 29 | containerPortal = 0E04ADBB1E34D86A00585765 /* UIStrokeAnimatedLabelFramework.xcodeproj */; 30 | proxyType = 1; 31 | remoteGlobalIDString = 0EFAD65E1E34CF08003B5DF0; 32 | remoteInfo = UIStrokeAnimatedLabelFramework; 33 | }; 34 | /* End PBXContainerItemProxy section */ 35 | 36 | /* Begin PBXCopyFilesBuildPhase section */ 37 | 0EDB77781E34D3FB007912C3 /* Embed Frameworks */ = { 38 | isa = PBXCopyFilesBuildPhase; 39 | buildActionMask = 2147483647; 40 | dstPath = ""; 41 | dstSubfolderSpec = 10; 42 | files = ( 43 | 0E04ADD41E34D93D00585765 /* UIStrokeAnimatedLabelFramework.framework in Embed Frameworks */, 44 | ); 45 | name = "Embed Frameworks"; 46 | runOnlyForDeploymentPostprocessing = 0; 47 | }; 48 | /* End PBXCopyFilesBuildPhase section */ 49 | 50 | /* Begin PBXFileReference section */ 51 | 0E04ADBB1E34D86A00585765 /* UIStrokeAnimatedLabelFramework.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UIStrokeAnimatedLabelFramework.xcodeproj; path = UIStrokeAnimatedLabel/UIStrokeAnimatedLabelFramework.xcodeproj; sourceTree = ""; }; 52 | 25DB0EB01B93286900E65E08 /* UIStrokeAnimatedLabelDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = UIStrokeAnimatedLabelDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | 25DB0EB41B93286900E65E08 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 54 | 25DB0EB51B93286900E65E08 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 55 | 25DB0EBA1B93286900E65E08 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 56 | 25DB0EBD1B93286900E65E08 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 57 | 25DB0EBF1B93286900E65E08 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 58 | 25DB0EC21B93286900E65E08 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 59 | 25DB0ECD1B93286900E65E08 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 60 | /* End PBXFileReference section */ 61 | 62 | /* Begin PBXFrameworksBuildPhase section */ 63 | 25DB0EAD1B93286900E65E08 /* Frameworks */ = { 64 | isa = PBXFrameworksBuildPhase; 65 | buildActionMask = 2147483647; 66 | files = ( 67 | 0E04ADD31E34D93D00585765 /* UIStrokeAnimatedLabelFramework.framework in Frameworks */, 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | /* End PBXFrameworksBuildPhase section */ 72 | 73 | /* Begin PBXGroup section */ 74 | 0E04ADCE1E34D91D00585765 /* Products */ = { 75 | isa = PBXGroup; 76 | children = ( 77 | 0E04ADD21E34D91D00585765 /* UIStrokeAnimatedLabelFramework.framework */, 78 | ); 79 | name = Products; 80 | sourceTree = ""; 81 | }; 82 | 25DB0EA71B93286900E65E08 = { 83 | isa = PBXGroup; 84 | children = ( 85 | 0E04ADBB1E34D86A00585765 /* UIStrokeAnimatedLabelFramework.xcodeproj */, 86 | 25DB0EB21B93286900E65E08 /* UIStrokeAnimatedLabelDemo */, 87 | 25DB0ECB1B93286900E65E08 /* DrawTextAnimationDemoTests */, 88 | 25DB0EB11B93286900E65E08 /* Products */, 89 | ); 90 | sourceTree = ""; 91 | }; 92 | 25DB0EB11B93286900E65E08 /* Products */ = { 93 | isa = PBXGroup; 94 | children = ( 95 | 25DB0EB01B93286900E65E08 /* UIStrokeAnimatedLabelDemo.app */, 96 | ); 97 | name = Products; 98 | sourceTree = ""; 99 | }; 100 | 25DB0EB21B93286900E65E08 /* UIStrokeAnimatedLabelDemo */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 25DB0EB51B93286900E65E08 /* AppDelegate.swift */, 104 | 25DB0EBA1B93286900E65E08 /* ViewController.swift */, 105 | 25DB0EBC1B93286900E65E08 /* Main.storyboard */, 106 | 25DB0EBF1B93286900E65E08 /* Images.xcassets */, 107 | 25DB0EC11B93286900E65E08 /* LaunchScreen.xib */, 108 | 25DB0EB31B93286900E65E08 /* Supporting Files */, 109 | ); 110 | name = UIStrokeAnimatedLabelDemo; 111 | path = UIStrokeAnimatedLabelDemo/DrawTextAnimationDemo; 112 | sourceTree = ""; 113 | }; 114 | 25DB0EB31B93286900E65E08 /* Supporting Files */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | 25DB0EB41B93286900E65E08 /* Info.plist */, 118 | ); 119 | name = "Supporting Files"; 120 | sourceTree = ""; 121 | }; 122 | 25DB0ECB1B93286900E65E08 /* DrawTextAnimationDemoTests */ = { 123 | isa = PBXGroup; 124 | children = ( 125 | 25DB0ECC1B93286900E65E08 /* Supporting Files */, 126 | ); 127 | name = DrawTextAnimationDemoTests; 128 | path = UIStrokeAnimatedLabelDemo/DrawTextAnimationDemoTests; 129 | sourceTree = ""; 130 | }; 131 | 25DB0ECC1B93286900E65E08 /* Supporting Files */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | 25DB0ECD1B93286900E65E08 /* Info.plist */, 135 | ); 136 | name = "Supporting Files"; 137 | sourceTree = ""; 138 | }; 139 | /* End PBXGroup section */ 140 | 141 | /* Begin PBXNativeTarget section */ 142 | 25DB0EAF1B93286900E65E08 /* UIStrokeAnimatedLabelDemo */ = { 143 | isa = PBXNativeTarget; 144 | buildConfigurationList = 25DB0ED21B93286900E65E08 /* Build configuration list for PBXNativeTarget "UIStrokeAnimatedLabelDemo" */; 145 | buildPhases = ( 146 | 25DB0EAC1B93286900E65E08 /* Sources */, 147 | 25DB0EAD1B93286900E65E08 /* Frameworks */, 148 | 25DB0EAE1B93286900E65E08 /* Resources */, 149 | 0EDB77781E34D3FB007912C3 /* Embed Frameworks */, 150 | ); 151 | buildRules = ( 152 | ); 153 | dependencies = ( 154 | 0E04ADD61E34D93D00585765 /* PBXTargetDependency */, 155 | ); 156 | name = UIStrokeAnimatedLabelDemo; 157 | productName = DrawTextAnimationDemo; 158 | productReference = 25DB0EB01B93286900E65E08 /* UIStrokeAnimatedLabelDemo.app */; 159 | productType = "com.apple.product-type.application"; 160 | }; 161 | /* End PBXNativeTarget section */ 162 | 163 | /* Begin PBXProject section */ 164 | 25DB0EA81B93286900E65E08 /* Project object */ = { 165 | isa = PBXProject; 166 | attributes = { 167 | LastSwiftMigration = 0700; 168 | LastSwiftUpdateCheck = 0700; 169 | LastUpgradeCheck = 0900; 170 | ORGANIZATIONNAME = "Franklin Schrans"; 171 | TargetAttributes = { 172 | 25DB0EAF1B93286900E65E08 = { 173 | CreatedOnToolsVersion = 6.4; 174 | LastSwiftMigration = 0820; 175 | }; 176 | }; 177 | }; 178 | buildConfigurationList = 25DB0EAB1B93286900E65E08 /* Build configuration list for PBXProject "UIStrokeAnimatedLabelDemo" */; 179 | compatibilityVersion = "Xcode 3.2"; 180 | developmentRegion = English; 181 | hasScannedForEncodings = 0; 182 | knownRegions = ( 183 | en, 184 | Base, 185 | ); 186 | mainGroup = 25DB0EA71B93286900E65E08; 187 | productRefGroup = 25DB0EB11B93286900E65E08 /* Products */; 188 | projectDirPath = ""; 189 | projectReferences = ( 190 | { 191 | ProductGroup = 0E04ADCE1E34D91D00585765 /* Products */; 192 | ProjectRef = 0E04ADBB1E34D86A00585765 /* UIStrokeAnimatedLabelFramework.xcodeproj */; 193 | }, 194 | ); 195 | projectRoot = ""; 196 | targets = ( 197 | 25DB0EAF1B93286900E65E08 /* UIStrokeAnimatedLabelDemo */, 198 | ); 199 | }; 200 | /* End PBXProject section */ 201 | 202 | /* Begin PBXReferenceProxy section */ 203 | 0E04ADD21E34D91D00585765 /* UIStrokeAnimatedLabelFramework.framework */ = { 204 | isa = PBXReferenceProxy; 205 | fileType = wrapper.framework; 206 | path = UIStrokeAnimatedLabelFramework.framework; 207 | remoteRef = 0E04ADD11E34D91D00585765 /* PBXContainerItemProxy */; 208 | sourceTree = BUILT_PRODUCTS_DIR; 209 | }; 210 | /* End PBXReferenceProxy section */ 211 | 212 | /* Begin PBXResourcesBuildPhase section */ 213 | 25DB0EAE1B93286900E65E08 /* Resources */ = { 214 | isa = PBXResourcesBuildPhase; 215 | buildActionMask = 2147483647; 216 | files = ( 217 | 25DB0EBE1B93286900E65E08 /* Main.storyboard in Resources */, 218 | 25DB0EC31B93286900E65E08 /* LaunchScreen.xib in Resources */, 219 | 25DB0EC01B93286900E65E08 /* Images.xcassets in Resources */, 220 | ); 221 | runOnlyForDeploymentPostprocessing = 0; 222 | }; 223 | /* End PBXResourcesBuildPhase section */ 224 | 225 | /* Begin PBXSourcesBuildPhase section */ 226 | 25DB0EAC1B93286900E65E08 /* Sources */ = { 227 | isa = PBXSourcesBuildPhase; 228 | buildActionMask = 2147483647; 229 | files = ( 230 | 25DB0EBB1B93286900E65E08 /* ViewController.swift in Sources */, 231 | 25DB0EB61B93286900E65E08 /* AppDelegate.swift in Sources */, 232 | ); 233 | runOnlyForDeploymentPostprocessing = 0; 234 | }; 235 | /* End PBXSourcesBuildPhase section */ 236 | 237 | /* Begin PBXTargetDependency section */ 238 | 0E04ADD61E34D93D00585765 /* PBXTargetDependency */ = { 239 | isa = PBXTargetDependency; 240 | name = UIStrokeAnimatedLabelFramework; 241 | targetProxy = 0E04ADD51E34D93D00585765 /* PBXContainerItemProxy */; 242 | }; 243 | /* End PBXTargetDependency section */ 244 | 245 | /* Begin PBXVariantGroup section */ 246 | 25DB0EBC1B93286900E65E08 /* Main.storyboard */ = { 247 | isa = PBXVariantGroup; 248 | children = ( 249 | 25DB0EBD1B93286900E65E08 /* Base */, 250 | ); 251 | name = Main.storyboard; 252 | sourceTree = ""; 253 | }; 254 | 25DB0EC11B93286900E65E08 /* LaunchScreen.xib */ = { 255 | isa = PBXVariantGroup; 256 | children = ( 257 | 25DB0EC21B93286900E65E08 /* Base */, 258 | ); 259 | name = LaunchScreen.xib; 260 | sourceTree = ""; 261 | }; 262 | /* End PBXVariantGroup section */ 263 | 264 | /* Begin XCBuildConfiguration section */ 265 | 25DB0ED01B93286900E65E08 /* Debug */ = { 266 | isa = XCBuildConfiguration; 267 | buildSettings = { 268 | ALWAYS_SEARCH_USER_PATHS = NO; 269 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 270 | CLANG_CXX_LIBRARY = "libc++"; 271 | CLANG_ENABLE_MODULES = YES; 272 | CLANG_ENABLE_OBJC_ARC = YES; 273 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 274 | CLANG_WARN_BOOL_CONVERSION = YES; 275 | CLANG_WARN_COMMA = YES; 276 | CLANG_WARN_CONSTANT_CONVERSION = YES; 277 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 278 | CLANG_WARN_EMPTY_BODY = YES; 279 | CLANG_WARN_ENUM_CONVERSION = YES; 280 | CLANG_WARN_INFINITE_RECURSION = YES; 281 | CLANG_WARN_INT_CONVERSION = YES; 282 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 283 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 284 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 285 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 286 | CLANG_WARN_STRICT_PROTOTYPES = YES; 287 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 288 | CLANG_WARN_UNREACHABLE_CODE = YES; 289 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 290 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 291 | COPY_PHASE_STRIP = NO; 292 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 293 | ENABLE_STRICT_OBJC_MSGSEND = YES; 294 | ENABLE_TESTABILITY = YES; 295 | GCC_C_LANGUAGE_STANDARD = gnu99; 296 | GCC_DYNAMIC_NO_PIC = NO; 297 | GCC_NO_COMMON_BLOCKS = YES; 298 | GCC_OPTIMIZATION_LEVEL = 0; 299 | GCC_PREPROCESSOR_DEFINITIONS = ( 300 | "DEBUG=1", 301 | "$(inherited)", 302 | ); 303 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 304 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 305 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 306 | GCC_WARN_UNDECLARED_SELECTOR = YES; 307 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 308 | GCC_WARN_UNUSED_FUNCTION = YES; 309 | GCC_WARN_UNUSED_VARIABLE = YES; 310 | IPHONEOS_DEPLOYMENT_TARGET = 8.4; 311 | MTL_ENABLE_DEBUG_INFO = YES; 312 | ONLY_ACTIVE_ARCH = YES; 313 | SDKROOT = iphoneos; 314 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 315 | }; 316 | name = Debug; 317 | }; 318 | 25DB0ED11B93286900E65E08 /* Release */ = { 319 | isa = XCBuildConfiguration; 320 | buildSettings = { 321 | ALWAYS_SEARCH_USER_PATHS = NO; 322 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 323 | CLANG_CXX_LIBRARY = "libc++"; 324 | CLANG_ENABLE_MODULES = YES; 325 | CLANG_ENABLE_OBJC_ARC = YES; 326 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 327 | CLANG_WARN_BOOL_CONVERSION = YES; 328 | CLANG_WARN_COMMA = YES; 329 | CLANG_WARN_CONSTANT_CONVERSION = YES; 330 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 331 | CLANG_WARN_EMPTY_BODY = YES; 332 | CLANG_WARN_ENUM_CONVERSION = YES; 333 | CLANG_WARN_INFINITE_RECURSION = YES; 334 | CLANG_WARN_INT_CONVERSION = YES; 335 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 336 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 337 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 338 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 339 | CLANG_WARN_STRICT_PROTOTYPES = YES; 340 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 341 | CLANG_WARN_UNREACHABLE_CODE = YES; 342 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 343 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 344 | COPY_PHASE_STRIP = NO; 345 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 346 | ENABLE_NS_ASSERTIONS = NO; 347 | ENABLE_STRICT_OBJC_MSGSEND = YES; 348 | GCC_C_LANGUAGE_STANDARD = gnu99; 349 | GCC_NO_COMMON_BLOCKS = YES; 350 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 351 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 352 | GCC_WARN_UNDECLARED_SELECTOR = YES; 353 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 354 | GCC_WARN_UNUSED_FUNCTION = YES; 355 | GCC_WARN_UNUSED_VARIABLE = YES; 356 | IPHONEOS_DEPLOYMENT_TARGET = 8.4; 357 | MTL_ENABLE_DEBUG_INFO = NO; 358 | SDKROOT = iphoneos; 359 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 360 | VALIDATE_PRODUCT = YES; 361 | }; 362 | name = Release; 363 | }; 364 | 25DB0ED31B93286900E65E08 /* Debug */ = { 365 | isa = XCBuildConfiguration; 366 | buildSettings = { 367 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 368 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 369 | DEVELOPMENT_TEAM = ""; 370 | INFOPLIST_FILE = "$(SRCROOT)/UIStrokeAnimatedLabelDemo/DrawTextAnimationDemo/Info.plist"; 371 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 372 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 373 | PRODUCT_BUNDLE_IDENTIFIER = com.franklinschrans.com.UIStrokeAnimatedLabelDemo; 374 | PRODUCT_NAME = "$(TARGET_NAME)"; 375 | SWIFT_VERSION = 3.0; 376 | }; 377 | name = Debug; 378 | }; 379 | 25DB0ED41B93286900E65E08 /* Release */ = { 380 | isa = XCBuildConfiguration; 381 | buildSettings = { 382 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 383 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 384 | DEVELOPMENT_TEAM = ""; 385 | INFOPLIST_FILE = "$(SRCROOT)/UIStrokeAnimatedLabelDemo/DrawTextAnimationDemo/Info.plist"; 386 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 387 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 388 | PRODUCT_BUNDLE_IDENTIFIER = com.franklinschrans.com.UIStrokeAnimatedLabelDemo; 389 | PRODUCT_NAME = "$(TARGET_NAME)"; 390 | SWIFT_VERSION = 3.0; 391 | }; 392 | name = Release; 393 | }; 394 | /* End XCBuildConfiguration section */ 395 | 396 | /* Begin XCConfigurationList section */ 397 | 25DB0EAB1B93286900E65E08 /* Build configuration list for PBXProject "UIStrokeAnimatedLabelDemo" */ = { 398 | isa = XCConfigurationList; 399 | buildConfigurations = ( 400 | 25DB0ED01B93286900E65E08 /* Debug */, 401 | 25DB0ED11B93286900E65E08 /* Release */, 402 | ); 403 | defaultConfigurationIsVisible = 0; 404 | defaultConfigurationName = Release; 405 | }; 406 | 25DB0ED21B93286900E65E08 /* Build configuration list for PBXNativeTarget "UIStrokeAnimatedLabelDemo" */ = { 407 | isa = XCConfigurationList; 408 | buildConfigurations = ( 409 | 25DB0ED31B93286900E65E08 /* Debug */, 410 | 25DB0ED41B93286900E65E08 /* Release */, 411 | ); 412 | defaultConfigurationIsVisible = 0; 413 | defaultConfigurationName = Release; 414 | }; 415 | /* End XCConfigurationList section */ 416 | }; 417 | rootObject = 25DB0EA81B93286900E65E08 /* Project object */; 418 | } 419 | -------------------------------------------------------------------------------- /UIStrokeAnimatedLabelDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /UIStrokeAnimatedLabelDemo.xcodeproj/project.xcworkspace/xcshareddata/DrawTextAnimationDemo.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | 481D7724-FDDD-4881-9793-34DE22611B6B 9 | IDESourceControlProjectName 10 | DrawTextAnimationDemo 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | 493755F3873EB004F643B5CD00A95A6DACDF49EA 14 | https://github.com/franklinsch/iOSDrawTextAnimation.git 15 | 16 | IDESourceControlProjectPath 17 | DrawTextAnimationDemo.xcodeproj 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | 493755F3873EB004F643B5CD00A95A6DACDF49EA 21 | ../.. 22 | 23 | IDESourceControlProjectURL 24 | https://github.com/franklinsch/iOSDrawTextAnimation.git 25 | IDESourceControlProjectVersion 26 | 111 27 | IDESourceControlProjectWCCIdentifier 28 | 493755F3873EB004F643B5CD00A95A6DACDF49EA 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | 493755F3873EB004F643B5CD00A95A6DACDF49EA 36 | IDESourceControlWCCName 37 | DrawTextAnimationDemo 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /UIStrokeAnimatedLabelDemo/DrawTextAnimationDemo/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // DrawTextAnimationDemo 4 | // 5 | // Created by Franklin Schrans on 30/08/2015. 6 | // Copyright (c) 2015 Franklin Schrans. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import UIStrokeAnimatedLabelFramework 11 | 12 | @UIApplicationMain 13 | class AppDelegate: UIResponder, UIApplicationDelegate { 14 | 15 | var window: UIWindow? 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | } 22 | 23 | -------------------------------------------------------------------------------- /UIStrokeAnimatedLabelDemo/DrawTextAnimationDemo/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /UIStrokeAnimatedLabelDemo/DrawTextAnimationDemo/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 41 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /UIStrokeAnimatedLabelDemo/DrawTextAnimationDemo/DrawTextAnimationDemo.xcdatamodeld/.xccurrentversion: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /UIStrokeAnimatedLabelDemo/DrawTextAnimationDemo/DrawTextAnimationDemo.xcdatamodeld/DrawTextAnimationDemo.xcdatamodel/contents: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /UIStrokeAnimatedLabelDemo/DrawTextAnimationDemo/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /UIStrokeAnimatedLabelDemo/DrawTextAnimationDemo/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /UIStrokeAnimatedLabelDemo/DrawTextAnimationDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | Main 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /UIStrokeAnimatedLabelDemo/DrawTextAnimationDemo/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // DrawTextAnimationDemo 4 | // 5 | // Created by Franklin Schrans on 30/08/2015. 6 | // Copyright (c) 2015 Franklin Schrans. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import UIStrokeAnimatedLabelFramework 11 | 12 | class ViewController: UIViewController { 13 | 14 | @IBOutlet weak var swiftLabel: UIStrokeAnimatedLabel! 15 | @IBOutlet weak var rocksLabel: UIStrokeAnimatedLabel! 16 | 17 | override func viewDidLoad() { 18 | super.viewDidLoad() 19 | 20 | swiftLabel.animationDuration = 1.0 21 | rocksLabel.animationDuration = 2.0 22 | 23 | swiftLabel.strokeWidth = .relative(scale: 1.4) 24 | rocksLabel.strokeColor = .gray 25 | swiftLabel.characterSpacing = .absolute(value: 20.0) 26 | rocksLabel.wordSpacing = .relative(scale: 0.5) 27 | 28 | rocksLabel.animationEnabled = true 29 | } 30 | 31 | } 32 | 33 | -------------------------------------------------------------------------------- /UIStrokeAnimatedLabelDemo/DrawTextAnimationDemoTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/franklinsch/iOSDrawTextAnimation/b4a2a7f2d0d0d83f1631f6298fb83d286abf609b/demo.gif -------------------------------------------------------------------------------- /ib-customization.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/franklinsch/iOSDrawTextAnimation/b4a2a7f2d0d0d83f1631f6298fb83d286abf609b/ib-customization.png -------------------------------------------------------------------------------- /ib-setup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/franklinsch/iOSDrawTextAnimation/b4a2a7f2d0d0d83f1631f6298fb83d286abf609b/ib-setup.png --------------------------------------------------------------------------------