---
title: "X 归档 2023-07-23"
date: "2023-07-23"
tags:
  - x-archive
  - apple
  - ai
  - rust
---

<div class="x-arch-meta">6 条动态 · 图 1 · 视频 5</div>
<div class="x-arch-day">
  <div class="x-arch-item">
    <input type="radio" name="xl-1682801258720280576" id="xl-1682801258720280576-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1682801258720280576" id="xl-1682801258720280576-orig" class="x-arch-lang-input x-arch-lang-input-orig" aria-label="显示原文" /><div class="x-arch-head"><img class="x-arch-avatar" src="https://twimg.tweb.xin/twimg/profile_images/1553505113633075200/MBkX8qZx_bigger.jpg" alt="" loading="lazy" referrerpolicy="no-referrer" /><span class="x-arch-kind x-arch-kind-posted" aria-label="发" title="发"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" /><path d="m15 5 4 4" /></svg></span><a class="x-arch-author" href="https://x.com/_Kavsoft" target="_blank" rel="nofollow noopener" data-name="Kavsoft" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1553505113633075200/MBkX8qZx_bigger.jpg">@_Kavsoft</a><span class="x-arch-time">01:14</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1682801258720280576-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1682801258720280576-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/_Kavsoft/status/1682801258720280576" target="_blank" rel="noopener">原推文<svg class="x-arch-ext" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 7h10v10" /><path d="M7 17 17 7" /></svg></a></div>
    <div class="x-arch-text x-arch-orig">#SwiftUI NavigationStack Hero Animation Effect - Custom Matched Geometry Effect - iOS 17 - Xcode 15<br /><a href="https://youtu.be/cyVQJ31AYKs" target="_blank" rel="noopener">https://youtu.be/cyVQJ31AYKs</a></div>
    <div class="x-arch-text x-arch-trans">#SwiftUI NavigationStack 英雄动画效果 - 自定义 Matched Geometry Effect - iOS 17 - Xcode 15<br /><a href="https://youtu.be/cyVQJ31AYKs" target="_blank" rel="noopener">https://youtu.be/cyVQJ31AYKs</a></div>
    <video class="x-arch-video" preload="none" playsinline poster="/cdn-media/x/2023-07/1682801258720280576-poster.jpg" src="/cdn-media/x/2023-07/1682801258720280576.m3u8" width="720" height="728" data-duration="25" aria-label="@_Kavsoft 的视频"></video>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1682801627500277760" id="xl-1682801627500277760-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1682801627500277760" id="xl-1682801627500277760-orig" class="x-arch-lang-input x-arch-lang-input-orig" aria-label="显示原文" /><div class="x-arch-head"><img class="x-arch-avatar" src="https://twimg.tweb.xin/twimg/profile_images/2338620627/2jlvsk0apoy6axixa3ct_bigger.png" alt="" loading="lazy" referrerpolicy="no-referrer" /><span class="x-arch-kind x-arch-kind-posted" aria-label="发" title="发"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" /><path d="m15 5 4 4" /></svg></span><a class="x-arch-author" href="https://x.com/sarunw" target="_blank" rel="nofollow noopener" data-name="Sarun W." data-avatar="https://twimg.tweb.xin/twimg/profile_images/2338620627/2jlvsk0apoy6axixa3ct_bigger.png">@sarunw</a><span class="x-arch-time">01:15</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1682801627500277760-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1682801627500277760-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/sarunw/status/1682801627500277760" target="_blank" rel="noopener">原推文<svg class="x-arch-ext" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 7h10v10" /><path d="M7 17 17 7" /></svg></a></div>
    <div class="x-arch-text x-arch-orig">Learn how backIndicatorTransitionMaskImage affect the push/pop animation.<br /><br /><a href="https://sarunw.com/posts/what-is-backindicatortransitionmaskimage/" target="_blank" rel="noopener">https://sarunw.com/posts/what-is-backindicatortransitionmaskimage/</a><br /><br />#iosdev #uikit</div>
    <div class="x-arch-text x-arch-trans">了解 backIndicatorTransitionMaskImage 如何影响 push/pop 动画。<br /><br /><a href="https://sarunw.com/posts/what-is-backindicatortransitionmaskimage/" target="_blank" rel="noopener">https://sarunw.com/posts/what-is-backindicatortransitionmaskimage/</a><br /><br />#iosdev #uikit</div>
    <video class="x-arch-video" preload="none" playsinline poster="/cdn-media/x/2023-07/1682801627500277760-poster.jpg" src="/cdn-media/x/2023-07/1682801627500277760-video.mp4" width="1280" height="720" data-duration="5" aria-label="@sarunw 的视频"></video>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1682892820624068610" id="xl-1682892820624068610-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1682892820624068610" id="xl-1682892820624068610-orig" class="x-arch-lang-input x-arch-lang-input-orig" aria-label="显示原文" /><div class="x-arch-head"><img class="x-arch-avatar" src="https://twimg.tweb.xin/twimg/profile_images/1587390960375316481/hFEl2TXy_bigger.jpg" alt="" loading="lazy" referrerpolicy="no-referrer" /><span class="x-arch-kind x-arch-kind-posted" aria-label="发" title="发"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" /><path d="m15 5 4 4" /></svg></span><a class="x-arch-author" href="https://x.com/v_pradeilles" target="_blank" rel="nofollow noopener" data-name="Vincent Pradeilles" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1587390960375316481/hFEl2TXy_bigger.jpg">@v_pradeilles</a><span class="x-arch-time">07:18</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1682892820624068610-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1682892820624068610-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/v_pradeilles/status/1682892820624068610" target="_blank" rel="noopener">原推文<svg class="x-arch-ext" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 7h10v10" /><path d="M7 17 17 7" /></svg></a></div>
    <div class="x-arch-text x-arch-orig"><pre class="x-arch-code" data-language="js"><code>if myString.count &gt; 0 {
  // `myString` isn't empty
}</code></pre>
<br /><br />This code seems pretty reasonable, doesn't it? 😌<br /><br />But it actually hides quite a serious issue!<br /><br />Can you guess what that issue is? 🤨</div>
    <div class="x-arch-text x-arch-trans"><pre class="x-arch-code" data-language="js"><code>if myString.count &gt; 0 {
  // `myString` 不为空
}</code></pre>
<br /><br />这段代码看起来相当合理，对吧？😌<br /><br />但它其实隐藏着一个相当严重的问题！<br /><br />你能猜到是什么问题吗？🤨</div>
    <video class="x-arch-video" preload="none" playsinline poster="/cdn-media/x/2023-07/1682892820624068610-poster.jpg" src="/cdn-media/x/2023-07/1682892820624068610-video.mp4" width="1280" height="720" data-duration="92" aria-label="@v_pradeilles 的视频"></video>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1682895959028805635" id="xl-1682895959028805635-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1682895959028805635" id="xl-1682895959028805635-orig" class="x-arch-lang-input x-arch-lang-input-orig" aria-label="显示原文" /><div class="x-arch-head"><img class="x-arch-avatar" src="https://twimg.tweb.xin/twimg/profile_images/914888589670043654/KVvwjcWA_bigger.jpg" alt="" loading="lazy" referrerpolicy="no-referrer" /><span class="x-arch-kind x-arch-kind-posted" aria-label="发" title="发"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" /><path d="m15 5 4 4" /></svg></span><a class="x-arch-author" href="https://x.com/Rainmaker1973" target="_blank" rel="nofollow noopener" data-name="Massimo" data-avatar="https://twimg.tweb.xin/twimg/profile_images/914888589670043654/KVvwjcWA_bigger.jpg">@Rainmaker1973</a><span class="x-arch-time">07:30</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1682895959028805635-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1682895959028805635-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/Rainmaker1973/status/1682895959028805635" target="_blank" rel="noopener">原推文<svg class="x-arch-ext" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 7h10v10" /><path d="M7 17 17 7" /></svg></a></div>
    <div class="x-arch-text x-arch-orig">Chasing Stars in Shadow is a project by artist Joon Moon: a story about AI-adjusted shadow kids who come and go between 2D and 3D. Augmented Shadow technique makes the flat shadows appear three-dimensional to the viewer<br /><br />[<a href="https://www.joonmoon.net/]" target="_blank" rel="noopener">https://www.joonmoon.net/]</a></div>
    <div class="x-arch-text x-arch-trans">《Chasing Stars in Shadow》是艺术家 Joon Moon 的作品：一个关于 AI 调整下的影子孩子的故事，他们在 2D 与 3D 之间来去。增广影子技术让平面的影子在观者眼中呈现出立体感<br /><br />[<a href="https://www.joonmoon.net/]" target="_blank" rel="noopener">https://www.joonmoon.net/]</a></div>
    <video class="x-arch-video" preload="none" playsinline poster="/cdn-media/x/2023-07/1682895959028805635-poster.jpg" src="/cdn-media/x/2023-07/1682895959028805635-video.mp4" width="640" height="640" data-duration="46" aria-label="@Rainmaker1973 的视频"></video>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1682905003181359105" id="xl-1682905003181359105-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1682905003181359105" id="xl-1682905003181359105-orig" class="x-arch-lang-input x-arch-lang-input-orig" aria-label="显示原文" /><div class="x-arch-head"><img class="x-arch-avatar" src="https://twimg.tweb.xin/twimg/profile_images/1455156891190185985/chi6a2BU_bigger.jpg" alt="" loading="lazy" referrerpolicy="no-referrer" /><span class="x-arch-kind x-arch-kind-posted" aria-label="发" title="发"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" /><path d="m15 5 4 4" /></svg></span><a class="x-arch-author" href="https://x.com/simonng" target="_blank" rel="nofollow noopener" data-name="Simon Ng" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1455156891190185985/chi6a2BU_bigger.jpg">@simonng</a><span class="x-arch-time">08:06</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1682905003181359105-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1682905003181359105-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/simonng/status/1682905003181359105" target="_blank" rel="noopener">原推文<svg class="x-arch-ext" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 7h10v10" /><path d="M7 17 17 7" /></svg></a></div>
    <div class="x-arch-text x-arch-orig">It's not limited to SwiftUI. The new #Preview macro in Xcode 15 also lets you preview views developed in UIKit. <a href="https://www.appcoda.com/swiftui-preview-macro/" target="_blank" rel="noopener">https://www.appcoda.com/swiftui-preview-macro/</a></div>
    <div class="x-arch-text x-arch-trans">这并不局限于 SwiftUI。Xcode 15 的新 #Preview 宏也支持预览用 UIKit 开发的视图。 <a href="https://www.appcoda.com/swiftui-preview-macro/" target="_blank" rel="noopener">https://www.appcoda.com/swiftui-preview-macro/</a></div>
    <div class="x-arch-media">
      <a href="/cdn-media/x/2023-07/1682905003181359105-1.png" target="_blank" rel="noopener"><img class="x-arch-img" src="/cdn-media/x/2023-07/1682905003181359105-1.png" alt="@simonng 的配图 1/1" loading="lazy" decoding="async" width="1594" height="798" /></a>
    </div>
  </div>
  <div class="x-arch-item">
    <input type="radio" name="xl-1683135673988186113" id="xl-1683135673988186113-zh" class="x-arch-lang-input x-arch-lang-input-zh" checked aria-label="显示译文" /><input type="radio" name="xl-1683135673988186113" id="xl-1683135673988186113-orig" class="x-arch-lang-input x-arch-lang-input-orig" aria-label="显示原文" /><div class="x-arch-head"><img class="x-arch-avatar" src="https://twimg.tweb.xin/twimg/profile_images/1971758940498046976/7QBKyi2C_bigger.jpg" alt="" loading="lazy" referrerpolicy="no-referrer" /><span class="x-arch-kind x-arch-kind-posted" aria-label="发" title="发"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" /><path d="m15 5 4 4" /></svg></span><a class="x-arch-author" href="https://x.com/malcolmstill" target="_blank" rel="nofollow noopener" data-name="Malcolm Still" data-avatar="https://twimg.tweb.xin/twimg/profile_images/1971758940498046976/7QBKyi2C_bigger.jpg">@malcolmstill</a><span class="x-arch-time">23:23</span><span class="x-arch-lang-switch" role="group" aria-label="切换原文/译文"><label for="xl-1683135673988186113-zh" class="x-arch-lang-opt x-arch-lang-zh">译</label><label for="xl-1683135673988186113-orig" class="x-arch-lang-opt x-arch-lang-orig">原</label></span><a class="x-arch-link" href="https://x.com/malcolmstill/status/1683135673988186113" target="_blank" rel="noopener">原推文<svg class="x-arch-ext" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 7h10v10" /><path d="M7 17 17 7" /></svg></a></div>
    <div class="x-arch-text x-arch-orig">After a weekend of adding WASI support to <a href="http://github.com/malcolmstill/zware" target="_blank" rel="noopener">http://github.com/malcolmstill/zware</a> and hacking the DOOM source code, it can finally run the game! #ziglang #webassembly #hurtmeplenty</div>
    <div class="x-arch-text x-arch-trans">花了一个周末给 <a href="http://github.com/malcolmstill/zware" target="_blank" rel="noopener">http://github.com/malcolmstill/zware</a> 加上 WASI 支持并魔改 DOOM 源码之后，它终于能跑这个游戏了！#ziglang #webassembly #hurtmeplenty</div>
    <video class="x-arch-video" preload="none" playsinline poster="/cdn-media/x/2023-07/1683135673988186113-poster.jpg" src="/cdn-media/x/2023-07/1683135673988186113-video.mp4" width="772" height="566" data-duration="24" aria-label="@malcolmstill 的视频"></video>
  </div>
</div>
