the-blue-alliance / the-blue-alliance-ios

An iOS app for accessing information about the FIRST Robotics Competition.
MIT License
76 stars 23 forks source link

Show filled/unfilled star contextually for myTBA favorites #454

Open ZachOrr opened 5 years ago

ZachOrr commented 5 years ago

Adding an Issue to track this - the star on the myTBA screens should be contextually filled/unfilled if the team is favorited or not. This should make it easier for users to know the state of their local data.

Long term having a background service to keep this up to date would be cool, but I think most people live in a world where they're only going to be updating this on one device

img_1321

ZachOrr commented 4 years ago

We might be able to use the Searchable.userCurated code to determine this

https://github.com/the-blue-alliance/the-blue-alliance-ios/blob/master/Frameworks/Search/Sources/Searchable.swift#L24

https://github.com/the-blue-alliance/the-blue-alliance-ios/blob/37765f6962a95e581a5e850f6187f9c78888c014/Frameworks/TBAData/Sources/MyTBA/MyTBAEntity.swift#L92