<p style="margin: 0px; line-height: normal;"><span style="font-family:'Helvetica Neue'" class="font">Hello Swift community,</span><br></p><div><br></div><div>I found this very useful while wrapping c api,&nbsp;although this may simplify the code in other cases when subscript doesn't have it's own state and(or) share some state form the container.<br></div><div><br></div><div>here is an example:&nbsp;<a href="https://gist.github.com/tonyfreeman/949ce0a9aa374ab6fa2fc7de0dccaa27">https://gist.github.com/tonyfreeman/949ce0a9aa374ab6fa2fc7de0dccaa27</a><br></div><div><br></div><div>another option would be use set/get functions, but it doesn't feel right.<br></div><div><br></div><p style="margin: 0px; line-height: normal;"><span style="font-family:'Helvetica Neue'" class="font">Thank you</span><br></p><div><br></div>