Context: I'm an early-stage Swift developer creating a third-party keyboard for iPhone. Already have the app created (via XCode) so the users can click buttons to insert text into FB Messenger, Text Message, etc. There is currently no information stored as to what the user previously clicked (e.g., application is completely fresh every time it's opened).
Problem: I want to create two categories in my keyboard:
1) Most popular (all)
2) Most popular (you)
As their names suggest, these categories would show the most popular buttons that all users of the app have used, as well as what you have used, most recently.
What I've tried: Already tried Googling and searching Stack Overflow for tutorials on databases, user profiles, etc., but it's been difficult to figure out whether those are applicable given I don't need (or want) users to have to sign in to use my app.
I understand that there may be many ways to solve my problem, so would be happy to go through tutorials are read up about specific types of databases or app architecture if someone can point me in the right direction.
Thanks so much!