<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[iOS + watchOS + Swift - Medium]]></title>
        <description><![CDATA[Stuffs about iOS, watchOS and Swift - Medium]]></description>
        <link>https://medium.com/ios-watchos-swift?source=rss----39fc8925f59f---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>iOS + watchOS + Swift - Medium</title>
            <link>https://medium.com/ios-watchos-swift?source=rss----39fc8925f59f---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 17:43:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/ios-watchos-swift" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to add Firebase SDK to your iOS project]]></title>
            <link>https://medium.com/ios-watchos-swift/how-to-add-firebase-sdk-to-your-ios-project-1787265266bd?source=rss----39fc8925f59f---4</link>
            <guid isPermaLink="false">https://medium.com/p/1787265266bd</guid>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Van Du Tran]]></dc:creator>
            <pubDate>Mon, 18 Dec 2017 21:59:12 GMT</pubDate>
            <atom:updated>2018-01-13T16:53:35.282Z</atom:updated>
            <content:encoded><![CDATA[<p>This guide will show you how to add the Firebase iOS SDK to a new or existing Xcode iOS project.</p><ul><li>Create a new Xcode iOS project if you are not using an existing one. You will need the bundle id.</li><li>Go to <a href="https://firebase.google.com/">https://firebase.google.com/</a> to create an account, or log in using your gmail account.</li><li>Go to <a href="https://console.firebase.google.com/?authuser=0">https://console.firebase.google.com/?authuser=0</a> to add a new project.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*Ie8AyeD4_WbXEvSVbSNNAw.png" /></figure><ul><li>Choose <strong>Add Firebase to your iOS app</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/1*gdaYSMyerq1ld45Mg6D1bw.png" /></figure><ul><li>Fill in the required information.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zWy-Vm2Hl5YXHHsAefDKrw.png" /></figure><ul><li>Download the GoogleService-info.plish file and place it in your project’s root folder (where your AppDelegate.swift file is). Then add it to your all your Xcode project targets.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SFcXI6KNPty-bDR-BUdiFw.png" /></figure><ul><li>Open <strong>Terminal</strong> and go your Xcode project folder (where the .xcodeproj file is). Type the following command:</li></ul><pre>$ pod init</pre><ul><li>This will create a Podfile file. Open it to edit. Add this line (in bold) and save:</li></ul><pre># Pods for &lt;project name&gt;<br><strong>pod &#39;Firebase/Core&#39;</strong></pre><ul><li>Back to <strong>Terminal</strong>, run:</li></ul><pre>$ pod install</pre><ul><li>You should also update your pods with this command:</li></ul><pre>$ pod update</pre><ul><li>A new xcworkspace file is created and should be used from now on to open your project instead of .xcodeproj.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7kQTcPPK3Z8BWilR5E_8gg.png" /></figure><ul><li>In your project’s AppDelegate.swift, add these lines of codes (in bold):</li></ul><pre><strong>import Firebase</strong></pre><pre>func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -&gt; Bool {<br><strong>  FirebaseApp.configure()</strong><br>  return true<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q72bQBvz7xZupil2iMaAyA.png" /></figure><p>You’re done! Firebase SDK is ready to be used!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1787265266bd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ios-watchos-swift/how-to-add-firebase-sdk-to-your-ios-project-1787265266bd">How to add Firebase SDK to your iOS project</a> was originally published in <a href="https://medium.com/ios-watchos-swift">iOS + watchOS + Swift</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Ultimate Ultimate Guide to Image Assets!]]></title>
            <link>https://medium.com/ios-watchos-swift/the-ultimate-ultimate-guide-to-image-assets-f798186f01a7?source=rss----39fc8925f59f---4</link>
            <guid isPermaLink="false">https://medium.com/p/f798186f01a7</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[xcode]]></category>
            <dc:creator><![CDATA[Van Du Tran]]></dc:creator>
            <pubDate>Thu, 02 Jun 2016 15:49:09 GMT</pubDate>
            <atom:updated>2016-06-02T16:23:14.854Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Xcode 7.2</blockquote><p>Yah, image assets are really confusing! I wrote a <a href="https://medium.com/ios-watchos-swift/image-assets-1x-2x-retina-4-2x-3x-fd9f50c34210#.cs23lw7ao">short article</a> earlier, but it’s outdated (<strong>Retina 4 2x</strong> does not exist anymore) and wasn’t really helpful. So here’s my second try.</p><p>This article will explain how to use Image Assets when you want to display fullscreen background images in your app.</p><p>In Xcode, the <strong>Images.xcassets</strong> file is used to store all your images in all the required scale (1x, 2x, 3x) for the different screen resolutions (320 x 480, 640 x 960, 640 x 1136, 750 x 1334, 1242 x 2208).</p><p>The <strong>1x</strong> scale is not relevant for iPhones as iOS 8 is not supported by anything earlier than iPhone 4 (which started using <strong>2x</strong>). <strong>1x</strong> is needed for the iPad 2 tho.</p><h4>Here’s a recap of the devices and their resolutions.</h4><ul><li>iPhone 1G, 2G, 3G, 3Gs — 3.5&quot; screen — 320 x 480 (1x)</li><li>iPhone 4, 4s — 3.5&quot; screen — 640 x 960 (2x) — 320 x 480 pts</li><li>iPhone 5, 5c, 5s— 4.0&quot; screen — 640 x 1136 (2x) — 320 x 568 pts</li><li>iPhone 6, 6s — 4.7&quot; screen — 750 x 1334 (2x) — 375 x 667 pts</li><li>iPhone 6 Plus, iPhone 6s Plus — 5.5&quot; screen — 1242 x 2208 (3x) — 414 x 736 pts</li></ul><p>When you add a <strong>New Image Set</strong>, there will be 3 default sizes for the <strong>Universal</strong> device. They are called <strong>1X</strong>, <strong>2X</strong> and <strong>3X</strong>.</p><p>I tested with both <strong>Universal</strong> and <strong>iPhone</strong> devices, and they have the same behaviour.</p><p>Xcode will pick up whatever image scale is available in a specific order and rescale them if necessary. They are described below.</p><h4>Here is the setup:</h4><ul><li><strong>1x</strong> = 320 x 480</li><li><strong>2x</strong> = 640 x 960 / 640 x 1134 / 750 x 1136</li><li><strong>3x</strong> = 1242 x 2208</li></ul><p>As we can see, there is only one <strong>2x</strong> slot but there are three possible resolutions! We’ll see how to solve this issue later.</p><h4>Here are the results:</h4><p>When using UIColor(pattern: UIPattern(UIImage(named: “image”)!))</p><ul><li>On <strong>iPhone 4S</strong> the order is: 2x (native), 1x (upscaled to 2x), 3x (downscaled to 2x)</li><li>On <strong>iPhone 5/5S</strong> the order is: 2x, 1x (upscaled to 2x), 3x (downscaled to 2x)</li><li>On <strong>iPhone 6</strong> the order is: 2x, 1x (upscaled to 2x), 3x (downscaled to 2x)</li><li>On <strong>iPhone 6 Plus</strong> the order is: 3x, 2x (upscaled to 3x), 1x (upscaled to 3x)</li></ul><p>When using UIImageView(image: UIImage(named: “image”)) without setting the image size:</p><ul><li>On <strong>iPhone 4S</strong> the order is: 2x, 1x (upscaled to 2x), 3x (downscaled to 2x)</li><li>On <strong>iPhone 5/5S</strong> the order is: 2x, 1x (upscaled to 2x), 3x (downscaled to 2x)</li><li>On <strong>iPhone 6</strong> the order is: 2x, 1x (upscaled to 2x), 3x (downscaled to 2x)</li><li>On <strong>iPhone 6 Plus</strong> the order is: 3x, 2x (upscaled to 3x), 1x (upscaled to 3x)</li></ul><p>There you go!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f798186f01a7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ios-watchos-swift/the-ultimate-ultimate-guide-to-image-assets-f798186f01a7">The Ultimate Ultimate Guide to Image Assets!</a> was originally published in <a href="https://medium.com/ios-watchos-swift">iOS + watchOS + Swift</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to freeze the app to prolong the Splash screen]]></title>
            <link>https://medium.com/ios-watchos-swift/how-to-freeze-the-app-to-prolong-the-splash-screen-645b28a26e77?source=rss----39fc8925f59f---4</link>
            <guid isPermaLink="false">https://medium.com/p/645b28a26e77</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Van Du Tran]]></dc:creator>
            <pubDate>Tue, 01 Sep 2015 13:30:34 GMT</pubDate>
            <atom:updated>2015-09-01T13:30:11.835Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Xcode 6.4, iOS 8.4.1, Swift 1.2</blockquote><p>Here’s an example to add an addictional 2 seconds to the splash screen duration.</p><p>In your app delegate, add this line of code:</p><pre>func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -&gt; Bool {</pre><pre>NSRunLoop.currentRunLoop().runUntilDate(NSDate(timeIntervalSinceNow: 2))</pre><pre>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=645b28a26e77" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ios-watchos-swift/how-to-freeze-the-app-to-prolong-the-splash-screen-645b28a26e77">How to freeze the app to prolong the Splash screen</a> was originally published in <a href="https://medium.com/ios-watchos-swift">iOS + watchOS + Swift</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Image assets: 1x, 2x, Retina 4 2x, 3x]]></title>
            <link>https://medium.com/ios-watchos-swift/image-assets-1x-2x-retina-4-2x-3x-fd9f50c34210?source=rss----39fc8925f59f---4</link>
            <guid isPermaLink="false">https://medium.com/p/fd9f50c34210</guid>
            <dc:creator><![CDATA[Van Du Tran]]></dc:creator>
            <pubDate>Mon, 20 Jul 2015 16:56:12 GMT</pubDate>
            <atom:updated>2015-07-21T15:13:23.445Z</atom:updated>
            <content:encoded><![CDATA[<p>Confusing, yes?</p><p><strong>1X: Image in for 3.5&quot; screens with resolution of 320 x 480.</strong></p><ul><li>iPhone 1G, iPhone 2G, iPhone 3G, iPhone 3GS</li></ul><p><strong>2x: Retina image for 3.5&quot; with resolution of 640 x 960.</strong></p><ul><li>iPhone 4, iPhone 4S, iPhone 6 (upscaled to 750 x 1334)???</li></ul><p><strong>Retina 4 2x: Retina image for 4.0&quot; screens with resolution of 640 x 1136.</strong></p><ul><li>iPhone 5, iPhone 5C, iPhone 5S</li></ul><p><strong>3x: Retina image for 5.5&quot; screens with resolution of 1242 x 2208.</strong></p><ul><li>iPhone 6+ (downscaled to 1080 x 1920)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd9f50c34210" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ios-watchos-swift/image-assets-1x-2x-retina-4-2x-3x-fd9f50c34210">Image assets: 1x, 2x, Retina 4 2x, 3x</a> was originally published in <a href="https://medium.com/ios-watchos-swift">iOS + watchOS + Swift</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an iOS app using Facebook login with Parse]]></title>
            <link>https://medium.com/ios-watchos-swift/building-an-ios-app-using-facebook-login-with-parse-9d7577dfae8c?source=rss----39fc8925f59f---4</link>
            <guid isPermaLink="false">https://medium.com/p/9d7577dfae8c</guid>
            <dc:creator><![CDATA[Van Du Tran]]></dc:creator>
            <pubDate>Thu, 09 Jul 2015 21:29:26 GMT</pubDate>
            <atom:updated>2015-07-09T21:29:26.528Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Xcode 6.4 — iOS 8.4— Swift 1.2 — Parse iOS SDK 1.7.5 — Facebook iOS SDK 4.4.0 — Facebook API 2.4</blockquote><p>If you want to create an app that uses Facebook only login, with a Parse backend, here is how to do it.</p><h3><strong>Integrate the Facebook SDK</strong></h3><ol><li>Create a new Facebook app at <a href="https://developers.facebook.com/">https://developers.facebook.com/</a></li><li>In Settings, add a platform (iOS). Input an Bundle Id. You can leave iPhone Store Id and iPad Store ID to 0 until you obtain a real Id. iPad Store Id is the same as iPhone Store Id if it’s an universal app.</li><li>On Parse, go to Settings-&gt;Authentication and add your Facebook Application’s App Id and App Secret.</li><li>Download and install the Facebook iOS SDK from the <a href="https://developers.facebook.com/quickstarts/850641721681062/?platform=ios">Quick Start</a> guide. You can follow that guide, or the <a href="https://developers.facebook.com/docs/ios/getting-started">Getting Started</a> guide.</li><li>Add <strong>FBSDKCoreKit.Framework</strong>,<strong> FBSDKLoginKit.Framework </strong>and<strong> FBSDKShareKit.Framework </strong>into your iOS project.</li><li>Add these to your info.plist:</li><li>FacebookAppID as a String type and input your Facebook App ID</li><li>FacebookDisplayName as a String type and input your Facebook App Name</li><li>URL types as an Array type containing one element Items 0 as a Dictionary type containing on element URL Schemes as an Array type containing one element Item 0 as a String type having the value fb&lt;Facebook App ID&gt;</li><li>(<a href="http://stackoverflow.com/questions/30736663/swift-2-parse-facebooksdk-ios9">iOS 9 only</a>) LSApplicationQueriesSchemes as an Array type with one element of String type containing an element of String type having value fbauth.</li></ol><pre>&lt;key&gt;LSApplicationQueriesSchemes&lt;/key&gt;<br>&lt;array&gt;<br>    &lt;string&gt;fbauth&lt;/string&gt;<br>&lt;/array&gt;</pre><h3><strong>Integrate the Parse SDK</strong></h3><ol><li>Download and install the Parse iOS SDK here: <a href="https://www.parse.com/docs/downloads">https://www.parse.com/docs/downloads</a></li><li>Follow this guide to setup the Parse SDK with your iOS project: <a href="https://www.parse.com/apps/quickstart#parse_data/mobile/ios/native/new">https://www.parse.com/apps/quickstart#parse_data/mobile/ios/native/new</a></li></ol><p>Add these lines of code to AppDelegate.swift:</p><pre>import FBSDKCoreKit</pre><pre>func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -&gt; Bool {<br>    PFFacebookUtils.initializeFacebookWithApplicationLaunchOptions(launchOptions)<br>}<br></pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d7577dfae8c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ios-watchos-swift/building-an-ios-app-using-facebook-login-with-parse-9d7577dfae8c">Building an iOS app using Facebook login with Parse</a> was originally published in <a href="https://medium.com/ios-watchos-swift">iOS + watchOS + Swift</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Instantiate a view controller from a storyboard programmatically]]></title>
            <link>https://medium.com/ios-watchos-swift/instanciate-a-view-controller-from-a-storyboard-programmatically-5f0a10a6d2fe?source=rss----39fc8925f59f---4</link>
            <guid isPermaLink="false">https://medium.com/p/5f0a10a6d2fe</guid>
            <dc:creator><![CDATA[Van Du Tran]]></dc:creator>
            <pubDate>Thu, 09 Jul 2015 21:26:21 GMT</pubDate>
            <atom:updated>2015-07-09T21:26:39.623Z</atom:updated>
            <content:encoded><![CDATA[<pre>let storyboard = UIStoryboard(name: “Storyboard”, bundle: nil)</pre><pre>let viewController: UIViewController = storyboard.instantiateViewControllerWithIdentifier(“ViewController”) as! UIViewController</pre><pre>viewController.modalPresentationStyle = UIModalPresentationStyle.FullScreen</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f0a10a6d2fe" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ios-watchos-swift/instanciate-a-view-controller-from-a-storyboard-programmatically-5f0a10a6d2fe">Instantiate a view controller from a storyboard programmatically</a> was originally published in <a href="https://medium.com/ios-watchos-swift">iOS + watchOS + Swift</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git ignore UserInterfaceState.xcuserstate]]></title>
            <link>https://medium.com/ios-watchos-swift/git-ignore-userinterfacestate-xcuserstate-d89fb6176a52?source=rss----39fc8925f59f---4</link>
            <guid isPermaLink="false">https://medium.com/p/d89fb6176a52</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Van Du Tran]]></dc:creator>
            <pubDate>Thu, 09 Jul 2015 15:59:25 GMT</pubDate>
            <atom:updated>2018-02-12T15:25:26.101Z</atom:updated>
            <content:encoded><![CDATA[<h3>Using Terminal</h3><p>Open Terminal and run these command lines in your git repo:</p><pre>git status //to get the file path</pre><pre>git rm --cached ProjectName.xcodeproj/project.xcworkspace/xcuserdata/&lt;my_username&gt;.xcuserdatad/UserInterfaceState.xcuserstate<br>git commit -m &quot;Removed file that shouldn&#39;t be tracked&quot;</pre><h3>Using SourceTree</h3><p>In SourceTree, right click on the xcuserstate file and choose “Ignore…”. Select “Ignore exact filename” and for <strong>Add this ignore entry to</strong>, select “This repository only”.</p><p>Delete the file from the repo also.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d89fb6176a52" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ios-watchos-swift/git-ignore-userinterfacestate-xcuserstate-d89fb6176a52">Git ignore UserInterfaceState.xcuserstate</a> was originally published in <a href="https://medium.com/ios-watchos-swift">iOS + watchOS + Swift</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[App Transport Security error]]></title>
            <link>https://medium.com/ios-watchos-swift/app-transport-security-error-9d3a542d5d11?source=rss----39fc8925f59f---4</link>
            <guid isPermaLink="false">https://medium.com/p/9d3a542d5d11</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Van Du Tran]]></dc:creator>
            <pubDate>Wed, 08 Jul 2015 14:29:15 GMT</pubDate>
            <atom:updated>2015-07-08T14:34:54.272Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Xcode 7.0 beta 2 — iOS 9.0 beta 2 — Swift 2.0 beta 2</blockquote><p>If you encounter an error saying:</p><blockquote>Application Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app’s Info.plist file.</blockquote><p>The solution is to add this to your info.plist</p><pre>&lt;key&gt;NSAppTransportSecurity&lt;/key&gt;<br>&lt;dict&gt;<br>    &lt;key&gt;NSAllowsArbitraryLoads&lt;/key&gt;<br>    &lt;true/&gt;<br>&lt;/dict&gt;</pre><p>More info here: <a href="https://developer.apple.com/library/prerelease/ios/technotes/App-Transport-Security-Technote/index.html">App Transport Security Technote</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d3a542d5d11" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ios-watchos-swift/app-transport-security-error-9d3a542d5d11">App Transport Security error</a> was originally published in <a href="https://medium.com/ios-watchos-swift">iOS + watchOS + Swift</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to start a project without Storyboard]]></title>
            <link>https://medium.com/ios-watchos-swift/how-to-start-a-project-without-storyboard-5caea1e1a7d6?source=rss----39fc8925f59f---4</link>
            <guid isPermaLink="false">https://medium.com/p/5caea1e1a7d6</guid>
            <dc:creator><![CDATA[Van Du Tran]]></dc:creator>
            <pubDate>Sun, 21 Jun 2015 15:48:31 GMT</pubDate>
            <atom:updated>2015-06-21T15:49:47.223Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Xcode 6.3.2 — iOS 8.3 — Swift 1.2</blockquote><ol><li>In the AppDelegate.swift, add this code:</li></ol><pre>func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -&gt; Bool {</pre><pre>  window = UIWindow(frame: UIScreen.mainScreen().bounds)</pre><pre>  if let window = window {<br>    // create a view controller</pre><pre>    window.rootViewController = // assign the view controller<br>    window.makeKeyAndVisible()<br>  }<br>  <br>  return true<br>}</pre><p>2. Remove the <strong>MainStoryboard.storyboard</strong> file from the project.</p><p>3. Clear out the <strong>Main Interface</strong> input field in the target’s <strong>General</strong>, <strong>Deployment Info </strong>section.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5caea1e1a7d6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ios-watchos-swift/how-to-start-a-project-without-storyboard-5caea1e1a7d6">How to start a project without Storyboard</a> was originally published in <a href="https://medium.com/ios-watchos-swift">iOS + watchOS + Swift</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>