Skip to content

Commit 6f17661

Browse files
MBL-3215: Propagate textColor changes to tokenTextStorage (#38)
* update to ios 12 * update to recommended xcode setting * corectly update textcolor * increment version * update version to 6
1 parent eb28e73 commit 6f17661

File tree

6 files changed

+29
-33
lines changed

6 files changed

+29
-33
lines changed

Demo/Sources/ViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class ViewController: UIViewController {
2323
super.viewWillAppear(animated)
2424
tokenTextVC.font = UIFont(name: "HelveticaNeue", size: 19)!
2525
tokenTextVC.text = "Hello "
26+
tokenTextVC.textColor = .black
2627
tokenTextVC.addToken(6, text: "Team")
2728
}
2829

Sources/TokenTextViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ open class TokenTextViewController: UIViewController, UITextViewDelegate, NSLayo
241241

242242
set {
243243
viewAsTextView.textColor = newValue
244+
tokenTextStorage.textColor = newValue
244245
}
245246
}
246247

TokenUI.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = "TokenUI"
3-
s.version = "5.0"
4-
s.ios.deployment_target = "11.0"
3+
s.version = "6.0"
4+
s.ios.deployment_target = "12.0"
55
s.summary = "TokenUI is a swift Framework for creating and managing a text input component that allows to add 'tokens' rendered as pills."
66
s.homepage = "https://github.com/hootsuite/TokenUI"
77
s.license = { :type => "Apache", :file => "LICENSE.md" }

TokenUI.xcodeproj/project.pbxproj

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@
263263
isa = PBXProject;
264264
attributes = {
265265
LastSwiftUpdateCheck = 0800;
266-
LastUpgradeCheck = 0930;
266+
LastUpgradeCheck = 1220;
267267
ORGANIZATIONNAME = Hootsuite;
268268
TargetAttributes = {
269269
A8C8609A1DA5B1EF00F4B309 = {
@@ -422,6 +422,7 @@
422422
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
423423
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
424424
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
425+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
425426
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
426427
CLANG_WARN_STRICT_PROTOTYPES = YES;
427428
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -449,7 +450,7 @@
449450
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
450451
GCC_WARN_UNUSED_FUNCTION = YES;
451452
GCC_WARN_UNUSED_VARIABLE = YES;
452-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
453+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
453454
MTL_ENABLE_DEBUG_INFO = YES;
454455
ONLY_ACTIVE_ARCH = YES;
455456
SDKROOT = iphoneos;
@@ -488,6 +489,7 @@
488489
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
489490
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
490491
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
492+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
491493
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
492494
CLANG_WARN_STRICT_PROTOTYPES = YES;
493495
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -509,7 +511,7 @@
509511
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
510512
GCC_WARN_UNUSED_FUNCTION = YES;
511513
GCC_WARN_UNUSED_VARIABLE = YES;
512-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
514+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
513515
MTL_ENABLE_DEBUG_INFO = NO;
514516
SDKROOT = iphoneos;
515517
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";

TokenUI.xcodeproj/xcshareddata/xcschemes/TokenUI.xcscheme

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0930"
3+
LastUpgradeVersion = "1220"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -27,6 +27,15 @@
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<MacroExpansion>
31+
<BuildableReference
32+
BuildableIdentifier = "primary"
33+
BlueprintIdentifier = "A8C8609A1DA5B1EF00F4B309"
34+
BuildableName = "TokenUI.framework"
35+
BlueprintName = "TokenUI"
36+
ReferencedContainer = "container:TokenUI.xcodeproj">
37+
</BuildableReference>
38+
</MacroExpansion>
3039
<Testables>
3140
<TestableReference
3241
skipped = "NO">
@@ -39,17 +48,6 @@
3948
</BuildableReference>
4049
</TestableReference>
4150
</Testables>
42-
<MacroExpansion>
43-
<BuildableReference
44-
BuildableIdentifier = "primary"
45-
BlueprintIdentifier = "A8C8609A1DA5B1EF00F4B309"
46-
BuildableName = "TokenUI.framework"
47-
BlueprintName = "TokenUI"
48-
ReferencedContainer = "container:TokenUI.xcodeproj">
49-
</BuildableReference>
50-
</MacroExpansion>
51-
<AdditionalOptions>
52-
</AdditionalOptions>
5351
</TestAction>
5452
<LaunchAction
5553
buildConfiguration = "Debug"
@@ -70,8 +68,6 @@
7068
ReferencedContainer = "container:TokenUI.xcodeproj">
7169
</BuildableReference>
7270
</MacroExpansion>
73-
<AdditionalOptions>
74-
</AdditionalOptions>
7571
</LaunchAction>
7672
<ProfileAction
7773
buildConfiguration = "Release"

TokenUI.xcodeproj/xcshareddata/xcschemes/TokenUIDemo.xcscheme

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0930"
3+
LastUpgradeVersion = "1220"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -27,6 +27,15 @@
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<MacroExpansion>
31+
<BuildableReference
32+
BuildableIdentifier = "primary"
33+
BlueprintIdentifier = "A8C8610E1DA5B71700F4B309"
34+
BuildableName = "TokenUIDemo.app"
35+
BlueprintName = "TokenUIDemo"
36+
ReferencedContainer = "container:TokenUI.xcodeproj">
37+
</BuildableReference>
38+
</MacroExpansion>
3039
<Testables>
3140
<TestableReference
3241
skipped = "NO">
@@ -39,17 +48,6 @@
3948
</BuildableReference>
4049
</TestableReference>
4150
</Testables>
42-
<MacroExpansion>
43-
<BuildableReference
44-
BuildableIdentifier = "primary"
45-
BlueprintIdentifier = "A8C8610E1DA5B71700F4B309"
46-
BuildableName = "TokenUIDemo.app"
47-
BlueprintName = "TokenUIDemo"
48-
ReferencedContainer = "container:TokenUI.xcodeproj">
49-
</BuildableReference>
50-
</MacroExpansion>
51-
<AdditionalOptions>
52-
</AdditionalOptions>
5351
</TestAction>
5452
<LaunchAction
5553
buildConfiguration = "Debug"
@@ -71,8 +69,6 @@
7169
ReferencedContainer = "container:TokenUI.xcodeproj">
7270
</BuildableReference>
7371
</BuildableProductRunnable>
74-
<AdditionalOptions>
75-
</AdditionalOptions>
7672
</LaunchAction>
7773
<ProfileAction
7874
buildConfiguration = "Release"

0 commit comments

Comments
 (0)