Alle Bilder aus dem Iconbilder Ordner der Assets laden.
irgendwie so:
if let path = Bundle.main.path(forResource: "assets/test", ofType: "json") {
let data = try Data(contentsOf: URL(fileURLWithPath: path), options: .alwaysMapped)
let jsonObj = JSON(data: data)
}
Alle Bilder aus dem Iconbilder Ordner der Assets laden.
irgendwie so:
if let path = Bundle.main.path(forResource: "assets/test", ofType: "json") { let data = try Data(contentsOf: URL(fileURLWithPath: path), options: .alwaysMapped) let jsonObj = JSON(data: data) }
https://stackoverflow.com/questions/41485128/what-can-i-do-whether-add-images-to-assets-or-in-folder-in-ios
leider funktioniert der vorgeschlagene code nicht