* Add new preference entry for recently used languages
Exposes a function to keep the language array clean: no more than 3 items, starting with the most recently used iso code
* Add the preferences to the status editor ViewModel
* Add language selector handling of most recent languages
Only when the user has explicitly selected a language, when the posting was successful, add the selected language to the preferences array.
- Makes Language a local private struct for clarity
- Ensures all available languages are only fetched once
- Separates recently used, other and search result section contents using specific vars/funcs
* Copy new key in all localization files
Co-authored-by: Pascal Batty <pascal@zen.ly>
* This is a fix for #317
Well more of an improvement than a fix.
Instead of looking for tags anywhere, we now look for /tags/TagName exactly. This can still fail if it happens to be a link to somewhere not on the post creator's home server that follows that pattern but by the time the parsing is done the post creator isn't available without a lot of re-plumbing.
But anyway, this should be better.
* No force unwrap
* Add poll options
* Add the poll view
* Disable adding attachments when showing polls
* Update to post poll info
* Wire up poll view
* Remove debug code
* Use VM for showing poll
* Rename PollView to something better!
* Move file location
* Disable poll button if media is attached.
* Don't refocus on delete option to avoid index out of range crash
Co-authored-by: Thomas Ricouard <ricouard77@gmail.com>
* Support In-App Safari
* Fix "View in Browser"
* Force external Safari on Account Creation
* Fix SafariRouteur issues
Attach to NavigationStack
Find top-most ViewController
* Make Preferred Browser a Picker choice