<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="">Hello,<div class=""><br class=""></div><div class="">In Xcode 9 beta 4, Swift 4, I’m getting runtime errors popping up for Simultaneous accesses and I think they may be false negatives. Here’s a stripped down version of my code:</div><div class=""><br class=""></div><div class=""><font face="Menlo" class="">class MyButton: UIButton {</font></div><font face="Menlo" class=""><span class="Apple-tab-span" style="white-space:pre">        </span>fileprivate&nbsp;var&nbsp;imageRect:&nbsp;CGRect&nbsp;= .zero<br class=""></font><div class=""><font face="Menlo" class=""><span class="Apple-tab-span" style="white-space: pre;">        </span>fileprivate&nbsp;var&nbsp;titleRect:&nbsp;CGRect&nbsp;= .zero</font></div><div class=""><font face="Menlo" class=""><br class=""></font></div><div class=""><font face="Menlo" class="">&nbsp; &nbsp; &nbsp; &nbsp; func&nbsp;updateRects() {</font></div><div class=""><font face="Menlo" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if imageBeforeTitle {</font></div><div class=""><font face="Menlo" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; layoutHorizontally(leftRect: &amp;imageRect, rightRect: &amp;titleRect)</font></div><div class=""><font face="Menlo" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {</font></div><div class=""><font face="Menlo" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; layoutHorizontally(leftRect: &amp;titleRect, rightRect: &amp;imageRect)</font></div><div class=""><font face="Menlo" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</font></div><div class=""><font face="Menlo" class="">&nbsp; &nbsp; &nbsp; &nbsp; }</font></div><div class=""><font face="Menlo" class=""><br class=""></font></div><div class=""><font face="Menlo" class="">&nbsp; &nbsp; &nbsp; &nbsp; func layoutHorizontally(leftRect:&nbsp;inout&nbsp;CGRect,&nbsp;rightRect:&nbsp;inout&nbsp;CGRect) {</font></div><div class=""><font face="Menlo" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; leftRect.origin.x = padding</font></div><div class=""><font face="Menlo" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;rightRect.origin.x = leftRect.maxX + spacing</font></div><div class=""><font face="Menlo" class="">&nbsp; &nbsp; &nbsp; &nbsp; }</font></div><div class=""><font face="Menlo" class="">}</font></div><div class=""><br class=""></div><div class="">While the layoutHorizontally method has two CGRect inout parameters, never in my code do I pass the same CGRect. Any ideas if this is a bug I should post on <a href="http://bugs.swift.org" class="">bugs.swift.org</a> or if I’m missing something?</div><div class=""><br class=""></div><div class="">David.</div></body></html>