├── screenshot.png
├── ExampleTests
├── ReferenceImages_64
│ └── ExampleTests.TestCase0
│ │ ├── testFullDrawn0@2x.png
│ │ ├── testFullDrawn1@2x.png
│ │ ├── testFullDrawn2@2x.png
│ │ ├── testFullDrawn3@2x.png
│ │ ├── testFullDrawn4@2x.png
│ │ ├── testFullDrawn5@2x.png
│ │ ├── testFullDrawn6@2x.png
│ │ └── testFullDrawn7@2x.png
├── Info.plist
└── StrokesTest.swift
├── StrokeDrawingView.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── swiftpm
│ │ └── Package.resolved
├── xcshareddata
│ └── xcschemes
│ │ ├── StrokeDrawingView.xcscheme
│ │ └── Example.xcscheme
└── project.pbxproj
├── .travis.yml
├── StrokeDrawingView
├── StrokeDrawingView.h
├── Info.plist
├── BackgroundLayer.swift
└── StrokeDrawingView.swift
├── Example
├── Kanji.swift
├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── Info.plist
├── ViewController.swift
├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
└── AppDelegate.swift
├── LICENSE
├── .gitignore
└── README.md
/screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haawa799/StrokeDrawingView/HEAD/screenshot.png
--------------------------------------------------------------------------------
/ExampleTests/ReferenceImages_64/ExampleTests.TestCase0/testFullDrawn0@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haawa799/StrokeDrawingView/HEAD/ExampleTests/ReferenceImages_64/ExampleTests.TestCase0/testFullDrawn0@2x.png
--------------------------------------------------------------------------------
/ExampleTests/ReferenceImages_64/ExampleTests.TestCase0/testFullDrawn1@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haawa799/StrokeDrawingView/HEAD/ExampleTests/ReferenceImages_64/ExampleTests.TestCase0/testFullDrawn1@2x.png
--------------------------------------------------------------------------------
/ExampleTests/ReferenceImages_64/ExampleTests.TestCase0/testFullDrawn2@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haawa799/StrokeDrawingView/HEAD/ExampleTests/ReferenceImages_64/ExampleTests.TestCase0/testFullDrawn2@2x.png
--------------------------------------------------------------------------------
/ExampleTests/ReferenceImages_64/ExampleTests.TestCase0/testFullDrawn3@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haawa799/StrokeDrawingView/HEAD/ExampleTests/ReferenceImages_64/ExampleTests.TestCase0/testFullDrawn3@2x.png
--------------------------------------------------------------------------------
/ExampleTests/ReferenceImages_64/ExampleTests.TestCase0/testFullDrawn4@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haawa799/StrokeDrawingView/HEAD/ExampleTests/ReferenceImages_64/ExampleTests.TestCase0/testFullDrawn4@2x.png
--------------------------------------------------------------------------------
/ExampleTests/ReferenceImages_64/ExampleTests.TestCase0/testFullDrawn5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haawa799/StrokeDrawingView/HEAD/ExampleTests/ReferenceImages_64/ExampleTests.TestCase0/testFullDrawn5@2x.png
--------------------------------------------------------------------------------
/ExampleTests/ReferenceImages_64/ExampleTests.TestCase0/testFullDrawn6@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haawa799/StrokeDrawingView/HEAD/ExampleTests/ReferenceImages_64/ExampleTests.TestCase0/testFullDrawn6@2x.png
--------------------------------------------------------------------------------
/ExampleTests/ReferenceImages_64/ExampleTests.TestCase0/testFullDrawn7@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/haawa799/StrokeDrawingView/HEAD/ExampleTests/ReferenceImages_64/ExampleTests.TestCase0/testFullDrawn7@2x.png
--------------------------------------------------------------------------------
/StrokeDrawingView.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/StrokeDrawingView.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: objective-c
2 | osx_image: xcode8.3
3 | xcode_project: StrokeDrawingView.xcodeproj
4 | env:
5 | - ACTION=test PLATFORM=iOS SCHEME='Example' DESTINATION='platform=iOS Simulator,OS=10.3,name=iPhone SE'
6 |
7 | install:
8 | - carthage bootstrap --platform $PLATFORM
9 |
10 | script:
11 | - set -o pipefail && xcodebuild -scheme "$SCHEME" -destination "$DESTINATION" clean $ACTION | xcpretty
12 |
--------------------------------------------------------------------------------
/StrokeDrawingView/StrokeDrawingView.h:
--------------------------------------------------------------------------------
1 | //
2 | // StrokeDrawingView.h
3 | // StrokeDrawingView
4 | //
5 | // Created by Andrii Kharchyshyn on 5/2/17.
6 | // Copyright © 2017 @haawa799. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | //! Project version number for StrokeDrawingView.
12 | FOUNDATION_EXPORT double StrokeDrawingViewVersionNumber;
13 |
14 | //! Project version string for StrokeDrawingView.
15 | FOUNDATION_EXPORT const unsigned char StrokeDrawingViewVersionString[];
16 |
17 | // In this header, you should import all the public headers of your framework using statements like #import
18 |
19 |
20 |
--------------------------------------------------------------------------------
/ExampleTests/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 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/Example/Kanji.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Kanji.swift
3 | // StrokeDrawingView
4 | //
5 | // Created by Andrii Kharchyshyn on 5/3/17.
6 | // Copyright © 2017 @haawa799. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import KanjiStrokesKit
11 |
12 | struct Kanji {
13 |
14 | static let kanjiProvider = try! KanjiProvider()
15 |
16 | let color0 = UIColor(red:0.95, green:0, blue:0.63, alpha:1)
17 | let color1 = UIColor(red:0.63, green:0, blue:0.95, alpha:1)
18 | let color2 = UIColor(red:0.23, green:0.7, blue:0.96, alpha:1)
19 |
20 |
21 | let bezierPathes: [UIBezierPath]
22 | let kanji: String
23 |
24 | init(kanji: String) {
25 | self.kanji = kanji
26 | self.bezierPathes = Kanji.kanjiProvider.pathesForKanji(kanji) ?? []
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/StrokeDrawingView/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 |
--------------------------------------------------------------------------------
/StrokeDrawingView.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved:
--------------------------------------------------------------------------------
1 | {
2 | "object": {
3 | "pins": [
4 | {
5 | "package": "KanjiStrokesKit",
6 | "repositoryURL": "https://github.com/haawa799/KanjiStrokesKit",
7 | "state": {
8 | "branch": null,
9 | "revision": "919c715f29e150279c9c1b1f7bfc2d1e222769cc",
10 | "version": "1.0.5"
11 | }
12 | },
13 | {
14 | "package": "Realm",
15 | "repositoryURL": "https://github.com/realm/realm-cocoa.git",
16 | "state": {
17 | "branch": null,
18 | "revision": "bdbbd57f411a0f4e72b359113dbc6d23fdf96680",
19 | "version": "10.20.0"
20 | }
21 | },
22 | {
23 | "package": "RealmDatabase",
24 | "repositoryURL": "https://github.com/realm/realm-core",
25 | "state": {
26 | "branch": null,
27 | "revision": "c3c11a841642ac93c27bd1edd61f989fc0bfb809",
28 | "version": "11.6.1"
29 | }
30 | }
31 | ]
32 | },
33 | "version": 1
34 | }
35 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2015 Andriy K.
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/StrokeDrawingView/BackgroundLayer.swift:
--------------------------------------------------------------------------------
1 | //
2 | // BackgroundLayer.swift
3 | // Pods
4 | //
5 | // Created by Andriy K. on 12/28/15.
6 | //
7 | //
8 |
9 | import UIKit
10 |
11 | class BackgroundLayer: CALayer {
12 |
13 | var strokes: [UIBezierPath]?
14 |
15 | var strokeColor = UIColor(red: 119/255, green: 119/255, blue: 119/255, alpha: 0.5)
16 |
17 | override init() {
18 | super.init()
19 | // self.delegate = self
20 | }
21 |
22 | required init?(coder aDecoder: NSCoder) {
23 | super.init(coder: aDecoder)
24 | // self.delegate = self
25 | }
26 |
27 | override init(layer: Any) {
28 | super.init(layer: layer)
29 | self.delegate = self
30 | }
31 |
32 | override func draw(in ctx: CGContext) {
33 | super.draw(in: ctx)
34 |
35 | guard let strokes = strokes else { return }
36 |
37 | for stroke in strokes {
38 | ctx.setStrokeColor(strokeColor.cgColor)
39 | ctx.setLineWidth(stroke.lineWidth - 1)
40 | ctx.addPath(stroke.cgPath)
41 | ctx.drawPath(using: .stroke)
42 | }
43 |
44 | }
45 |
46 | }
47 |
48 | extension BackgroundLayer: CALayerDelegate {
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/Example/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "ipad",
35 | "size" : "29x29",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "29x29",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "40x40",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "40x40",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "76x76",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "76x76",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
--------------------------------------------------------------------------------
/Example/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 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UILaunchStoryboardName
24 | LaunchScreen
25 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/.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 | *.xccheckout
23 | *.xcscmblueprint
24 |
25 | ## Obj-C/Swift specific
26 | *.hmap
27 | *.ipa
28 | *.dSYM.zip
29 | *.dSYM
30 |
31 | ## Playgrounds
32 | timeline.xctimeline
33 | playground.xcworkspace
34 |
35 | # Swift Package Manager
36 | #
37 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
38 | # Packages/
39 | # Package.pins
40 | .build/
41 |
42 | # CocoaPods
43 | #
44 | # We recommend against adding the Pods directory to your .gitignore. However
45 | # you should judge for yourself, the pros and cons are mentioned at:
46 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
47 | #
48 | # Pods/
49 |
50 | # Carthage
51 | #
52 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
53 | Carthage/Checkouts
54 | Carthage/Build
55 |
56 | # fastlane
57 | #
58 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
59 | # screenshots whenever they are needed.
60 | # For more information about the recommended setup visit:
61 | # https://docs.fastlane.tools/best-practices/source-control/#source-control
62 |
63 | fastlane/report.xml
64 | fastlane/Preview.html
65 | fastlane/screenshots
66 | fastlane/test_output
67 |
68 | *.DS_Store
69 |
--------------------------------------------------------------------------------
/Example/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // Example
4 | //
5 | // Created by Andrii Kharchyshyn on 5/2/17.
6 | // Copyright © 2017 @haawa799. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import StrokeDrawingView
11 |
12 | class ViewController: UIViewController {
13 |
14 | let kanji = Kanji(kanji: "数")
15 | var shouldPlay = true
16 |
17 | @IBOutlet weak var strokedView: StrokeDrawingView! {
18 | didSet {
19 | self.strokedView.dataSource = self
20 | }
21 | }
22 |
23 | override func viewDidAppear(_ animated: Bool) {
24 | super.viewDidAppear(animated)
25 |
26 | if shouldPlay == true {
27 | strokedView.playForever(delayBeforeEach: 2)
28 | shouldPlay = false
29 | }
30 | }
31 | }
32 |
33 | extension ViewController: StrokeDrawingViewDataSource {
34 | func sizeOfDrawing() -> CGSize {
35 | return CGSize(width: 109, height: 109)
36 | }
37 |
38 | func numberOfStrokes() -> Int {
39 | return kanji.bezierPathes.count
40 | }
41 |
42 | func pathForIndex(index: Int) -> UIBezierPath {
43 | let path = kanji.bezierPathes[index]
44 | path.lineWidth = 3
45 | return path
46 | }
47 |
48 | func animationDurationForStroke(index: Int) -> CFTimeInterval {
49 | return 0.5
50 | }
51 |
52 | func colorForStrokeAtIndex(index: Int) -> UIColor {
53 | switch index {
54 | case 0...5: return kanji.color0
55 | case 5...8: return kanji.color1
56 | default: return kanji.color2
57 | }
58 | }
59 |
60 | func colorForUnderlineStrokes() -> UIColor? {
61 | return UIColor.lightGray
62 | }
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/Example/Base.lproj/LaunchScreen.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 |
28 |
--------------------------------------------------------------------------------
/Example/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // Example
4 | //
5 | // Created by Andrii Kharchyshyn on 5/2/17.
6 | // Copyright © 2017 @haawa799. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 | var window: UIWindow?
15 |
16 |
17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
18 | // Override point for customization after application launch.
19 | return true
20 | }
21 |
22 | func applicationWillResignActive(_ application: UIApplication) {
23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
25 | }
26 |
27 | func applicationDidEnterBackground(_ application: UIApplication) {
28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30 | }
31 |
32 | func applicationWillEnterForeground(_ application: UIApplication) {
33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
34 | }
35 |
36 | func applicationDidBecomeActive(_ application: UIApplication) {
37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
38 | }
39 |
40 | func applicationWillTerminate(_ application: UIApplication) {
41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42 | }
43 |
44 |
45 | }
46 |
47 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # StrokeDrawingView 🖌🎨🈲
2 |
3 | [](https://travis-ci.org/haawa799/StrokeDrawingView)
4 | [](http://cocoapods.org/pods/StrokeDrawingView)
5 | [](http://cocoapods.org/pods/StrokeDrawingView)
6 |
7 | #### ```StrokeDrawingView``` allows you to display stroke-by-stroke drawing. All you need to provide is and array of ```UIBezierPath```.
8 |
9 |
10 |
11 | ## Result
12 |
13 | 
14 |
15 | ## Usage
16 |
17 | #### 0. Import
18 |
19 | ```swift
20 | import StrokeDrawingView
21 | ```
22 |
23 | #### 1. Create a StrokeDrawingView
24 |
25 | ###### In code :
26 |
27 | ```swift
28 | let drawingView = StrokeDrawingView(frame: CGRect(x: 0, y: 0, width: 500, height: 500))
29 | ```
30 |
31 | ###### Or use it from storyboard as an outlet :
32 |
33 | ```swift
34 | @IBOutlet weak var drawingView: StrokeDrawingView!
35 | ```
36 |
37 | #### 2. Set it's ```datasource```
38 |
39 | ```swift
40 | strokedView.dataSource = self
41 | ```
42 |
43 | #### 3. Implement ```datasource``` methods
44 |
45 | ```swift
46 | extension ViewController: StrokeDrawingViewDataSource {
47 |
48 | // For proper view scaling
49 | func sizeOfDrawing() -> CGSize {
50 | return CGSize(width: 100, height: 100) // size of your drawing
51 | }
52 |
53 | // Number of strokes (UIBezierPathes) that your drawing has
54 | func numberOfStrokes() -> Int {
55 | return bezierPathes.count
56 | }
57 |
58 | // Provide your strokes here
59 | func pathForIndex(index: Int) -> UIBezierPath {
60 | let path = bezierPathes[index]
61 | path.lineWidth = 3 // lineWidth of each UIBezierPath is used when drawn
62 | return path
63 | }
64 |
65 | // You can set different duration for each stroke (eg. based on the length of each one)
66 | func animationDurationForStroke(index: Int) -> CFTimeInterval {
67 | return 0.5
68 | }
69 |
70 | // You can specify different colors for your strokes
71 | func colorForStrokeAtIndex(index: Int) -> UIColor {
72 | switch index {
73 | case 0...5: return color0
74 | case 5...8: return color1
75 | default: return color2
76 | }
77 | }
78 | }
79 | ```
80 |
81 | #### 4. Use following methods to control animation
82 | ```swift
83 | /// Use this method to run looped animation
84 | func playForever(delayBeforeEach: CFTimeInterval = 0) {
85 |
86 | /// Use this method to stop looped animation
87 | public func stopForeverAnimation()
88 |
89 | /// Use this method to run single animation cycle
90 | public func playSingleAnimation()
91 |
92 | /// Use this method to reset all strokes layers progress to 'progress'
93 | /// Can be value from 0 to 1
94 | public func setStrokesProgress(progress: CGFloat)
95 | ```
96 |
97 | ## Installation
98 |
99 | StrokeDrawingView is available through Carthage.
100 |
101 | ## Author
102 |
103 | Andriy Kharchyshyn., @haawa799
104 |
105 | haawaplus@gmail.com
106 |
107 | ## License
108 |
109 | StrokeDrawingView is available under the MIT license. See the LICENSE file for more info.
110 |
--------------------------------------------------------------------------------
/Example/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 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/StrokeDrawingView.xcodeproj/xcshareddata/xcschemes/StrokeDrawingView.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
42 |
48 |
49 |
50 |
51 |
52 |
62 |
63 |
69 |
70 |
71 |
72 |
78 |
79 |
85 |
86 |
87 |
88 |
90 |
91 |
94 |
95 |
96 |
--------------------------------------------------------------------------------
/ExampleTests/StrokesTest.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewTest.swift
3 | // StrokeDrawingView
4 | //
5 | // Created by Andriy K. on 12/2/15.
6 | // Copyright © 2015 CocoaPods. All rights reserved.
7 | //
8 |
9 | import FBSnapshotTestCase
10 | import UIKit
11 | import StrokeDrawingView
12 | @testable import Example
13 |
14 |
15 | class TestCase0: FBSnapshotTestCase {
16 |
17 | var viewToTest: StrokeDrawingView!
18 |
19 | override func setUp() {
20 | super.setUp()
21 | viewToTest = StrokeDrawingView(frame: CGRect(x: 0, y: 0, width: 500, height: 500))
22 | viewToTest.backgroundColor = UIColor.white
23 | viewToTest.dataSource = TestDataSource(version: 0)
24 | viewToTest.setStrokesProgress(progress: 1)
25 | viewToTest.draw(viewToTest.bounds)
26 | // recordMode = true
27 | usesDrawViewHierarchyInRect = true
28 | }
29 |
30 | func testFullDrawn0() {
31 | viewToTest.dataSource = TestDataSource(version: 0)
32 | viewToTest.setStrokesProgress(progress: 1)
33 | viewToTest.draw(viewToTest.bounds)
34 | FBSnapshotVerifyView(viewToTest)
35 | }
36 |
37 | func testFullDrawn1() {
38 | viewToTest.dataSource = TestDataSource(version: 1)
39 | viewToTest.setStrokesProgress(progress: 1)
40 | viewToTest.draw(viewToTest.bounds)
41 |
42 | FBSnapshotVerifyView(viewToTest)
43 | }
44 |
45 | func testFullDrawn2() {
46 | viewToTest.dataSource = TestDataSource(version: 2)
47 | viewToTest.setStrokesProgress(progress: 1)
48 | viewToTest.draw(viewToTest.bounds)
49 |
50 | FBSnapshotVerifyView(viewToTest)
51 | }
52 |
53 | func testFullDrawn3() {
54 | viewToTest.dataSource = TestDataSource(version: 3)
55 | viewToTest.setStrokesProgress(progress: 1)
56 | viewToTest.draw(viewToTest.bounds)
57 |
58 | FBSnapshotVerifyView(viewToTest)
59 | }
60 |
61 | func testFullDrawn4() {
62 | viewToTest.dataSource = TestDataSource(version: 4)
63 | viewToTest.setStrokesProgress(progress: 1)
64 | viewToTest.draw(viewToTest.bounds)
65 |
66 | FBSnapshotVerifyView(viewToTest)
67 | }
68 |
69 | func testFullDrawn5() {
70 | viewToTest.dataSource = TestDataSource(version: 5)
71 | viewToTest.setStrokesProgress(progress: 1)
72 | viewToTest.draw(viewToTest.bounds)
73 |
74 | FBSnapshotVerifyView(viewToTest)
75 | }
76 |
77 | func testFullDrawn6() {
78 | viewToTest.dataSource = TestDataSource(version: 6)
79 | viewToTest.setStrokesProgress(progress: 1)
80 | viewToTest.draw(viewToTest.bounds)
81 |
82 | FBSnapshotVerifyView(viewToTest)
83 | }
84 |
85 | func testFullDrawn7() {
86 | viewToTest.dataSource = TestDataSource(version: 7)
87 | viewToTest.setStrokesProgress(progress: 1)
88 | viewToTest.draw(viewToTest.bounds)
89 |
90 | FBSnapshotVerifyView(viewToTest)
91 | }
92 |
93 | }
94 |
95 | class TestDataSource : StrokeDrawingViewDataSource {
96 |
97 | let kanjiArray = [Kanji(kanji: "数"),Kanji(kanji: "京"),Kanji(kanji: "苦"),Kanji(kanji: "働"),Kanji(kanji: "指"),Kanji(kanji: "郎"),Kanji(kanji: "病"),Kanji(kanji: "院")]
98 | let index: Int
99 | var kanji: Kanji {
100 | return kanjiArray[index]
101 | }
102 |
103 | init(version: Int) {
104 | index = version
105 | }
106 |
107 | func sizeOfDrawing() -> CGSize {
108 | return CGSize(width: 109, height: 109)
109 | }
110 |
111 | func numberOfStrokes() -> Int {
112 | return kanji.bezierPathes.count
113 | }
114 |
115 | func pathForIndex(index: Int) -> UIBezierPath {
116 | let p = kanji.bezierPathes[index]
117 | p.lineWidth = 3
118 | return p
119 | }
120 |
121 | func animationDurationForStroke(index: Int) -> CFTimeInterval {
122 | return 1
123 | }
124 |
125 | func colorForStrokeAtIndex(index: Int) -> UIColor {
126 | switch index {
127 | case 0...5: return kanji.color0
128 | case 5...8: return kanji.color1
129 | default: return kanji.color2
130 | }
131 | }
132 |
133 | func colorForUnderlineStrokes() -> UIColor? {
134 | return nil
135 | }
136 | }
137 |
138 | extension UIImage {
139 | convenience init(view: UIView) {
140 | UIGraphicsBeginImageContext(view.frame.size)
141 | view.layer.render(in: UIGraphicsGetCurrentContext()!)
142 | let image = UIGraphicsGetImageFromCurrentImageContext()
143 | UIGraphicsEndImageContext()
144 | self.init(cgImage: image!.cgImage!)
145 | }
146 | }
147 |
148 |
--------------------------------------------------------------------------------
/StrokeDrawingView.xcodeproj/xcshareddata/xcschemes/Example.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
42 |
48 |
49 |
50 |
51 |
52 |
62 |
64 |
70 |
71 |
72 |
73 |
77 |
78 |
82 |
83 |
84 |
85 |
91 |
93 |
99 |
100 |
101 |
102 |
104 |
105 |
108 |
109 |
110 |
--------------------------------------------------------------------------------
/StrokeDrawingView/StrokeDrawingView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // StrokeDrawingView.swift
3 | // StrokeDrawingView
4 | //
5 | // HAVE A NICE DAY!
6 | // ₍ᐢ•ﻌ•ᐢ₎*・゚。
7 | //
8 | // Created by Andrew Kharchyshyn
9 | // Copyright (c) 2015 StrokeDrawingView. All rights reserved.
10 | //
11 | // Permission is hereby granted, free of charge, to any person obtaining a copy
12 | // of this software and associated documentation files (the "Software"), to deal
13 | // in the Software without restriction, including without limitation the rights
14 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15 | // copies of the Software, and to permit persons to whom the Software is
16 | // furnished to do so, subject to the following conditions:
17 | //
18 | // The above copyright notice and this permission notice shall be included in
19 | // all copies or substantial portions of the Software.
20 | //
21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27 | // THE SOFTWARE.
28 |
29 |
30 | import UIKit
31 |
32 |
33 | public protocol StrokeDrawingViewDataSource: AnyObject {
34 | func sizeOfDrawing() -> CGSize
35 | func numberOfStrokes() -> Int
36 | func pathForIndex(index: Int) -> UIBezierPath
37 | func animationDurationForStroke(index: Int) -> CFTimeInterval
38 | func colorForStrokeAtIndex(index: Int) -> UIColor
39 | func colorForUnderlineStrokes() -> UIColor?
40 | }
41 |
42 | public protocol StrokeDrawingViewDataDelegate: AnyObject {
43 | func layersAreNowReadyForAnimation()
44 | }
45 |
46 | public class StrokeDrawingView: UIView {
47 |
48 | fileprivate let defaultMiterLimit: CGFloat = 4
49 | fileprivate var numberOfStrokes: Int { return dataSource?.numberOfStrokes() ?? 0 }
50 | fileprivate var shouldDraw = false
51 | fileprivate var strokeLayers = [CAShapeLayer]()
52 | fileprivate var backgroundLayer = BackgroundLayer()
53 | fileprivate var drawingSize = CGSize.zero
54 | fileprivate var animations = [CABasicAnimation]()
55 | fileprivate var timer: Timer?
56 |
57 | deinit {
58 | timer?.invalidate()
59 | }
60 |
61 | // MARK: - Public API
62 | /// Custom drawing starts afte this property is set
63 | public var dataSource: StrokeDrawingViewDataSource? {
64 | didSet {
65 | guard let dataSource = dataSource else {return}
66 | drawingSize = dataSource.sizeOfDrawing()
67 | shouldDraw = true
68 | setNeedsDisplay()
69 | }
70 | }
71 |
72 | public var delegate: StrokeDrawingViewDataDelegate?
73 |
74 | /// Use this method to run looped animation
75 | public func playForever(delayBeforeEach: CFTimeInterval = 0) {
76 |
77 | guard let dataSource = dataSource else {return}
78 | let numberOfStrokes = dataSource.numberOfStrokes()
79 | var animationDuration: CFTimeInterval = 0
80 | for i in 0.. 0 {
160 |
161 | layer.addSublayer(backgroundLayer)
162 |
163 | for strokeIndex in 0.. CABasicAnimation {
183 | let baseAnim = CABasicAnimation(keyPath: "strokeEnd")
184 | baseAnim.duration = duration
185 | baseAnim.beginTime = delayTime
186 | baseAnim.fromValue = 0
187 | baseAnim.fillMode = CAMediaTimingFillMode.forwards
188 | baseAnim.isRemovedOnCompletion = removeOnComletion
189 | baseAnim.toValue = 1
190 | return baseAnim
191 | }
192 |
193 | public override func draw(_ rect: CGRect) {
194 | drawIfNeeded()
195 | }
196 |
197 | public override func layoutSubviews() {
198 | super.layoutSubviews()
199 |
200 | guard let dataSource = dataSource, strokeLayers.count > 0 else {return}
201 |
202 | let scale: CGFloat = bounds.height / drawingSize.height
203 |
204 | var pathes = [UIBezierPath]()
205 |
206 | for strokeIndex in 0.. Void) {
254 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) {
255 | closure()
256 | }
257 | }
258 |
259 |
--------------------------------------------------------------------------------
/StrokeDrawingView.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 52;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 257480E92757ABB1007065BB /* KanjiStrokesKit in Frameworks */ = {isa = PBXBuildFile; productRef = 257480E82757ABB1007065BB /* KanjiStrokesKit */; };
11 | 5D63B78F1EB9BC740065037F /* Kanji.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5D63B78E1EB9BC740065037F /* Kanji.swift */; };
12 | 5D7234A51EB8D49B00668423 /* StrokeDrawingView.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D7234971EB8D49B00668423 /* StrokeDrawingView.h */; settings = {ATTRIBUTES = (Public, ); }; };
13 | 5D7234B01EB8D50400668423 /* BackgroundLayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5D7234AE1EB8D50400668423 /* BackgroundLayer.swift */; };
14 | 5D7234B11EB8D50400668423 /* StrokeDrawingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5D7234AF1EB8D50400668423 /* StrokeDrawingView.swift */; };
15 | 5D7234B91EB8D71000668423 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5D7234B81EB8D71000668423 /* AppDelegate.swift */; };
16 | 5D7234BB1EB8D71000668423 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5D7234BA1EB8D71000668423 /* ViewController.swift */; };
17 | 5D7234BE1EB8D71000668423 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5D7234BC1EB8D71000668423 /* Main.storyboard */; };
18 | 5D7234C01EB8D71000668423 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5D7234BF1EB8D71000668423 /* Assets.xcassets */; };
19 | 5D7234C31EB8D71000668423 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5D7234C11EB8D71000668423 /* LaunchScreen.storyboard */; };
20 | 5D7234C81EB8D72D00668423 /* StrokeDrawingView.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D7234941EB8D49B00668423 /* StrokeDrawingView.framework */; };
21 | 5DA7D6E11EB9CA4E00FBE760 /* StrokesTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5DA7D6E01EB9CA4E00FBE760 /* StrokesTest.swift */; };
22 | /* End PBXBuildFile section */
23 |
24 | /* Begin PBXContainerItemProxy section */
25 | 5DA7D6DB1EB9CA1300FBE760 /* PBXContainerItemProxy */ = {
26 | isa = PBXContainerItemProxy;
27 | containerPortal = 5D72348B1EB8D49B00668423 /* Project object */;
28 | proxyType = 1;
29 | remoteGlobalIDString = 5D7234B51EB8D71000668423;
30 | remoteInfo = Example;
31 | };
32 | /* End PBXContainerItemProxy section */
33 |
34 | /* Begin PBXFileReference section */
35 | 5D63B78E1EB9BC740065037F /* Kanji.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Kanji.swift; sourceTree = ""; };
36 | 5D7234941EB8D49B00668423 /* StrokeDrawingView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = StrokeDrawingView.framework; sourceTree = BUILT_PRODUCTS_DIR; };
37 | 5D7234971EB8D49B00668423 /* StrokeDrawingView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StrokeDrawingView.h; sourceTree = ""; };
38 | 5D7234981EB8D49B00668423 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
39 | 5D7234AE1EB8D50400668423 /* BackgroundLayer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BackgroundLayer.swift; sourceTree = ""; };
40 | 5D7234AF1EB8D50400668423 /* StrokeDrawingView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StrokeDrawingView.swift; sourceTree = ""; };
41 | 5D7234B61EB8D71000668423 /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
42 | 5D7234B81EB8D71000668423 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
43 | 5D7234BA1EB8D71000668423 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
44 | 5D7234BD1EB8D71000668423 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
45 | 5D7234BF1EB8D71000668423 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
46 | 5D7234C21EB8D71000668423 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
47 | 5D7234C41EB8D71000668423 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
48 | 5DA7D6D61EB9CA1300FBE760 /* ExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
49 | 5DA7D6DA1EB9CA1300FBE760 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
50 | 5DA7D6E01EB9CA4E00FBE760 /* StrokesTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StrokesTest.swift; sourceTree = ""; };
51 | /* End PBXFileReference section */
52 |
53 | /* Begin PBXFrameworksBuildPhase section */
54 | 5D7234901EB8D49B00668423 /* Frameworks */ = {
55 | isa = PBXFrameworksBuildPhase;
56 | buildActionMask = 2147483647;
57 | files = (
58 | 257480E92757ABB1007065BB /* KanjiStrokesKit in Frameworks */,
59 | );
60 | runOnlyForDeploymentPostprocessing = 0;
61 | };
62 | 5D7234B31EB8D71000668423 /* Frameworks */ = {
63 | isa = PBXFrameworksBuildPhase;
64 | buildActionMask = 2147483647;
65 | files = (
66 | 5D7234C81EB8D72D00668423 /* StrokeDrawingView.framework in Frameworks */,
67 | );
68 | runOnlyForDeploymentPostprocessing = 0;
69 | };
70 | 5DA7D6D31EB9CA1300FBE760 /* Frameworks */ = {
71 | isa = PBXFrameworksBuildPhase;
72 | buildActionMask = 2147483647;
73 | files = (
74 | );
75 | runOnlyForDeploymentPostprocessing = 0;
76 | };
77 | /* End PBXFrameworksBuildPhase section */
78 |
79 | /* Begin PBXGroup section */
80 | 5D63B7861EB9BB660065037F /* Frameworks */ = {
81 | isa = PBXGroup;
82 | children = (
83 | );
84 | name = Frameworks;
85 | sourceTree = "";
86 | };
87 | 5D72348A1EB8D49B00668423 = {
88 | isa = PBXGroup;
89 | children = (
90 | 5D7234961EB8D49B00668423 /* StrokeDrawingView */,
91 | 5D7234B71EB8D71000668423 /* Example */,
92 | 5DA7D6D71EB9CA1300FBE760 /* ExampleTests */,
93 | 5D7234951EB8D49B00668423 /* Products */,
94 | 5D63B7861EB9BB660065037F /* Frameworks */,
95 | );
96 | sourceTree = "";
97 | };
98 | 5D7234951EB8D49B00668423 /* Products */ = {
99 | isa = PBXGroup;
100 | children = (
101 | 5D7234941EB8D49B00668423 /* StrokeDrawingView.framework */,
102 | 5D7234B61EB8D71000668423 /* Example.app */,
103 | 5DA7D6D61EB9CA1300FBE760 /* ExampleTests.xctest */,
104 | );
105 | name = Products;
106 | sourceTree = "";
107 | };
108 | 5D7234961EB8D49B00668423 /* StrokeDrawingView */ = {
109 | isa = PBXGroup;
110 | children = (
111 | 5D7234AE1EB8D50400668423 /* BackgroundLayer.swift */,
112 | 5D7234AF1EB8D50400668423 /* StrokeDrawingView.swift */,
113 | 5D7234971EB8D49B00668423 /* StrokeDrawingView.h */,
114 | 5D7234981EB8D49B00668423 /* Info.plist */,
115 | );
116 | path = StrokeDrawingView;
117 | sourceTree = "";
118 | };
119 | 5D7234B71EB8D71000668423 /* Example */ = {
120 | isa = PBXGroup;
121 | children = (
122 | 5D7234B81EB8D71000668423 /* AppDelegate.swift */,
123 | 5D7234BA1EB8D71000668423 /* ViewController.swift */,
124 | 5D63B78E1EB9BC740065037F /* Kanji.swift */,
125 | 5D7234BC1EB8D71000668423 /* Main.storyboard */,
126 | 5D7234BF1EB8D71000668423 /* Assets.xcassets */,
127 | 5D7234C11EB8D71000668423 /* LaunchScreen.storyboard */,
128 | 5D7234C41EB8D71000668423 /* Info.plist */,
129 | );
130 | path = Example;
131 | sourceTree = "";
132 | };
133 | 5DA7D6D71EB9CA1300FBE760 /* ExampleTests */ = {
134 | isa = PBXGroup;
135 | children = (
136 | 5DA7D6E01EB9CA4E00FBE760 /* StrokesTest.swift */,
137 | 5DA7D6DA1EB9CA1300FBE760 /* Info.plist */,
138 | );
139 | path = ExampleTests;
140 | sourceTree = "";
141 | };
142 | /* End PBXGroup section */
143 |
144 | /* Begin PBXHeadersBuildPhase section */
145 | 5D7234911EB8D49B00668423 /* Headers */ = {
146 | isa = PBXHeadersBuildPhase;
147 | buildActionMask = 2147483647;
148 | files = (
149 | 5D7234A51EB8D49B00668423 /* StrokeDrawingView.h in Headers */,
150 | );
151 | runOnlyForDeploymentPostprocessing = 0;
152 | };
153 | /* End PBXHeadersBuildPhase section */
154 |
155 | /* Begin PBXNativeTarget section */
156 | 5D7234931EB8D49B00668423 /* StrokeDrawingView */ = {
157 | isa = PBXNativeTarget;
158 | buildConfigurationList = 5D7234A81EB8D49B00668423 /* Build configuration list for PBXNativeTarget "StrokeDrawingView" */;
159 | buildPhases = (
160 | 5D72348F1EB8D49B00668423 /* Sources */,
161 | 5D7234901EB8D49B00668423 /* Frameworks */,
162 | 5D7234911EB8D49B00668423 /* Headers */,
163 | 5D7234921EB8D49B00668423 /* Resources */,
164 | );
165 | buildRules = (
166 | );
167 | dependencies = (
168 | );
169 | name = StrokeDrawingView;
170 | packageProductDependencies = (
171 | 257480E82757ABB1007065BB /* KanjiStrokesKit */,
172 | );
173 | productName = StrokeDrawingView;
174 | productReference = 5D7234941EB8D49B00668423 /* StrokeDrawingView.framework */;
175 | productType = "com.apple.product-type.framework";
176 | };
177 | 5D7234B51EB8D71000668423 /* Example */ = {
178 | isa = PBXNativeTarget;
179 | buildConfigurationList = 5D7234C51EB8D71000668423 /* Build configuration list for PBXNativeTarget "Example" */;
180 | buildPhases = (
181 | 5D7234B21EB8D71000668423 /* Sources */,
182 | 5D7234B31EB8D71000668423 /* Frameworks */,
183 | 5D7234B41EB8D71000668423 /* Resources */,
184 | );
185 | buildRules = (
186 | );
187 | dependencies = (
188 | );
189 | name = Example;
190 | productName = Example;
191 | productReference = 5D7234B61EB8D71000668423 /* Example.app */;
192 | productType = "com.apple.product-type.application";
193 | };
194 | 5DA7D6D51EB9CA1300FBE760 /* ExampleTests */ = {
195 | isa = PBXNativeTarget;
196 | buildConfigurationList = 5DA7D6DD1EB9CA1300FBE760 /* Build configuration list for PBXNativeTarget "ExampleTests" */;
197 | buildPhases = (
198 | 5DA7D6D21EB9CA1300FBE760 /* Sources */,
199 | 5DA7D6D31EB9CA1300FBE760 /* Frameworks */,
200 | 5DA7D6D41EB9CA1300FBE760 /* Resources */,
201 | );
202 | buildRules = (
203 | );
204 | dependencies = (
205 | 5DA7D6DC1EB9CA1300FBE760 /* PBXTargetDependency */,
206 | );
207 | name = ExampleTests;
208 | productName = ExampleTests;
209 | productReference = 5DA7D6D61EB9CA1300FBE760 /* ExampleTests.xctest */;
210 | productType = "com.apple.product-type.bundle.unit-test";
211 | };
212 | /* End PBXNativeTarget section */
213 |
214 | /* Begin PBXProject section */
215 | 5D72348B1EB8D49B00668423 /* Project object */ = {
216 | isa = PBXProject;
217 | attributes = {
218 | LastSwiftUpdateCheck = 0830;
219 | LastUpgradeCheck = 1310;
220 | ORGANIZATIONNAME = "@haawa799";
221 | TargetAttributes = {
222 | 5D7234931EB8D49B00668423 = {
223 | CreatedOnToolsVersion = 8.3.2;
224 | LastSwiftMigration = 0830;
225 | ProvisioningStyle = Automatic;
226 | };
227 | 5D7234B51EB8D71000668423 = {
228 | CreatedOnToolsVersion = 8.3.2;
229 | ProvisioningStyle = Automatic;
230 | };
231 | 5DA7D6D51EB9CA1300FBE760 = {
232 | CreatedOnToolsVersion = 8.3.2;
233 | LastSwiftMigration = 0830;
234 | ProvisioningStyle = Automatic;
235 | TestTargetID = 5D7234B51EB8D71000668423;
236 | };
237 | };
238 | };
239 | buildConfigurationList = 5D72348E1EB8D49B00668423 /* Build configuration list for PBXProject "StrokeDrawingView" */;
240 | compatibilityVersion = "Xcode 3.2";
241 | developmentRegion = en;
242 | hasScannedForEncodings = 0;
243 | knownRegions = (
244 | en,
245 | Base,
246 | );
247 | mainGroup = 5D72348A1EB8D49B00668423;
248 | packageReferences = (
249 | 257480E72757ABB1007065BB /* XCRemoteSwiftPackageReference "KanjiStrokesKit" */,
250 | );
251 | productRefGroup = 5D7234951EB8D49B00668423 /* Products */;
252 | projectDirPath = "";
253 | projectRoot = "";
254 | targets = (
255 | 5D7234931EB8D49B00668423 /* StrokeDrawingView */,
256 | 5D7234B51EB8D71000668423 /* Example */,
257 | 5DA7D6D51EB9CA1300FBE760 /* ExampleTests */,
258 | );
259 | };
260 | /* End PBXProject section */
261 |
262 | /* Begin PBXResourcesBuildPhase section */
263 | 5D7234921EB8D49B00668423 /* Resources */ = {
264 | isa = PBXResourcesBuildPhase;
265 | buildActionMask = 2147483647;
266 | files = (
267 | );
268 | runOnlyForDeploymentPostprocessing = 0;
269 | };
270 | 5D7234B41EB8D71000668423 /* Resources */ = {
271 | isa = PBXResourcesBuildPhase;
272 | buildActionMask = 2147483647;
273 | files = (
274 | 5D7234C31EB8D71000668423 /* LaunchScreen.storyboard in Resources */,
275 | 5D7234C01EB8D71000668423 /* Assets.xcassets in Resources */,
276 | 5D7234BE1EB8D71000668423 /* Main.storyboard in Resources */,
277 | );
278 | runOnlyForDeploymentPostprocessing = 0;
279 | };
280 | 5DA7D6D41EB9CA1300FBE760 /* Resources */ = {
281 | isa = PBXResourcesBuildPhase;
282 | buildActionMask = 2147483647;
283 | files = (
284 | );
285 | runOnlyForDeploymentPostprocessing = 0;
286 | };
287 | /* End PBXResourcesBuildPhase section */
288 |
289 | /* Begin PBXSourcesBuildPhase section */
290 | 5D72348F1EB8D49B00668423 /* Sources */ = {
291 | isa = PBXSourcesBuildPhase;
292 | buildActionMask = 2147483647;
293 | files = (
294 | 5D7234B01EB8D50400668423 /* BackgroundLayer.swift in Sources */,
295 | 5D7234B11EB8D50400668423 /* StrokeDrawingView.swift in Sources */,
296 | );
297 | runOnlyForDeploymentPostprocessing = 0;
298 | };
299 | 5D7234B21EB8D71000668423 /* Sources */ = {
300 | isa = PBXSourcesBuildPhase;
301 | buildActionMask = 2147483647;
302 | files = (
303 | 5D7234BB1EB8D71000668423 /* ViewController.swift in Sources */,
304 | 5D7234B91EB8D71000668423 /* AppDelegate.swift in Sources */,
305 | 5D63B78F1EB9BC740065037F /* Kanji.swift in Sources */,
306 | );
307 | runOnlyForDeploymentPostprocessing = 0;
308 | };
309 | 5DA7D6D21EB9CA1300FBE760 /* Sources */ = {
310 | isa = PBXSourcesBuildPhase;
311 | buildActionMask = 2147483647;
312 | files = (
313 | 5DA7D6E11EB9CA4E00FBE760 /* StrokesTest.swift in Sources */,
314 | );
315 | runOnlyForDeploymentPostprocessing = 0;
316 | };
317 | /* End PBXSourcesBuildPhase section */
318 |
319 | /* Begin PBXTargetDependency section */
320 | 5DA7D6DC1EB9CA1300FBE760 /* PBXTargetDependency */ = {
321 | isa = PBXTargetDependency;
322 | target = 5D7234B51EB8D71000668423 /* Example */;
323 | targetProxy = 5DA7D6DB1EB9CA1300FBE760 /* PBXContainerItemProxy */;
324 | };
325 | /* End PBXTargetDependency section */
326 |
327 | /* Begin PBXVariantGroup section */
328 | 5D7234BC1EB8D71000668423 /* Main.storyboard */ = {
329 | isa = PBXVariantGroup;
330 | children = (
331 | 5D7234BD1EB8D71000668423 /* Base */,
332 | );
333 | name = Main.storyboard;
334 | sourceTree = "";
335 | };
336 | 5D7234C11EB8D71000668423 /* LaunchScreen.storyboard */ = {
337 | isa = PBXVariantGroup;
338 | children = (
339 | 5D7234C21EB8D71000668423 /* Base */,
340 | );
341 | name = LaunchScreen.storyboard;
342 | sourceTree = "";
343 | };
344 | /* End PBXVariantGroup section */
345 |
346 | /* Begin XCBuildConfiguration section */
347 | 5D7234A61EB8D49B00668423 /* Debug */ = {
348 | isa = XCBuildConfiguration;
349 | buildSettings = {
350 | ALWAYS_SEARCH_USER_PATHS = NO;
351 | CLANG_ANALYZER_NONNULL = YES;
352 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
353 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
354 | CLANG_CXX_LIBRARY = "libc++";
355 | CLANG_ENABLE_MODULES = YES;
356 | CLANG_ENABLE_OBJC_ARC = YES;
357 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
358 | CLANG_WARN_BOOL_CONVERSION = YES;
359 | CLANG_WARN_COMMA = YES;
360 | CLANG_WARN_CONSTANT_CONVERSION = YES;
361 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
362 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
363 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
364 | CLANG_WARN_EMPTY_BODY = YES;
365 | CLANG_WARN_ENUM_CONVERSION = YES;
366 | CLANG_WARN_INFINITE_RECURSION = YES;
367 | CLANG_WARN_INT_CONVERSION = YES;
368 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
369 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
370 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
371 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
372 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
373 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
374 | CLANG_WARN_STRICT_PROTOTYPES = YES;
375 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
376 | CLANG_WARN_UNREACHABLE_CODE = YES;
377 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
378 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
379 | COPY_PHASE_STRIP = NO;
380 | CURRENT_PROJECT_VERSION = 1;
381 | DEBUG_INFORMATION_FORMAT = dwarf;
382 | ENABLE_STRICT_OBJC_MSGSEND = YES;
383 | ENABLE_TESTABILITY = YES;
384 | GCC_C_LANGUAGE_STANDARD = gnu99;
385 | GCC_DYNAMIC_NO_PIC = NO;
386 | GCC_NO_COMMON_BLOCKS = YES;
387 | GCC_OPTIMIZATION_LEVEL = 0;
388 | GCC_PREPROCESSOR_DEFINITIONS = (
389 | "DEBUG=1",
390 | "$(inherited)",
391 | );
392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
394 | GCC_WARN_UNDECLARED_SELECTOR = YES;
395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
396 | GCC_WARN_UNUSED_FUNCTION = YES;
397 | GCC_WARN_UNUSED_VARIABLE = YES;
398 | IPHONEOS_DEPLOYMENT_TARGET = 14.0;
399 | MTL_ENABLE_DEBUG_INFO = YES;
400 | ONLY_ACTIVE_ARCH = YES;
401 | SDKROOT = iphoneos;
402 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
403 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
404 | SWIFT_VERSION = 5.0;
405 | TARGETED_DEVICE_FAMILY = "1,2";
406 | VERSIONING_SYSTEM = "apple-generic";
407 | VERSION_INFO_PREFIX = "";
408 | };
409 | name = Debug;
410 | };
411 | 5D7234A71EB8D49B00668423 /* Release */ = {
412 | isa = XCBuildConfiguration;
413 | buildSettings = {
414 | ALWAYS_SEARCH_USER_PATHS = NO;
415 | CLANG_ANALYZER_NONNULL = YES;
416 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
417 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
418 | CLANG_CXX_LIBRARY = "libc++";
419 | CLANG_ENABLE_MODULES = YES;
420 | CLANG_ENABLE_OBJC_ARC = YES;
421 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
422 | CLANG_WARN_BOOL_CONVERSION = YES;
423 | CLANG_WARN_COMMA = YES;
424 | CLANG_WARN_CONSTANT_CONVERSION = YES;
425 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
426 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
427 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
428 | CLANG_WARN_EMPTY_BODY = YES;
429 | CLANG_WARN_ENUM_CONVERSION = YES;
430 | CLANG_WARN_INFINITE_RECURSION = YES;
431 | CLANG_WARN_INT_CONVERSION = YES;
432 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
433 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
434 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
435 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
436 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
437 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
438 | CLANG_WARN_STRICT_PROTOTYPES = YES;
439 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
440 | CLANG_WARN_UNREACHABLE_CODE = YES;
441 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
442 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
443 | COPY_PHASE_STRIP = NO;
444 | CURRENT_PROJECT_VERSION = 1;
445 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
446 | ENABLE_NS_ASSERTIONS = NO;
447 | ENABLE_STRICT_OBJC_MSGSEND = YES;
448 | GCC_C_LANGUAGE_STANDARD = gnu99;
449 | GCC_NO_COMMON_BLOCKS = YES;
450 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
451 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
452 | GCC_WARN_UNDECLARED_SELECTOR = YES;
453 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
454 | GCC_WARN_UNUSED_FUNCTION = YES;
455 | GCC_WARN_UNUSED_VARIABLE = YES;
456 | IPHONEOS_DEPLOYMENT_TARGET = 14.0;
457 | MTL_ENABLE_DEBUG_INFO = NO;
458 | SDKROOT = iphoneos;
459 | SWIFT_COMPILATION_MODE = wholemodule;
460 | SWIFT_OPTIMIZATION_LEVEL = "-O";
461 | SWIFT_VERSION = 5.0;
462 | TARGETED_DEVICE_FAMILY = "1,2";
463 | VALIDATE_PRODUCT = YES;
464 | VERSIONING_SYSTEM = "apple-generic";
465 | VERSION_INFO_PREFIX = "";
466 | };
467 | name = Release;
468 | };
469 | 5D7234A91EB8D49B00668423 /* Debug */ = {
470 | isa = XCBuildConfiguration;
471 | buildSettings = {
472 | CLANG_ENABLE_MODULES = YES;
473 | CODE_SIGN_IDENTITY = "";
474 | DEFINES_MODULE = YES;
475 | DYLIB_COMPATIBILITY_VERSION = 1;
476 | DYLIB_CURRENT_VERSION = 1;
477 | DYLIB_INSTALL_NAME_BASE = "@rpath";
478 | INFOPLIST_FILE = StrokeDrawingView/Info.plist;
479 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
480 | LD_RUNPATH_SEARCH_PATHS = (
481 | "$(inherited)",
482 | "@executable_path/Frameworks",
483 | "@loader_path/Frameworks",
484 | );
485 | PRODUCT_BUNDLE_IDENTIFIER = com.haawa.StrokeDrawingView;
486 | PRODUCT_NAME = "$(TARGET_NAME)";
487 | SKIP_INSTALL = YES;
488 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
489 | };
490 | name = Debug;
491 | };
492 | 5D7234AA1EB8D49B00668423 /* Release */ = {
493 | isa = XCBuildConfiguration;
494 | buildSettings = {
495 | CLANG_ENABLE_MODULES = YES;
496 | CODE_SIGN_IDENTITY = "";
497 | DEFINES_MODULE = YES;
498 | DYLIB_COMPATIBILITY_VERSION = 1;
499 | DYLIB_CURRENT_VERSION = 1;
500 | DYLIB_INSTALL_NAME_BASE = "@rpath";
501 | INFOPLIST_FILE = StrokeDrawingView/Info.plist;
502 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
503 | LD_RUNPATH_SEARCH_PATHS = (
504 | "$(inherited)",
505 | "@executable_path/Frameworks",
506 | "@loader_path/Frameworks",
507 | );
508 | PRODUCT_BUNDLE_IDENTIFIER = com.haawa.StrokeDrawingView;
509 | PRODUCT_NAME = "$(TARGET_NAME)";
510 | SKIP_INSTALL = YES;
511 | };
512 | name = Release;
513 | };
514 | 5D7234C61EB8D71000668423 /* Debug */ = {
515 | isa = XCBuildConfiguration;
516 | buildSettings = {
517 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
518 | FRAMEWORK_SEARCH_PATHS = (
519 | "$(inherited)",
520 | "$(PROJECT_DIR)/Carthage/Build/iOS",
521 | );
522 | INFOPLIST_FILE = Example/Info.plist;
523 | LD_RUNPATH_SEARCH_PATHS = (
524 | "$(inherited)",
525 | "@executable_path/Frameworks",
526 | );
527 | PRODUCT_BUNDLE_IDENTIFIER = com.haawa.Example;
528 | PRODUCT_NAME = "$(TARGET_NAME)";
529 | };
530 | name = Debug;
531 | };
532 | 5D7234C71EB8D71000668423 /* Release */ = {
533 | isa = XCBuildConfiguration;
534 | buildSettings = {
535 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
536 | FRAMEWORK_SEARCH_PATHS = (
537 | "$(inherited)",
538 | "$(PROJECT_DIR)/Carthage/Build/iOS",
539 | );
540 | INFOPLIST_FILE = Example/Info.plist;
541 | LD_RUNPATH_SEARCH_PATHS = (
542 | "$(inherited)",
543 | "@executable_path/Frameworks",
544 | );
545 | PRODUCT_BUNDLE_IDENTIFIER = com.haawa.Example;
546 | PRODUCT_NAME = "$(TARGET_NAME)";
547 | };
548 | name = Release;
549 | };
550 | 5DA7D6DE1EB9CA1300FBE760 /* Debug */ = {
551 | isa = XCBuildConfiguration;
552 | buildSettings = {
553 | BUNDLE_LOADER = "$(TEST_HOST)";
554 | CLANG_ENABLE_MODULES = YES;
555 | FRAMEWORK_SEARCH_PATHS = (
556 | "$(inherited)",
557 | "$(PROJECT_DIR)/Carthage/Build/iOS",
558 | );
559 | INFOPLIST_FILE = ExampleTests/Info.plist;
560 | LD_RUNPATH_SEARCH_PATHS = (
561 | "$(inherited)",
562 | "@executable_path/Frameworks",
563 | "@loader_path/Frameworks",
564 | );
565 | PRODUCT_BUNDLE_IDENTIFIER = com.haawa.ExampleTests;
566 | PRODUCT_NAME = "$(TARGET_NAME)";
567 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
568 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example.app/Example";
569 | };
570 | name = Debug;
571 | };
572 | 5DA7D6DF1EB9CA1300FBE760 /* Release */ = {
573 | isa = XCBuildConfiguration;
574 | buildSettings = {
575 | BUNDLE_LOADER = "$(TEST_HOST)";
576 | CLANG_ENABLE_MODULES = YES;
577 | FRAMEWORK_SEARCH_PATHS = (
578 | "$(inherited)",
579 | "$(PROJECT_DIR)/Carthage/Build/iOS",
580 | );
581 | INFOPLIST_FILE = ExampleTests/Info.plist;
582 | LD_RUNPATH_SEARCH_PATHS = (
583 | "$(inherited)",
584 | "@executable_path/Frameworks",
585 | "@loader_path/Frameworks",
586 | );
587 | PRODUCT_BUNDLE_IDENTIFIER = com.haawa.ExampleTests;
588 | PRODUCT_NAME = "$(TARGET_NAME)";
589 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Example.app/Example";
590 | };
591 | name = Release;
592 | };
593 | /* End XCBuildConfiguration section */
594 |
595 | /* Begin XCConfigurationList section */
596 | 5D72348E1EB8D49B00668423 /* Build configuration list for PBXProject "StrokeDrawingView" */ = {
597 | isa = XCConfigurationList;
598 | buildConfigurations = (
599 | 5D7234A61EB8D49B00668423 /* Debug */,
600 | 5D7234A71EB8D49B00668423 /* Release */,
601 | );
602 | defaultConfigurationIsVisible = 0;
603 | defaultConfigurationName = Release;
604 | };
605 | 5D7234A81EB8D49B00668423 /* Build configuration list for PBXNativeTarget "StrokeDrawingView" */ = {
606 | isa = XCConfigurationList;
607 | buildConfigurations = (
608 | 5D7234A91EB8D49B00668423 /* Debug */,
609 | 5D7234AA1EB8D49B00668423 /* Release */,
610 | );
611 | defaultConfigurationIsVisible = 0;
612 | defaultConfigurationName = Release;
613 | };
614 | 5D7234C51EB8D71000668423 /* Build configuration list for PBXNativeTarget "Example" */ = {
615 | isa = XCConfigurationList;
616 | buildConfigurations = (
617 | 5D7234C61EB8D71000668423 /* Debug */,
618 | 5D7234C71EB8D71000668423 /* Release */,
619 | );
620 | defaultConfigurationIsVisible = 0;
621 | defaultConfigurationName = Release;
622 | };
623 | 5DA7D6DD1EB9CA1300FBE760 /* Build configuration list for PBXNativeTarget "ExampleTests" */ = {
624 | isa = XCConfigurationList;
625 | buildConfigurations = (
626 | 5DA7D6DE1EB9CA1300FBE760 /* Debug */,
627 | 5DA7D6DF1EB9CA1300FBE760 /* Release */,
628 | );
629 | defaultConfigurationIsVisible = 0;
630 | defaultConfigurationName = Release;
631 | };
632 | /* End XCConfigurationList section */
633 |
634 | /* Begin XCRemoteSwiftPackageReference section */
635 | 257480E72757ABB1007065BB /* XCRemoteSwiftPackageReference "KanjiStrokesKit" */ = {
636 | isa = XCRemoteSwiftPackageReference;
637 | repositoryURL = "https://github.com/haawa799/KanjiStrokesKit";
638 | requirement = {
639 | kind = upToNextMajorVersion;
640 | minimumVersion = 1.0.0;
641 | };
642 | };
643 | /* End XCRemoteSwiftPackageReference section */
644 |
645 | /* Begin XCSwiftPackageProductDependency section */
646 | 257480E82757ABB1007065BB /* KanjiStrokesKit */ = {
647 | isa = XCSwiftPackageProductDependency;
648 | package = 257480E72757ABB1007065BB /* XCRemoteSwiftPackageReference "KanjiStrokesKit" */;
649 | productName = KanjiStrokesKit;
650 | };
651 | /* End XCSwiftPackageProductDependency section */
652 | };
653 | rootObject = 5D72348B1EB8D49B00668423 /* Project object */;
654 | }
655 |
--------------------------------------------------------------------------------