<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 class="">It definitely should. Can you show the code where it wasn’t being called?</div><div class=""><br class=""></div><div class="">Thanks!</div><div class="">Jordan</div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 7, 2017, at 00:31, Zhao Xin via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family:georgia,serif">Should Array's `append(_)` functions cause the array's `didSet`?</div><div class="gmail_default" style="font-family:georgia,serif">In my own test, it did call `didSet` in Playground. But in .swift files, it didn't call.</div><div class="gmail_default" style="font-family:georgia,serif"><br class=""></div><div class="gmail_default" style="font-family:georgia,serif">Is this a known bug or something? Which is correct?</div><div class="gmail_default" style="font-family:georgia,serif"><br class=""></div><div class="gmail_default" style="font-family:georgia,serif">Xcode Version 9.0 beta 2 (9M137d)<br class=""></div><div class="gmail_default" style="font-family:georgia,serif"><br class=""></div><div class="gmail_default"><div style="margin: 0px; line-height: normal;" class=""><font face="georgia, serif" class="">swift --version</font></div><div style="margin: 0px; line-height: normal;" class=""><font face="georgia, serif" class="">Apple Swift version 4.0 (swiftlang-900.0.45.6 clang-900.0.26)</font></div><div style="margin: 0px; line-height: normal;" class=""><font face="georgia, serif" class="">Target: x86_64-apple-macosx10.9</font></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""><font face="georgia, serif" class=""><br class=""></font></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""><font face="georgia, serif" class=""><br class=""></font></span></div><div style="margin: 0px; line-height: normal;" class=""><font face="georgia, serif" class="">Zhao Xin</font></div></div></div>
_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></blockquote></div><br class=""></body></html>