Skip to content

Commit 3a00349

Browse files
Improved support for IBDesignable
1 parent 8c3d1f9 commit 3a00349

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

Localize-Swift.podspec

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,23 @@ Pod::Spec.new do |s|
1212
s.source = { :git => "https://github.com/marmelroy/Localize-Swift.git", :tag => s.version.to_s, :submodules => true}
1313
s.social_media_url = "http://twitter.com/marmelroy"
1414

15-
s.ios.deployment_target = '9.0'
16-
s.osx.deployment_target = '10.9'
17-
s.tvos.deployment_target = '9.0'
18-
s.watchos.deployment_target = '2.0'
19-
15+
s.swift_version = '5.3'
2016
s.pod_target_xcconfig = { 'SWIFT_VERSION' => '5.3' }
2117
s.requires_arc = true
18+
19+
s.subspec 'LocalizeSwiftCore' do |core|
20+
core.ios.deployment_target = '9.0'
21+
core.osx.deployment_target = '10.10'
22+
core.tvos.deployment_target = '9.0'
23+
core.watchos.deployment_target = '2.0'
24+
core.source_files = "Sources/*.{swift}"
25+
end
26+
27+
s.subspec 'UIKit' do |ui|
28+
ui.dependency 'Localize-Swift/LocalizeSwiftCore'
29+
ui.ios.deployment_target = '9.0'
30+
ui.source_files = 'Sources/UI/'
31+
end
32+
2233
s.source_files = 'Sources'
2334
end

Localize_Swift.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
343A6DEE1D152E5A0081AA37 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 344169461C67539300B93D28 /* Foundation.framework */; };
2222
343A6DF01D152E5A0081AA37 /* Localize_Swift.h in Headers */ = {isa = PBXBuildFile; fileRef = 3433F2501C518B38003AE34D /* Localize_Swift.h */; settings = {ATTRIBUTES = (Public, ); }; };
2323
344169471C67539300B93D28 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 344169461C67539300B93D28 /* Foundation.framework */; };
24+
345D5906251F83910088CBEC /* IBDesignable+Localize.swift in Sources */ = {isa = PBXBuildFile; fileRef = 345D5905251F83910088CBEC /* IBDesignable+Localize.swift */; };
2425
68973D661DA7AA200076F08A /* String+LocalizeBundle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 68973D651DA7AA200076F08A /* String+LocalizeBundle.swift */; };
2526
68973D671DA7AA200076F08A /* String+LocalizeBundle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 68973D651DA7AA200076F08A /* String+LocalizeBundle.swift */; };
2627
68973D681DA7AA200076F08A /* String+LocalizeBundle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 68973D651DA7AA200076F08A /* String+LocalizeBundle.swift */; };
@@ -57,6 +58,7 @@
5758
343A6DE81D152B1B0081AA37 /* Localize_Swift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Localize_Swift.framework; sourceTree = BUILT_PRODUCTS_DIR; };
5859
343A6DF51D152E5A0081AA37 /* Localize_Swift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Localize_Swift.framework; sourceTree = BUILT_PRODUCTS_DIR; };
5960
344169461C67539300B93D28 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
61+
345D5905251F83910088CBEC /* IBDesignable+Localize.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "IBDesignable+Localize.swift"; path = "Sources/UI/IBDesignable+Localize.swift"; sourceTree = SOURCE_ROOT; };
6062
68973D651DA7AA200076F08A /* String+LocalizeBundle.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "String+LocalizeBundle.swift"; path = "Sources/String+LocalizeBundle.swift"; sourceTree = SOURCE_ROOT; };
6163
68973D6A1DA7AB140076F08A /* String+LocalizedBundleTableName.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "String+LocalizedBundleTableName.swift"; path = "Sources/String+LocalizedBundleTableName.swift"; sourceTree = SOURCE_ROOT; };
6264
68A520031DA6D5FD00F43D9E /* String+LocalizeTableName.swift */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.swift; name = "String+LocalizeTableName.swift"; path = "Sources/String+LocalizeTableName.swift"; sourceTree = SOURCE_ROOT; tabWidth = 4; usesTabs = 0; };
@@ -137,6 +139,7 @@
137139
68A520031DA6D5FD00F43D9E /* String+LocalizeTableName.swift */,
138140
68973D651DA7AA200076F08A /* String+LocalizeBundle.swift */,
139141
68973D6A1DA7AB140076F08A /* String+LocalizedBundleTableName.swift */,
142+
345D5905251F83910088CBEC /* IBDesignable+Localize.swift */,
140143
3433F23B1C518AF7003AE34D /* Info.plist */,
141144
344169461C67539300B93D28 /* Foundation.framework */,
142145
);
@@ -369,6 +372,7 @@
369372
buildActionMask = 2147483647;
370373
files = (
371374
68973D6B1DA7AB140076F08A /* String+LocalizedBundleTableName.swift in Sources */,
375+
345D5906251F83910088CBEC /* IBDesignable+Localize.swift in Sources */,
372376
68973D661DA7AA200076F08A /* String+LocalizeBundle.swift in Sources */,
373377
3433F2531C518B38003AE34D /* Localize.swift in Sources */,
374378
68A520041DA6D5FD00F43D9E /* String+LocalizeTableName.swift in Sources */,

0 commit comments

Comments
 (0)