📜  快速循环遍历数组 - Swift 代码示例

📅  最后修改于: 2022-03-11 15:00:59.494000             🧑  作者: Mango

代码示例1
guard let currentUser = currentUser, 
    let photos = currentUser.photos as? [ModelAttachment] else 
{
    // break or return
}
// now 'photos' is available outside the guard
for object in photos {
    let url = object.url
}