From 3625fb500a968dd6b1477526d92ebc3239ba0837 Mon Sep 17 00:00:00 2001 From: LEE <18611401994@163.com> Date: Fri, 23 Sep 2022 17:49:31 +0800 Subject: [PATCH] remove watch demo --- .../contents.xcworkspacedata | 3 - .../AppIcon.appiconset/Contents.json | 81 --- .../Assets.xcassets/Contents.json | 6 - .../Base.lproj/Interface.storyboard | 24 - Demo-Watch/Demo-Watch WatchKit App/Info.plist | 33 - .../Circular.imageset/Contents.json | 28 - .../Contents.json | 48 -- .../Extra Large.imageset/Contents.json | 28 - .../Graphic Bezel.imageset/Contents.json | 28 - .../Graphic Circular.imageset/Contents.json | 28 - .../Graphic Corner.imageset/Contents.json | 28 - .../Contents.json | 28 - .../Modular.imageset/Contents.json | 28 - .../Utilitarian.imageset/Contents.json | 28 - .../Assets.xcassets/Contents.json | 6 - .../ExtensionDelegate.swift | 56 -- .../Demo-Watch WatchKit Extension/Info.plist | 38 -- .../InterfaceController.swift | 117 ---- .../Demo-Watch.xcodeproj/project.pbxproj | 589 ------------------ .../Demo-Watch WatchKit App.xcscheme | 92 --- 20 files changed, 1317 deletions(-) delete mode 100644 Demo-Watch/Demo-Watch WatchKit App/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 Demo-Watch/Demo-Watch WatchKit App/Assets.xcassets/Contents.json delete mode 100644 Demo-Watch/Demo-Watch WatchKit App/Base.lproj/Interface.storyboard delete mode 100644 Demo-Watch/Demo-Watch WatchKit App/Info.plist delete mode 100644 Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Circular.imageset/Contents.json delete mode 100644 Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Contents.json delete mode 100644 Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Extra Large.imageset/Contents.json delete mode 100644 Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Bezel.imageset/Contents.json delete mode 100644 Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Circular.imageset/Contents.json delete mode 100644 Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Corner.imageset/Contents.json delete mode 100644 Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Large Rectangular.imageset/Contents.json delete mode 100644 Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Modular.imageset/Contents.json delete mode 100644 Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Utilitarian.imageset/Contents.json delete mode 100644 Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Contents.json delete mode 100644 Demo-Watch/Demo-Watch WatchKit Extension/ExtensionDelegate.swift delete mode 100644 Demo-Watch/Demo-Watch WatchKit Extension/Info.plist delete mode 100644 Demo-Watch/Demo-Watch WatchKit Extension/InterfaceController.swift delete mode 100644 Demo-Watch/Demo-Watch.xcodeproj/project.pbxproj delete mode 100644 Demo-Watch/Demo-Watch.xcodeproj/xcshareddata/xcschemes/Demo-Watch WatchKit App.xcscheme diff --git a/AttributedString.xcworkspace/contents.xcworkspacedata b/AttributedString.xcworkspace/contents.xcworkspacedata index 8e38dcb..0fd288c 100644 --- a/AttributedString.xcworkspace/contents.xcworkspacedata +++ b/AttributedString.xcworkspace/contents.xcworkspacedata @@ -4,9 +4,6 @@ - - diff --git a/Demo-Watch/Demo-Watch WatchKit App/Assets.xcassets/AppIcon.appiconset/Contents.json b/Demo-Watch/Demo-Watch WatchKit App/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index d06b66a..0000000 --- a/Demo-Watch/Demo-Watch WatchKit App/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "images" : [ - { - "idiom" : "watch", - "role" : "notificationCenter", - "scale" : "2x", - "size" : "24x24", - "subtype" : "38mm" - }, - { - "idiom" : "watch", - "role" : "notificationCenter", - "scale" : "2x", - "size" : "27.5x27.5", - "subtype" : "42mm" - }, - { - "idiom" : "watch", - "role" : "companionSettings", - "scale" : "2x", - "size" : "29x29" - }, - { - "idiom" : "watch", - "role" : "companionSettings", - "scale" : "3x", - "size" : "29x29" - }, - { - "idiom" : "watch", - "role" : "appLauncher", - "scale" : "2x", - "size" : "40x40", - "subtype" : "38mm" - }, - { - "idiom" : "watch", - "role" : "appLauncher", - "scale" : "2x", - "size" : "44x44", - "subtype" : "40mm" - }, - { - "idiom" : "watch", - "role" : "appLauncher", - "scale" : "2x", - "size" : "50x50", - "subtype" : "44mm" - }, - { - "idiom" : "watch", - "role" : "quickLook", - "scale" : "2x", - "size" : "86x86", - "subtype" : "38mm" - }, - { - "idiom" : "watch", - "role" : "quickLook", - "scale" : "2x", - "size" : "98x98", - "subtype" : "42mm" - }, - { - "idiom" : "watch", - "role" : "quickLook", - "scale" : "2x", - "size" : "108x108", - "subtype" : "44mm" - }, - { - "idiom" : "watch-marketing", - "scale" : "1x", - "size" : "1024x1024" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Demo-Watch/Demo-Watch WatchKit App/Assets.xcassets/Contents.json b/Demo-Watch/Demo-Watch WatchKit App/Assets.xcassets/Contents.json deleted file mode 100644 index 73c0059..0000000 --- a/Demo-Watch/Demo-Watch WatchKit App/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Demo-Watch/Demo-Watch WatchKit App/Base.lproj/Interface.storyboard b/Demo-Watch/Demo-Watch WatchKit App/Base.lproj/Interface.storyboard deleted file mode 100644 index 550452b..0000000 --- a/Demo-Watch/Demo-Watch WatchKit App/Base.lproj/Interface.storyboard +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Demo-Watch/Demo-Watch WatchKit App/Info.plist b/Demo-Watch/Demo-Watch WatchKit App/Info.plist deleted file mode 100644 index f7deffc..0000000 --- a/Demo-Watch/Demo-Watch WatchKit App/Info.plist +++ /dev/null @@ -1,33 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleDisplayName - Demo-Watch WatchKit App - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - $(PRODUCT_BUNDLE_PACKAGE_TYPE) - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - - WKCompanionAppBundleIdentifier - com.lee.attributedstring.demo.watch - WKWatchKitApp - - - diff --git a/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Circular.imageset/Contents.json b/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Circular.imageset/Contents.json deleted file mode 100644 index ed7de25..0000000 --- a/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Circular.imageset/Contents.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "images" : [ - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : "<=145" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">161" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">145" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">183" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Contents.json b/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Contents.json deleted file mode 100644 index df73a6b..0000000 --- a/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Contents.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "assets" : [ - { - "filename" : "Circular.imageset", - "idiom" : "watch", - "role" : "circular" - }, - { - "filename" : "Extra Large.imageset", - "idiom" : "watch", - "role" : "extra-large" - }, - { - "filename" : "Graphic Bezel.imageset", - "idiom" : "watch", - "role" : "graphic-bezel" - }, - { - "filename" : "Graphic Circular.imageset", - "idiom" : "watch", - "role" : "graphic-circular" - }, - { - "filename" : "Graphic Corner.imageset", - "idiom" : "watch", - "role" : "graphic-corner" - }, - { - "filename" : "Graphic Large Rectangular.imageset", - "idiom" : "watch", - "role" : "graphic-large-rectangular" - }, - { - "filename" : "Modular.imageset", - "idiom" : "watch", - "role" : "modular" - }, - { - "filename" : "Utilitarian.imageset", - "idiom" : "watch", - "role" : "utilitarian" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Extra Large.imageset/Contents.json b/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Extra Large.imageset/Contents.json deleted file mode 100644 index ed7de25..0000000 --- a/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Extra Large.imageset/Contents.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "images" : [ - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : "<=145" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">161" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">145" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">183" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Bezel.imageset/Contents.json b/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Bezel.imageset/Contents.json deleted file mode 100644 index ed7de25..0000000 --- a/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Bezel.imageset/Contents.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "images" : [ - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : "<=145" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">161" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">145" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">183" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Circular.imageset/Contents.json b/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Circular.imageset/Contents.json deleted file mode 100644 index ed7de25..0000000 --- a/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Circular.imageset/Contents.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "images" : [ - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : "<=145" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">161" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">145" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">183" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Corner.imageset/Contents.json b/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Corner.imageset/Contents.json deleted file mode 100644 index ed7de25..0000000 --- a/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Corner.imageset/Contents.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "images" : [ - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : "<=145" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">161" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">145" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">183" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Large Rectangular.imageset/Contents.json b/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Large Rectangular.imageset/Contents.json deleted file mode 100644 index ed7de25..0000000 --- a/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Graphic Large Rectangular.imageset/Contents.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "images" : [ - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : "<=145" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">161" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">145" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">183" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Modular.imageset/Contents.json b/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Modular.imageset/Contents.json deleted file mode 100644 index ed7de25..0000000 --- a/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Modular.imageset/Contents.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "images" : [ - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : "<=145" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">161" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">145" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">183" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Utilitarian.imageset/Contents.json b/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Utilitarian.imageset/Contents.json deleted file mode 100644 index ed7de25..0000000 --- a/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Complication.complicationset/Utilitarian.imageset/Contents.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "images" : [ - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : "<=145" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">161" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">145" - }, - { - "idiom" : "watch", - "scale" : "2x", - "screen-width" : ">183" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Contents.json b/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Contents.json deleted file mode 100644 index 73c0059..0000000 --- a/Demo-Watch/Demo-Watch WatchKit Extension/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/Demo-Watch/Demo-Watch WatchKit Extension/ExtensionDelegate.swift b/Demo-Watch/Demo-Watch WatchKit Extension/ExtensionDelegate.swift deleted file mode 100644 index 432ea19..0000000 --- a/Demo-Watch/Demo-Watch WatchKit Extension/ExtensionDelegate.swift +++ /dev/null @@ -1,56 +0,0 @@ -// -// ExtensionDelegate.swift -// Demo-Watch WatchKit Extension -// -// Created by Lee on 2020/4/10. -// Copyright © 2020 LEE. All rights reserved. -// - -import WatchKit - -class ExtensionDelegate: NSObject, WKExtensionDelegate { - - func applicationDidFinishLaunching() { - // Perform any final initialization of your application. - } - - func applicationDidBecomeActive() { - // 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. - } - - func applicationWillResignActive() { - // 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. - // Use this method to pause ongoing tasks, disable timers, etc. - } - - func handle(_ backgroundTasks: Set) { - // Sent when the system needs to launch the application in the background to process tasks. Tasks arrive in a set, so loop through and process each one. - for task in backgroundTasks { - // Use a switch statement to check the task type - switch task { - case let backgroundTask as WKApplicationRefreshBackgroundTask: - // Be sure to complete the background task once you’re done. - backgroundTask.setTaskCompletedWithSnapshot(false) - case let snapshotTask as WKSnapshotRefreshBackgroundTask: - // Snapshot tasks have a unique completion call, make sure to set your expiration date - snapshotTask.setTaskCompleted(restoredDefaultState: true, estimatedSnapshotExpiration: Date.distantFuture, userInfo: nil) - case let connectivityTask as WKWatchConnectivityRefreshBackgroundTask: - // Be sure to complete the connectivity task once you’re done. - connectivityTask.setTaskCompletedWithSnapshot(false) - case let urlSessionTask as WKURLSessionRefreshBackgroundTask: - // Be sure to complete the URL session task once you’re done. - urlSessionTask.setTaskCompletedWithSnapshot(false) - case let relevantShortcutTask as WKRelevantShortcutRefreshBackgroundTask: - // Be sure to complete the relevant-shortcut task once you're done. - relevantShortcutTask.setTaskCompletedWithSnapshot(false) - case let intentDidRunTask as WKIntentDidRunRefreshBackgroundTask: - // Be sure to complete the intent-did-run task once you're done. - intentDidRunTask.setTaskCompletedWithSnapshot(false) - default: - // make sure to complete unhandled task types - task.setTaskCompletedWithSnapshot(false) - } - } - } - -} diff --git a/Demo-Watch/Demo-Watch WatchKit Extension/Info.plist b/Demo-Watch/Demo-Watch WatchKit Extension/Info.plist deleted file mode 100644 index a508985..0000000 --- a/Demo-Watch/Demo-Watch WatchKit Extension/Info.plist +++ /dev/null @@ -1,38 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleDisplayName - Demo-Watch WatchKit Extension - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - $(PRODUCT_BUNDLE_PACKAGE_TYPE) - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - NSExtension - - NSExtensionAttributes - - WKAppBundleIdentifier - com.lee.attributedstring.demo.watch.app - - NSExtensionPointIdentifier - com.apple.watchkit - - WKExtensionDelegateClassName - $(PRODUCT_MODULE_NAME).ExtensionDelegate - WKRunsIndependentlyOfCompanionApp - - - diff --git a/Demo-Watch/Demo-Watch WatchKit Extension/InterfaceController.swift b/Demo-Watch/Demo-Watch WatchKit Extension/InterfaceController.swift deleted file mode 100644 index b53a246..0000000 --- a/Demo-Watch/Demo-Watch WatchKit Extension/InterfaceController.swift +++ /dev/null @@ -1,117 +0,0 @@ -// -// InterfaceController.swift -// Demo-Watch WatchKit Extension -// -// Created by Lee on 2020/4/10. -// Copyright © 2020 LEE. All rights reserved. -// - -import WatchKit -import AttributedString - -class InterfaceController: WKInterfaceController { - - @IBOutlet weak var label: WKInterfaceLabel! - - override func awake(withContext context: Any?) { - super.awake(withContext: context) - - let array: [ASAttributedString] = [ - .init( - """ - \("Swift", .font(.systemFont(ofSize: 48, weight: .semibold))) - - \("The powerful programming language that is also easy to learn.", .font(.systemFont(ofSize: 32, weight: .medium))) - - \("Swift is a powerful and intuitive programming language for macOS, iOS, watchOS, tvOS and beyond. Writing Swift code is interactive and fun, the syntax is concise yet expressive, and Swift includes modern features developers love. Swift code is safe by design, yet also produces software that runs lightning-fast.", .font(.systemFont(ofSize: 21))) - - """, - .paragraph(.alignment(.center)) - ), - """ - \("Great First Language", .font(.systemFont(ofSize: 40, weight: .semibold))) - - \( - """ - Swift can open doors to the world of coding. In fact, it was designed to be anyone’s first programming language, whether you’re still in school or exploring new career paths. For educators, Apple created free curriculum to teach Swift both in and out of the classroom. First-time coders can download Swift Playgrounds—an app for iPad that makes getting started with Swift code interactive and fun. - """, .font(.systemFont(ofSize: 17)) - ) - - """, - """ - \("Features:", .font(.systemFont(ofSize: 30, weight: .semibold))) - \("foregroundColor", .foreground(#colorLiteral(red: 0.5568627715, green: 0.3529411852, blue: 0.9686274529, alpha: 1))) - \("backgroundColor", .background(#colorLiteral(red: 0.6642242074, green: 0.6642400622, blue: 0.6642315388, alpha: 1))) - \("font", .font(.systemFont(ofSize: 18, weight: .semibold))) - \("link", .link("https://www.apple.com/")) - \("kern", .kern(5)) - \("ligature", .ligature(true)) - \("strikethrough", .strikethrough(.single, color: .darkGray)) - \("underline", .underline(.double, color: .black)) - \("baselineOffset", .baselineOffset(5)) +5 - \("shadow", .shadow(.init(offset: .init(width: 0, height: 3), radius: 4, color: .orange))) - \("stroke", .stroke(3.0, color: .blue)) - \("textEffect", .textEffect(.letterpressStyle)) - \("obliqueness", .obliqueness(0.3)) - \("expansion", .expansion(0.8)) 0.8 - \("writingDirection", .writingDirection(.RLO)) RLO - \("verticalGlyphForm. Currently on iOS, it's always horizontal.", .verticalGlyphForm(true)) - - - \("Paragraph:", .font(.systemFont(ofSize: 30, weight: .semibold))) - \("alignment:center\nlineSpacing:10", .paragraph(.lineSpacing(10), .alignment(.center))) - - - - \("Wrap:", .font(.systemFont(ofSize: 30, weight: .semibold))) - ----------- - \(wrap: .embedding( - """ - Embedding - - fontSize: 16 - This is attributed text -> \("fontSize: 30", .font(.systemFont(ofSize: 30)), .foreground(#colorLiteral(red: 0.6000000238, green: 0.6000000238, blue: 0.6000000238, alpha: 1))) - This is attributed text -> \("underline: single", .underline(.single)) - \(wrap: .embedding( - "Test wrap color red \("fontSize: 40 medium", .font(.systemFont(ofSize: 40, weight: .medium)))" - ), .font(.systemFont(ofSize: 20)), .foreground(.red)) - """ - ), .font(.systemFont(ofSize: 16)) - ) - ----------- - \(wrap: .override( - """ - Override - - fontSize: 16 - This is attributed text -> \("fontSize: 30", .font(.systemFont(ofSize: 30)), .foreground(#colorLiteral(red: 0.6000000238, green: 0.6000000238, blue: 0.6000000238, alpha: 1))) - This is attributed text -> \("underline: single", .underline(.single)) - \(wrap: .override( - "Test wrap color red \("fontSize: 40 medium", .font(.systemFont(ofSize: 40, weight: .medium)))" - ), .font(.systemFont(ofSize: 20)), .foreground(.red)) - """ - ), .font(.systemFont(ofSize: 16)) - ) - - """ - ] - - let string = array.reduce(into: ASAttributedString(stringLiteral: "")) { - $0 += $1 + "\n" - } - - label.attributed.set(text: "\(wrap: .embedding(string), .paragraph(.alignment(.left)))") - } - - - override func willActivate() { - // This method is called when watch view controller is about to be visible to user - super.willActivate() - } - - override func didDeactivate() { - // This method is called when watch view controller is no longer visible - super.didDeactivate() - } - -} diff --git a/Demo-Watch/Demo-Watch.xcodeproj/project.pbxproj b/Demo-Watch/Demo-Watch.xcodeproj/project.pbxproj deleted file mode 100644 index f1e019c..0000000 --- a/Demo-Watch/Demo-Watch.xcodeproj/project.pbxproj +++ /dev/null @@ -1,589 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 50; - objects = { - -/* Begin PBXBuildFile section */ - 9B267B4F24405CFA002F571E /* Demo-Watch WatchKit App.app in Embed Watch Content */ = {isa = PBXBuildFile; fileRef = 9B267B4E24405CFA002F571E /* Demo-Watch WatchKit App.app */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; - 9B267B5524405CFA002F571E /* Interface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9B267B5324405CFA002F571E /* Interface.storyboard */; }; - 9B267B5724405CFD002F571E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9B267B5624405CFD002F571E /* Assets.xcassets */; }; - 9B267B5E24405CFD002F571E /* Demo-Watch WatchKit Extension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 9B267B5D24405CFD002F571E /* Demo-Watch WatchKit Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; - 9B267B6324405CFD002F571E /* InterfaceController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9B267B6224405CFD002F571E /* InterfaceController.swift */; }; - 9B267B6524405CFD002F571E /* ExtensionDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9B267B6424405CFD002F571E /* ExtensionDelegate.swift */; }; - 9B267B6724405CFD002F571E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9B267B6624405CFD002F571E /* Assets.xcassets */; }; - 9B5EBAA528DDB32600CCA416 /* AttributedString.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9B5EBAA428DDB32600CCA416 /* AttributedString.framework */; }; - 9B5EBAA628DDB32600CCA416 /* AttributedString.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9B5EBAA428DDB32600CCA416 /* AttributedString.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 9B267B5024405CFA002F571E /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 9B267B4424405CFA002F571E /* Project object */; - proxyType = 1; - remoteGlobalIDString = 9B267B4D24405CFA002F571E; - remoteInfo = "Demo-Watch WatchKit App"; - }; - 9B267B5F24405CFD002F571E /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 9B267B4424405CFA002F571E /* Project object */; - proxyType = 1; - remoteGlobalIDString = 9B267B5C24405CFD002F571E; - remoteInfo = "Demo-Watch WatchKit Extension"; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 9B267B6E24405CFD002F571E /* Embed App Extensions */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 13; - files = ( - 9B267B5E24405CFD002F571E /* Demo-Watch WatchKit Extension.appex in Embed App Extensions */, - ); - name = "Embed App Extensions"; - runOnlyForDeploymentPostprocessing = 0; - }; - 9B267B7224405CFD002F571E /* Embed Watch Content */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = "$(CONTENTS_FOLDER_PATH)/Watch"; - dstSubfolderSpec = 16; - files = ( - 9B267B4F24405CFA002F571E /* Demo-Watch WatchKit App.app in Embed Watch Content */, - ); - name = "Embed Watch Content"; - runOnlyForDeploymentPostprocessing = 0; - }; - 9B80471E28DD97F400FFBDFB /* Embed Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - 9B5EBAA628DDB32600CCA416 /* AttributedString.framework in Embed Frameworks */, - ); - name = "Embed Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 9B267B4A24405CFA002F571E /* Demo-Watch.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Demo-Watch.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 9B267B4E24405CFA002F571E /* Demo-Watch WatchKit App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Demo-Watch WatchKit App.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 9B267B5424405CFA002F571E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Interface.storyboard; sourceTree = ""; }; - 9B267B5624405CFD002F571E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 9B267B5824405CFD002F571E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 9B267B5D24405CFD002F571E /* Demo-Watch WatchKit Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "Demo-Watch WatchKit Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; }; - 9B267B6224405CFD002F571E /* InterfaceController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InterfaceController.swift; sourceTree = ""; }; - 9B267B6424405CFD002F571E /* ExtensionDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExtensionDelegate.swift; sourceTree = ""; }; - 9B267B6624405CFD002F571E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 9B267B6824405CFD002F571E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 9B5EBAA428DDB32600CCA416 /* AttributedString.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = AttributedString.framework; sourceTree = BUILT_PRODUCTS_DIR; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 9B267B5A24405CFD002F571E /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 9B5EBAA528DDB32600CCA416 /* AttributedString.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 9B2E318B26A02FC900BA33A8 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 9B267B4324405CFA002F571E = { - isa = PBXGroup; - children = ( - 9B267B5224405CFA002F571E /* Demo-Watch WatchKit App */, - 9B267B6124405CFD002F571E /* Demo-Watch WatchKit Extension */, - 9B267B4B24405CFA002F571E /* Products */, - 9B2E318726A02FC900BA33A8 /* Frameworks */, - ); - sourceTree = ""; - }; - 9B267B4B24405CFA002F571E /* Products */ = { - isa = PBXGroup; - children = ( - 9B267B4A24405CFA002F571E /* Demo-Watch.app */, - 9B267B4E24405CFA002F571E /* Demo-Watch WatchKit App.app */, - 9B267B5D24405CFD002F571E /* Demo-Watch WatchKit Extension.appex */, - ); - name = Products; - sourceTree = ""; - }; - 9B267B5224405CFA002F571E /* Demo-Watch WatchKit App */ = { - isa = PBXGroup; - children = ( - 9B267B5324405CFA002F571E /* Interface.storyboard */, - 9B267B5624405CFD002F571E /* Assets.xcassets */, - 9B267B5824405CFD002F571E /* Info.plist */, - ); - path = "Demo-Watch WatchKit App"; - sourceTree = ""; - }; - 9B267B6124405CFD002F571E /* Demo-Watch WatchKit Extension */ = { - isa = PBXGroup; - children = ( - 9B267B6224405CFD002F571E /* InterfaceController.swift */, - 9B267B6424405CFD002F571E /* ExtensionDelegate.swift */, - 9B267B6624405CFD002F571E /* Assets.xcassets */, - 9B267B6824405CFD002F571E /* Info.plist */, - ); - path = "Demo-Watch WatchKit Extension"; - sourceTree = ""; - }; - 9B2E318726A02FC900BA33A8 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 9B5EBAA428DDB32600CCA416 /* AttributedString.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 9B267B4924405CFA002F571E /* Demo-Watch */ = { - isa = PBXNativeTarget; - buildConfigurationList = 9B267B7324405CFD002F571E /* Build configuration list for PBXNativeTarget "Demo-Watch" */; - buildPhases = ( - 9B267B4824405CFA002F571E /* Resources */, - 9B267B7224405CFD002F571E /* Embed Watch Content */, - ); - buildRules = ( - ); - dependencies = ( - 9B267B5124405CFA002F571E /* PBXTargetDependency */, - ); - name = "Demo-Watch"; - productName = "Demo-Watch"; - productReference = 9B267B4A24405CFA002F571E /* Demo-Watch.app */; - productType = "com.apple.product-type.application.watchapp2-container"; - }; - 9B267B4D24405CFA002F571E /* Demo-Watch WatchKit App */ = { - isa = PBXNativeTarget; - buildConfigurationList = 9B267B6F24405CFD002F571E /* Build configuration list for PBXNativeTarget "Demo-Watch WatchKit App" */; - buildPhases = ( - 9B267B4C24405CFA002F571E /* Resources */, - 9B267B6E24405CFD002F571E /* Embed App Extensions */, - 9B2E318B26A02FC900BA33A8 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 9B267B6024405CFD002F571E /* PBXTargetDependency */, - ); - name = "Demo-Watch WatchKit App"; - productName = "Demo-Watch WatchKit App"; - productReference = 9B267B4E24405CFA002F571E /* Demo-Watch WatchKit App.app */; - productType = "com.apple.product-type.application.watchapp2"; - }; - 9B267B5C24405CFD002F571E /* Demo-Watch WatchKit Extension */ = { - isa = PBXNativeTarget; - buildConfigurationList = 9B267B6B24405CFD002F571E /* Build configuration list for PBXNativeTarget "Demo-Watch WatchKit Extension" */; - buildPhases = ( - 9B267B5924405CFD002F571E /* Sources */, - 9B267B5A24405CFD002F571E /* Frameworks */, - 9B267B5B24405CFD002F571E /* Resources */, - 9B80471E28DD97F400FFBDFB /* Embed Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "Demo-Watch WatchKit Extension"; - productName = "Demo-Watch WatchKit Extension"; - productReference = 9B267B5D24405CFD002F571E /* Demo-Watch WatchKit Extension.appex */; - productType = "com.apple.product-type.watchkit2-extension"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 9B267B4424405CFA002F571E /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 1140; - LastUpgradeCheck = 1140; - ORGANIZATIONNAME = LEE; - TargetAttributes = { - 9B267B4924405CFA002F571E = { - CreatedOnToolsVersion = 11.4; - }; - 9B267B4D24405CFA002F571E = { - CreatedOnToolsVersion = 11.4; - }; - 9B267B5C24405CFD002F571E = { - CreatedOnToolsVersion = 11.4; - }; - }; - }; - buildConfigurationList = 9B267B4724405CFA002F571E /* Build configuration list for PBXProject "Demo-Watch" */; - compatibilityVersion = "Xcode 9.3"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 9B267B4324405CFA002F571E; - productRefGroup = 9B267B4B24405CFA002F571E /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 9B267B4924405CFA002F571E /* Demo-Watch */, - 9B267B4D24405CFA002F571E /* Demo-Watch WatchKit App */, - 9B267B5C24405CFD002F571E /* Demo-Watch WatchKit Extension */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 9B267B4824405CFA002F571E /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 9B267B4C24405CFA002F571E /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 9B267B5724405CFD002F571E /* Assets.xcassets in Resources */, - 9B267B5524405CFA002F571E /* Interface.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 9B267B5B24405CFD002F571E /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 9B267B6724405CFD002F571E /* Assets.xcassets in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 9B267B5924405CFD002F571E /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 9B267B6524405CFD002F571E /* ExtensionDelegate.swift in Sources */, - 9B267B6324405CFD002F571E /* InterfaceController.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 9B267B5124405CFA002F571E /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 9B267B4D24405CFA002F571E /* Demo-Watch WatchKit App */; - targetProxy = 9B267B5024405CFA002F571E /* PBXContainerItemProxy */; - }; - 9B267B6024405CFD002F571E /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 9B267B5C24405CFD002F571E /* Demo-Watch WatchKit Extension */; - targetProxy = 9B267B5F24405CFD002F571E /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - 9B267B5324405CFA002F571E /* Interface.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 9B267B5424405CFA002F571E /* Base */, - ); - name = Interface.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 9B267B6924405CFD002F571E /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - 9B267B6A24405CFD002F571E /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MTL_ENABLE_DEBUG_INFO = NO; - MTL_FAST_MATH = YES; - SDKROOT = iphoneos; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 9B267B6C24405CFD002F571E /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_COMPLICATION_NAME = Complication; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = 8G74YECJ4Z; - INFOPLIST_FILE = "Demo-Watch WatchKit Extension/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@executable_path/../../Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.lee.attributedstring.demo.watch.app.extension; - PRODUCT_NAME = "${TARGET_NAME}"; - SDKROOT = watchos; - SKIP_INSTALL = YES; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = 4; - WATCHOS_DEPLOYMENT_TARGET = 7.0; - }; - name = Debug; - }; - 9B267B6D24405CFD002F571E /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_COMPLICATION_NAME = Complication; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = 8G74YECJ4Z; - INFOPLIST_FILE = "Demo-Watch WatchKit Extension/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@executable_path/../../Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.lee.attributedstring.demo.watch.app.extension; - PRODUCT_NAME = "${TARGET_NAME}"; - SDKROOT = watchos; - SKIP_INSTALL = YES; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = 4; - WATCHOS_DEPLOYMENT_TARGET = 7.0; - }; - name = Release; - }; - 9B267B7024405CFD002F571E /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = 8G74YECJ4Z; - IBSC_MODULE = Demo_Watch_WatchKit_Extension; - INFOPLIST_FILE = "Demo-Watch WatchKit App/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.lee.attributedstring.demo.watch.app; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = watchos; - SKIP_INSTALL = YES; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = 4; - WATCHOS_DEPLOYMENT_TARGET = 7.0; - }; - name = Debug; - }; - 9B267B7124405CFD002F571E /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = 8G74YECJ4Z; - IBSC_MODULE = Demo_Watch_WatchKit_Extension; - INFOPLIST_FILE = "Demo-Watch WatchKit App/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = com.lee.attributedstring.demo.watch.app; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = watchos; - SKIP_INSTALL = YES; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = 4; - WATCHOS_DEPLOYMENT_TARGET = 7.0; - }; - name = Release; - }; - 9B267B7424405CFD002F571E /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = 8G74YECJ4Z; - IPHONEOS_DEPLOYMENT_TARGET = 14.0; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.lee.attributedstring.demo.watch; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - }; - name = Debug; - }; - 9B267B7524405CFD002F571E /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = 8G74YECJ4Z; - IPHONEOS_DEPLOYMENT_TARGET = 14.0; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.lee.attributedstring.demo.watch; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 5.0; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 9B267B4724405CFA002F571E /* Build configuration list for PBXProject "Demo-Watch" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 9B267B6924405CFD002F571E /* Debug */, - 9B267B6A24405CFD002F571E /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 9B267B6B24405CFD002F571E /* Build configuration list for PBXNativeTarget "Demo-Watch WatchKit Extension" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 9B267B6C24405CFD002F571E /* Debug */, - 9B267B6D24405CFD002F571E /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 9B267B6F24405CFD002F571E /* Build configuration list for PBXNativeTarget "Demo-Watch WatchKit App" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 9B267B7024405CFD002F571E /* Debug */, - 9B267B7124405CFD002F571E /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 9B267B7324405CFD002F571E /* Build configuration list for PBXNativeTarget "Demo-Watch" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 9B267B7424405CFD002F571E /* Debug */, - 9B267B7524405CFD002F571E /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 9B267B4424405CFA002F571E /* Project object */; -} diff --git a/Demo-Watch/Demo-Watch.xcodeproj/xcshareddata/xcschemes/Demo-Watch WatchKit App.xcscheme b/Demo-Watch/Demo-Watch.xcodeproj/xcshareddata/xcschemes/Demo-Watch WatchKit App.xcscheme deleted file mode 100644 index cf646b5..0000000 --- a/Demo-Watch/Demo-Watch.xcodeproj/xcshareddata/xcschemes/Demo-Watch WatchKit App.xcscheme +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -