Post

Replies

Boosts

Views

Activity

Comment on JSON parsing from a static JSON file into the label
In case of the album art - am i doing it right?: `                if let artUrl = URL(string: radio.nowPlaying.song.art) {                 //I need to load an image from artUrl                     let imageDatatask = session.dataTask(with: artUrl) { imageData, imageResponse, imageError in                     let albumArt = UIImage(data: imageData!)                     //let albumView = UIImageView(image: albumArt)                     }                     imageDatatask.resume()                     }`
Topic: UI Frameworks SubTopic: UIKit Tags:
Sep ’21
Comment on JSON parsing from a static JSON file into the label
I think I've got two options: the first one is a workaround to call API every 5 seconds (I dont know if it is good idea) - is it hard to make it? The other option is to create webhook - my application can send POST HTTP request to the given URL of the webhook. POST is exactly the same as this: https://admin.radiopromil.online/api/nowplaying , but than I have still the problem with forcing the app to fetch data from webhook url.
Topic: UI Frameworks SubTopic: UIKit Tags:
Sep ’21