Post

Replies

Boosts

Views

Activity

Comment on Error -> init(coder:) has not been implemented
Nevermind the app is in SwiftUI which I'm not really familiar with and the viewModel initialisation was in another file. It was supposed to be initialised like this             `let albumService = LocalAlbumService()   let favoritesService = LocalFavoritesService() let recommendationService = MLRecommendationService()             AlbumsView(viewModel: AlbumsViewModel(albumService: albumService, favoritesService: favoritesService, recommendationService: recommendationService))`
Jan ’22
Comment on UISlider Unusual Track Behaviour
I think when the track height is at it's default height the thumb usually covers that section of the track so maybe that behaviour is somewhat intentional? I have found one other case with a similar behaviour although that had something to do with the language set being right aligned. Other than that I haven't come across anyone else with this issue. Is there any other way to increase the track height? Im trying to make the slider look like the one in control centre (macOS).
Apr ’22
Comment on UISlider Unusual Track Behaviour
I was following this guide https://medium.com/ios-os-x-development/how-to-personalize-and-use-uislider-in-swift-ec96d2e8f99d Those two that you provided edit the thumb in thumbRect and don't mention the track. Looking at them are you saying I have to create another subclass for the track view then use that in trackRect? I noticed that if I set the set the min and max track image I don't get that behaviour however the ends are then both square.
Apr ’22