<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">The one issue I see is sticking that public extension inside a private one. &nbsp;I think you would have to mark ‘secret: Int’ as private instead of the extension itself to allow the effect you are looking for…</span></div></blockquote></div>I didn't think that much while writing the example, but this one was actually on purpose:<div class="">It's stated in the Swift documentation that the default visibility of members in an extension equals the level of the extension — so this use of extensions is also a way to group all public declarations (the other levels as well), and save some keystrokes.</div></body></html>