呼叫map 時我們可以傳入closure,closure 只在optional 不為nil… ... 當imageName 等於nil 時,function map 將直接回傳nil,而SwiftUI 看到nil 還是可以活得好好的, ...
確定! 回上一頁