和 if let 很像的 guard let
guard 什麼都學 if,所以自然的,它也有個跟 optional binding 的 if let 很像的 guard let,專門判斷 optional 是否有值和讀取它的內容。
ps: 還不認識 guard 的朋友,可先參考以下連結的說明:
These were the top 10 stories published by 彼得潘的 Swift iOS App 開發問題解答集 in April of 2019. You can also dive into daily archives for April of 2019 by using the calendar at the top of this page.