<div dir="ltr"><div style="font-size:12.8px">Hello,</div><div style="font-size:12.8px"><br></div><span style="font-size:12.8px">very often, it is necessary to define stored properties in extensions. It is currently only possible in Swift that has access to ObjC runtime with associated objects (in theory it might be possible with some global dictionary) and it requires a lot of boilerplate. Associated objects are used in UIKit quite heavily so it is something that authors of frameworks need.</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">It would be nice to able to create properties in extensions natively in Swift without need of Objective-C and without a boilerplate. These properties could be marked with some extra keyword/attribute so it is obvious they are different and they have a cost (depends on their implementation).</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">What do you think?</div><div class="" style="font-size:12.8px"><div id=":1zv" class="" tabindex="0"><img class="" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div><span class="" style="font-size:12.8px"><font color="#888888"><div>Tomáš</div></font></span></div>