๐ ๅ่๏ผSwift Playgrounds โฉ Image Gallery (Data Model: Gathering Image URLs)
import Foundation extension URL { var isImage: Bool { ["jpg", "jpeg", "png", "gif", "heic"] .contains(self.pathExtension) } }
Swift Playgrounds โฉ Image Gallery (Data Model: Gathering Image URLs)
Foundation โฉ Numbers, Data, and Basic Values โฉ
URL โฉ pathExtension
Last updated 2 years ago