├── LanguageSwiftTest
├── ar.lproj
│ ├── LaunchScreen.strings
│ └── Main.strings
├── ViewController.swift
├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── BundleEx.swift
├── Info.plist
├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
└── AppDelegate.swift
├── README.md
├── LanguageSwiftTest.xcodeproj
├── project.xcworkspace
│ └── contents.xcworkspacedata
└── project.pbxproj
└── .gitignore
/LanguageSwiftTest/ar.lproj/LaunchScreen.strings:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ChangeLanguage
2 | this is the best way to change the app language and directions without any needs to restart the app, also solving storyboards and xibs cashing.
3 |
--------------------------------------------------------------------------------
/LanguageSwiftTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/LanguageSwiftTest/ar.lproj/Main.strings:
--------------------------------------------------------------------------------
1 |
2 | /* Class = "UILabel"; text = "Label1"; ObjectID = "0kQ-Sd-zxH"; */
3 | "0kQ-Sd-zxH.text" = "زر ١";
4 |
5 | /* Class = "UILabel"; text = "Label2"; ObjectID = "Snz-tm-J6m"; */
6 | "Snz-tm-J6m.text" = "زر ٢";
7 |
8 | /* Class = "UIButton"; normalTitle = "en"; ObjectID = "fBC-6C-bbo"; */
9 | "fBC-6C-bbo.normalTitle" = "ع";
10 |
--------------------------------------------------------------------------------
/LanguageSwiftTest/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // LanguageSwiftTest
4 | //
5 | // Created by Moayad Al kouz on 8/11/16.
6 | // Copyright © 2016 Moayad Al kouz. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class ViewController: UIViewController {
12 |
13 | override func viewDidLoad() {
14 | super.viewDidLoad()
15 | // Do any additional setup after loading the view, typically from a nib.
16 | }
17 |
18 | override func didReceiveMemoryWarning() {
19 | super.didReceiveMemoryWarning()
20 | // Dispose of any resources that can be recreated.
21 | }
22 |
23 |
24 |
25 |
26 | @IBAction func change(sender: AnyObject) {
27 | let appdel:AppDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
28 |
29 | appdel.changeLanguage();
30 | }
31 | }
32 |
33 |
--------------------------------------------------------------------------------
/LanguageSwiftTest/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 | }
--------------------------------------------------------------------------------
/LanguageSwiftTest/BundleEx.swift:
--------------------------------------------------------------------------------
1 | //
2 | // NSBundle+Language.swift
3 | // LanguageSwiftTest
4 | //
5 | // Created by Moayad Al kouz on 8/11/16.
6 | // Copyright © 2016 Moayad Al kouz. All rights reserved.
7 | //
8 |
9 | import Foundation
10 | import ObjectiveC
11 |
12 |
13 | var _bundle: UInt8 = 0;
14 |
15 | class BundleEx: NSBundle {
16 | override func localizedStringForKey(key: String, value: String?, table tableName: String?) -> String {
17 | let bundle:NSBundle? = objc_getAssociatedObject(self, &_bundle) as? NSBundle;
18 |
19 | if let temp = bundle{
20 | return temp.localizedStringForKey(key, value: value, table: tableName);
21 | }else{
22 | return super.localizedStringForKey(key, value: value, table: tableName);
23 | }
24 | }
25 |
26 |
27 | }
28 |
29 | extension NSBundle {
30 |
31 |
32 | class func setLanguage(language:String?){
33 | var oneToken: dispatch_once_t = 0
34 | //let associatedObjectHandle = "nsh_DescriptiveName";
35 | dispatch_once(&oneToken) {
36 | object_setClass(NSBundle.mainBundle(), BundleEx.self as AnyClass);
37 | }
38 |
39 |
40 |
41 | if let temp = language{
42 |
43 | objc_setAssociatedObject(NSBundle.mainBundle(), &_bundle, NSBundle(path: NSBundle.mainBundle().pathForResource(temp, ofType: "lproj")!), .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
44 | }else{
45 | objc_setAssociatedObject(NSBundle.mainBundle(), &_bundle, nil, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
46 | }
47 |
48 |
49 |
50 | }
51 | }
52 |
53 |
54 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4 |
5 | ## Build generated
6 | build/
7 | DerivedData/
8 |
9 | ## Various settings
10 | *.pbxuser
11 | !default.pbxuser
12 | *.mode1v3
13 | !default.mode1v3
14 | *.mode2v3
15 | !default.mode2v3
16 | *.perspectivev3
17 | !default.perspectivev3
18 | xcuserdata/
19 |
20 | ## Other
21 | *.moved-aside
22 | *.xcuserstate
23 |
24 | ## Obj-C/Swift specific
25 | *.hmap
26 | *.ipa
27 | *.dSYM.zip
28 | *.dSYM
29 |
30 | ## Playgrounds
31 | timeline.xctimeline
32 | playground.xcworkspace
33 |
34 | # Swift Package Manager
35 | #
36 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
37 | # Packages/
38 | .build/
39 |
40 | # CocoaPods
41 | #
42 | # We recommend against adding the Pods directory to your .gitignore. However
43 | # you should judge for yourself, the pros and cons are mentioned at:
44 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
45 | #
46 | # Pods/
47 |
48 | # Carthage
49 | #
50 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
51 | # Carthage/Checkouts
52 |
53 | Carthage/Build
54 |
55 | # fastlane
56 | #
57 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
58 | # screenshots whenever they are needed.
59 | # For more information about the recommended setup visit:
60 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
61 |
62 | fastlane/report.xml
63 | fastlane/Preview.html
64 | fastlane/screenshots
65 | fastlane/test_output
66 |
--------------------------------------------------------------------------------
/LanguageSwiftTest/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/LanguageSwiftTest/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 |
--------------------------------------------------------------------------------
/LanguageSwiftTest/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // LanguageSwiftTest
4 | //
5 | // Created by Moayad Al kouz on 8/11/16.
6 | // Copyright © 2016 Moayad Al kouz. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import ObjectiveC
11 |
12 | class UIApplicationEx: UIApplication {
13 | override internal var userInterfaceLayoutDirection: UIUserInterfaceLayoutDirection
14 | {
15 | get
16 | {
17 | let lang:String = NSUserDefaults.standardUserDefaults().arrayForKey("AppleLanguages")!.first as! String
18 | //print("LANG :: ", lang);
19 | if( lang == "Base" ){
20 | return .LeftToRight;
21 | }else{
22 | return .RightToLeft;
23 | }
24 | }
25 | }
26 | }
27 |
28 | @UIApplicationMain
29 | class AppDelegate: UIResponder, UIApplicationDelegate {
30 |
31 | var window: UIWindow?
32 |
33 |
34 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
35 | // Override point for customization after application launch.
36 |
37 | object_setClass(application,UIApplicationEx.self);
38 | return true
39 | }
40 |
41 | func applicationWillResignActive(application: UIApplication) {
42 | // 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.
43 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
44 | }
45 |
46 | func applicationDidEnterBackground(application: UIApplication) {
47 | // 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.
48 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
49 | }
50 |
51 | func applicationWillEnterForeground(application: UIApplication) {
52 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
53 | }
54 |
55 | func applicationDidBecomeActive(application: UIApplication) {
56 | // 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.
57 | }
58 |
59 | func applicationWillTerminate(application: UIApplication) {
60 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
61 | }
62 |
63 |
64 | func changeLanguage(){
65 |
66 |
67 |
68 |
69 | let defaults = NSUserDefaults.standardUserDefaults();
70 |
71 | let lang:String = NSUserDefaults.standardUserDefaults().arrayForKey("AppleLanguages")!.first as! String
72 | if( lang == "Base" ){
73 | defaults.setObject(["ar"], forKey: "AppleLanguages");
74 | defaults.synchronize();
75 |
76 | NSBundle.setLanguage("ar")
77 | }else{
78 | defaults.setObject(["Base"], forKey: "AppleLanguages");
79 | defaults.synchronize();
80 |
81 | NSBundle.setLanguage("Base")
82 | }
83 |
84 |
85 |
86 | let story = UIStoryboard(name: "Main", bundle: nil);
87 | let vc = story.instantiateViewControllerWithIdentifier("VC");
88 |
89 | self.window?.rootViewController = vc;
90 | }
91 |
92 |
93 |
94 | }
95 |
96 |
--------------------------------------------------------------------------------
/LanguageSwiftTest/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 |
30 |
41 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
--------------------------------------------------------------------------------
/LanguageSwiftTest.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | EE843AA21D5C506E00D88AE5 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE843AA11D5C506E00D88AE5 /* AppDelegate.swift */; };
11 | EE843AA41D5C506E00D88AE5 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE843AA31D5C506E00D88AE5 /* ViewController.swift */; };
12 | EE843AA71D5C506E00D88AE5 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EE843AA51D5C506E00D88AE5 /* Main.storyboard */; };
13 | EE843AA91D5C506E00D88AE5 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = EE843AA81D5C506E00D88AE5 /* Assets.xcassets */; };
14 | EE843AAC1D5C506E00D88AE5 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EE843AAA1D5C506E00D88AE5 /* LaunchScreen.storyboard */; };
15 | EE843AB41D5C50A600D88AE5 /* BundleEx.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE843AB31D5C50A600D88AE5 /* BundleEx.swift */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXFileReference section */
19 | EE843A9E1D5C506E00D88AE5 /* LanguageSwiftTest.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LanguageSwiftTest.app; sourceTree = BUILT_PRODUCTS_DIR; };
20 | EE843AA11D5C506E00D88AE5 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
21 | EE843AA31D5C506E00D88AE5 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
22 | EE843AA61D5C506E00D88AE5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
23 | EE843AA81D5C506E00D88AE5 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
24 | EE843AAB1D5C506E00D88AE5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
25 | EE843AAD1D5C506E00D88AE5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
26 | EE843AB31D5C50A600D88AE5 /* BundleEx.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BundleEx.swift; sourceTree = ""; };
27 | EE843AB71D5C5D6D00D88AE5 /* ar */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ar; path = ar.lproj/Main.strings; sourceTree = ""; };
28 | EE843AB81D5C5D6D00D88AE5 /* ar */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ar; path = ar.lproj/LaunchScreen.strings; sourceTree = ""; };
29 | /* End PBXFileReference section */
30 |
31 | /* Begin PBXFrameworksBuildPhase section */
32 | EE843A9B1D5C506E00D88AE5 /* Frameworks */ = {
33 | isa = PBXFrameworksBuildPhase;
34 | buildActionMask = 2147483647;
35 | files = (
36 | );
37 | runOnlyForDeploymentPostprocessing = 0;
38 | };
39 | /* End PBXFrameworksBuildPhase section */
40 |
41 | /* Begin PBXGroup section */
42 | EE843A951D5C506E00D88AE5 = {
43 | isa = PBXGroup;
44 | children = (
45 | EE843AA01D5C506E00D88AE5 /* LanguageSwiftTest */,
46 | EE843A9F1D5C506E00D88AE5 /* Products */,
47 | );
48 | sourceTree = "";
49 | };
50 | EE843A9F1D5C506E00D88AE5 /* Products */ = {
51 | isa = PBXGroup;
52 | children = (
53 | EE843A9E1D5C506E00D88AE5 /* LanguageSwiftTest.app */,
54 | );
55 | name = Products;
56 | sourceTree = "";
57 | };
58 | EE843AA01D5C506E00D88AE5 /* LanguageSwiftTest */ = {
59 | isa = PBXGroup;
60 | children = (
61 | EE843AA11D5C506E00D88AE5 /* AppDelegate.swift */,
62 | EE843AA31D5C506E00D88AE5 /* ViewController.swift */,
63 | EE843AA51D5C506E00D88AE5 /* Main.storyboard */,
64 | EE843AA81D5C506E00D88AE5 /* Assets.xcassets */,
65 | EE843AAA1D5C506E00D88AE5 /* LaunchScreen.storyboard */,
66 | EE843AAD1D5C506E00D88AE5 /* Info.plist */,
67 | EE843AB31D5C50A600D88AE5 /* BundleEx.swift */,
68 | );
69 | path = LanguageSwiftTest;
70 | sourceTree = "";
71 | };
72 | /* End PBXGroup section */
73 |
74 | /* Begin PBXNativeTarget section */
75 | EE843A9D1D5C506E00D88AE5 /* LanguageSwiftTest */ = {
76 | isa = PBXNativeTarget;
77 | buildConfigurationList = EE843AB01D5C506E00D88AE5 /* Build configuration list for PBXNativeTarget "LanguageSwiftTest" */;
78 | buildPhases = (
79 | EE843A9A1D5C506E00D88AE5 /* Sources */,
80 | EE843A9B1D5C506E00D88AE5 /* Frameworks */,
81 | EE843A9C1D5C506E00D88AE5 /* Resources */,
82 | );
83 | buildRules = (
84 | );
85 | dependencies = (
86 | );
87 | name = LanguageSwiftTest;
88 | productName = LanguageSwiftTest;
89 | productReference = EE843A9E1D5C506E00D88AE5 /* LanguageSwiftTest.app */;
90 | productType = "com.apple.product-type.application";
91 | };
92 | /* End PBXNativeTarget section */
93 |
94 | /* Begin PBXProject section */
95 | EE843A961D5C506E00D88AE5 /* Project object */ = {
96 | isa = PBXProject;
97 | attributes = {
98 | LastSwiftUpdateCheck = 0730;
99 | LastUpgradeCheck = 0730;
100 | ORGANIZATIONNAME = "Moayad Al kouz";
101 | TargetAttributes = {
102 | EE843A9D1D5C506E00D88AE5 = {
103 | CreatedOnToolsVersion = 7.3.1;
104 | };
105 | };
106 | };
107 | buildConfigurationList = EE843A991D5C506E00D88AE5 /* Build configuration list for PBXProject "LanguageSwiftTest" */;
108 | compatibilityVersion = "Xcode 3.2";
109 | developmentRegion = English;
110 | hasScannedForEncodings = 0;
111 | knownRegions = (
112 | en,
113 | Base,
114 | );
115 | mainGroup = EE843A951D5C506E00D88AE5;
116 | productRefGroup = EE843A9F1D5C506E00D88AE5 /* Products */;
117 | projectDirPath = "";
118 | projectRoot = "";
119 | targets = (
120 | EE843A9D1D5C506E00D88AE5 /* LanguageSwiftTest */,
121 | );
122 | };
123 | /* End PBXProject section */
124 |
125 | /* Begin PBXResourcesBuildPhase section */
126 | EE843A9C1D5C506E00D88AE5 /* Resources */ = {
127 | isa = PBXResourcesBuildPhase;
128 | buildActionMask = 2147483647;
129 | files = (
130 | EE843AAC1D5C506E00D88AE5 /* LaunchScreen.storyboard in Resources */,
131 | EE843AA91D5C506E00D88AE5 /* Assets.xcassets in Resources */,
132 | EE843AA71D5C506E00D88AE5 /* Main.storyboard in Resources */,
133 | );
134 | runOnlyForDeploymentPostprocessing = 0;
135 | };
136 | /* End PBXResourcesBuildPhase section */
137 |
138 | /* Begin PBXSourcesBuildPhase section */
139 | EE843A9A1D5C506E00D88AE5 /* Sources */ = {
140 | isa = PBXSourcesBuildPhase;
141 | buildActionMask = 2147483647;
142 | files = (
143 | EE843AA41D5C506E00D88AE5 /* ViewController.swift in Sources */,
144 | EE843AA21D5C506E00D88AE5 /* AppDelegate.swift in Sources */,
145 | EE843AB41D5C50A600D88AE5 /* BundleEx.swift in Sources */,
146 | );
147 | runOnlyForDeploymentPostprocessing = 0;
148 | };
149 | /* End PBXSourcesBuildPhase section */
150 |
151 | /* Begin PBXVariantGroup section */
152 | EE843AA51D5C506E00D88AE5 /* Main.storyboard */ = {
153 | isa = PBXVariantGroup;
154 | children = (
155 | EE843AA61D5C506E00D88AE5 /* Base */,
156 | EE843AB71D5C5D6D00D88AE5 /* ar */,
157 | );
158 | name = Main.storyboard;
159 | sourceTree = "";
160 | };
161 | EE843AAA1D5C506E00D88AE5 /* LaunchScreen.storyboard */ = {
162 | isa = PBXVariantGroup;
163 | children = (
164 | EE843AAB1D5C506E00D88AE5 /* Base */,
165 | EE843AB81D5C5D6D00D88AE5 /* ar */,
166 | );
167 | name = LaunchScreen.storyboard;
168 | sourceTree = "";
169 | };
170 | /* End PBXVariantGroup section */
171 |
172 | /* Begin XCBuildConfiguration section */
173 | EE843AAE1D5C506E00D88AE5 /* Debug */ = {
174 | isa = XCBuildConfiguration;
175 | buildSettings = {
176 | ALWAYS_SEARCH_USER_PATHS = NO;
177 | CLANG_ANALYZER_NONNULL = YES;
178 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
179 | CLANG_CXX_LIBRARY = "libc++";
180 | CLANG_ENABLE_MODULES = YES;
181 | CLANG_ENABLE_OBJC_ARC = YES;
182 | CLANG_WARN_BOOL_CONVERSION = YES;
183 | CLANG_WARN_CONSTANT_CONVERSION = YES;
184 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
185 | CLANG_WARN_EMPTY_BODY = YES;
186 | CLANG_WARN_ENUM_CONVERSION = YES;
187 | CLANG_WARN_INT_CONVERSION = YES;
188 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
189 | CLANG_WARN_UNREACHABLE_CODE = YES;
190 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
191 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
192 | COPY_PHASE_STRIP = NO;
193 | DEBUG_INFORMATION_FORMAT = dwarf;
194 | ENABLE_STRICT_OBJC_MSGSEND = YES;
195 | ENABLE_TESTABILITY = YES;
196 | GCC_C_LANGUAGE_STANDARD = gnu99;
197 | GCC_DYNAMIC_NO_PIC = NO;
198 | GCC_NO_COMMON_BLOCKS = YES;
199 | GCC_OPTIMIZATION_LEVEL = 0;
200 | GCC_PREPROCESSOR_DEFINITIONS = (
201 | "DEBUG=1",
202 | "$(inherited)",
203 | );
204 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
205 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
206 | GCC_WARN_UNDECLARED_SELECTOR = YES;
207 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
208 | GCC_WARN_UNUSED_FUNCTION = YES;
209 | GCC_WARN_UNUSED_VARIABLE = YES;
210 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
211 | MTL_ENABLE_DEBUG_INFO = YES;
212 | ONLY_ACTIVE_ARCH = YES;
213 | SDKROOT = iphoneos;
214 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
215 | TARGETED_DEVICE_FAMILY = "1,2";
216 | };
217 | name = Debug;
218 | };
219 | EE843AAF1D5C506E00D88AE5 /* Release */ = {
220 | isa = XCBuildConfiguration;
221 | buildSettings = {
222 | ALWAYS_SEARCH_USER_PATHS = NO;
223 | CLANG_ANALYZER_NONNULL = YES;
224 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
225 | CLANG_CXX_LIBRARY = "libc++";
226 | CLANG_ENABLE_MODULES = YES;
227 | CLANG_ENABLE_OBJC_ARC = YES;
228 | CLANG_WARN_BOOL_CONVERSION = YES;
229 | CLANG_WARN_CONSTANT_CONVERSION = YES;
230 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
231 | CLANG_WARN_EMPTY_BODY = YES;
232 | CLANG_WARN_ENUM_CONVERSION = YES;
233 | CLANG_WARN_INT_CONVERSION = YES;
234 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
235 | CLANG_WARN_UNREACHABLE_CODE = YES;
236 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
237 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
238 | COPY_PHASE_STRIP = NO;
239 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
240 | ENABLE_NS_ASSERTIONS = NO;
241 | ENABLE_STRICT_OBJC_MSGSEND = YES;
242 | GCC_C_LANGUAGE_STANDARD = gnu99;
243 | GCC_NO_COMMON_BLOCKS = YES;
244 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
245 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
246 | GCC_WARN_UNDECLARED_SELECTOR = YES;
247 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
248 | GCC_WARN_UNUSED_FUNCTION = YES;
249 | GCC_WARN_UNUSED_VARIABLE = YES;
250 | IPHONEOS_DEPLOYMENT_TARGET = 9.3;
251 | MTL_ENABLE_DEBUG_INFO = NO;
252 | SDKROOT = iphoneos;
253 | TARGETED_DEVICE_FAMILY = "1,2";
254 | VALIDATE_PRODUCT = YES;
255 | };
256 | name = Release;
257 | };
258 | EE843AB11D5C506E00D88AE5 /* Debug */ = {
259 | isa = XCBuildConfiguration;
260 | buildSettings = {
261 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
262 | INFOPLIST_FILE = LanguageSwiftTest/Info.plist;
263 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
264 | PRODUCT_BUNDLE_IDENTIFIER = com.malkouz.spinner.LanguageSwiftTest;
265 | PRODUCT_NAME = "$(TARGET_NAME)";
266 | };
267 | name = Debug;
268 | };
269 | EE843AB21D5C506E00D88AE5 /* Release */ = {
270 | isa = XCBuildConfiguration;
271 | buildSettings = {
272 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
273 | INFOPLIST_FILE = LanguageSwiftTest/Info.plist;
274 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
275 | PRODUCT_BUNDLE_IDENTIFIER = com.malkouz.spinner.LanguageSwiftTest;
276 | PRODUCT_NAME = "$(TARGET_NAME)";
277 | };
278 | name = Release;
279 | };
280 | /* End XCBuildConfiguration section */
281 |
282 | /* Begin XCConfigurationList section */
283 | EE843A991D5C506E00D88AE5 /* Build configuration list for PBXProject "LanguageSwiftTest" */ = {
284 | isa = XCConfigurationList;
285 | buildConfigurations = (
286 | EE843AAE1D5C506E00D88AE5 /* Debug */,
287 | EE843AAF1D5C506E00D88AE5 /* Release */,
288 | );
289 | defaultConfigurationIsVisible = 0;
290 | defaultConfigurationName = Release;
291 | };
292 | EE843AB01D5C506E00D88AE5 /* Build configuration list for PBXNativeTarget "LanguageSwiftTest" */ = {
293 | isa = XCConfigurationList;
294 | buildConfigurations = (
295 | EE843AB11D5C506E00D88AE5 /* Debug */,
296 | EE843AB21D5C506E00D88AE5 /* Release */,
297 | );
298 | defaultConfigurationIsVisible = 0;
299 | defaultConfigurationName = Release;
300 | };
301 | /* End XCConfigurationList section */
302 | };
303 | rootObject = EE843A961D5C506E00D88AE5 /* Project object */;
304 | }
305 |
--------------------------------------------------------------------------------