Post

Replies

Boosts

Views

Activity

Comment on JSON parsing from a static JSON file into the label
Wow, I didint expect such a complex answer! Many thanks dor your help and for the quicktype url - it would be useful for the next time. Your solution works fine, but the songs are changing, while on my labels data is still the same. Do you know a solution how to force an update from my api? Is it possible? Data in it is changing when the song is changing, so when the api data is changing. Thank you in advance.
Topic: UI Frameworks SubTopic: UIKit Tags:
Sep ’21
Comment on AVPlayer UIButton - show play or pause image button depending on whether the stream is on or off
Hi @Claude31, I would like to have one button, which change the image from play.png to pause.png, whether the stream is playing or not. Now, as you can find in my code, I have two buttons: play and stop. I just need one button with play and pause image depending on whether stream is playing or not. When the user open the app, the play image on the button should be visible and the button should start an action of playing the stream, than when the stream is playing, user should see pause button to stop the stream etc.
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’21
Comment on Adding MKCircle to the annotations on the map - Problem with setting CLLocationCoordinate2D
Yes, sorry it is: class ViewController: UIViewController, MKMapViewDelegate{ Now, the new struct is correct: struct Szczyt { var name: String var describtion: String var lattitude: CLLocationDegrees var longtitude: CLLocationDegrees var coordinate: CLLocationCoordinate2D { .init(latitude: lattitude, longitude: longtitude) // here Im trying to create var for this property to set it for all objects         }     } }
Topic: Programming Languages SubTopic: Swift Tags:
May ’21