Singleton VS static(class) variables
<p>What is the best practice in Swift?</p>

<p><strong>Option 1:</strong></p>

<pre><code>class SomeManager {

    static var sharedManager = SomeManager()

    var someVariable: String?

}
</code></pre>

<p>and then</p>

<pre><code>let something = SomeManager.sharedManager().someVariable
</code></pre>

<p><strong>Option 2:</strong></p>

<pre><code>class SomeManager {

    static var someVariable: String?

}
</code></pre>

<p>and then</p>

<pre><code>let something = SomeManager.someVariable
</code></pre>