<div dir="ltr">
<p class="p1">I recently learned some VBA and I found a very conveniently <span class="s1">`with`</span> statement.</p>
<p class="p1"><span class="s1">`with`</span> statement can be helpful to set property for UIKit instance.</p>
<p class="p1">for instance a UILabel instance `textLabel` ,with `with` statement we can set UILabel property like this</p>
<p class="p2"><br></p>
<p class="p3">```swift</p>
<p class="p3">with textLabel{</p>
<p class="p4"><span class="s1">        </span>.textAlignment<span class="s1"> = </span>.Left</p>
<p class="p4"><span class="s1">        </span>.textColor<span class="s1"> = UIColor</span>.darkTextColor<span class="s1">()</span></p>
<p class="p4"><span class="s1">        </span>.font<span class="s1"> = UIFont</span>.systemFontOfSize<span class="s1">(</span><span class="s2">15</span><span class="s1">)</span></p>
<p class="p3">}</p>
<p class="p3">```</p></div>