Arctic

593 readers
4 users here now

Arctic is a Lemmy client for iOS built on pure Swift. It currently supports iOS 15+ and Lemmy v0.17+

Get the latest version on TestFlight, or check it out on the AppStore.

If you would like to support Arctic’s development, feel free to Buy Me A Coffee

founded 2 years ago
MODERATORS
1
 
 

This version addresses a bug introduced in a previous version. It prevented the preloading of content, causing images and links to appear after the content was already displayed. This resulted in poor performance while scrolling.

Action menus have been revamped with a grouped layout on compatible devices, and actions have been reorganized to ensure uniformity throughout the application.

In addition, the media viewer now enables users to select text in images, choose image subjects for stickers, and search for information on various topics such as animals, plants, and locations.

Full Changelog


  • Added support for selecting text and image subjects from the media viewer
  • Fixed an issue preventing prefetching optimizations from working. This resulted in a lot of media and link previews loading in after posts have already been displayed.
  • Updated action menus with support for inline actions (requires iOS 16+)
  • Updated action menu icons and order for consistency

Links

2
 
 

Well, this is no small update like I had planned after the previous update. This is by far the largest update to Arctic so far. I've packed well over a hundred fixes, improvements, and new features into this release. I'm happy I finally had the time to work on some larger features and bug fixes that I have been putting off for a long time.

Arctic Theme Support (beta)

Arctic Theme Previews

I've talked about this for a long time and finally had the chance to implement support for themes in Arctic. This took a lot of work, but it has definitely paid off. I've included 12 default themes to choose from, as well as an editor to design your own custom themes. Rather than attempting to make every color themeable individually, I tried my best to minimize the colors used while still allowing for robust customization. With that said, I am looking for feedback on the theme editor. Themes can be configured for either light or dark mode, so you can mix and match them to your liking, e.g., Sepia during the day and Dracula during the night.

Themes can be imported and exported using a simple JSON file (ATDF “Arctic Theme Definition File"). You can duplicate any theme and edit to your liking, and switch between them with a single tap. I am planning a service for sharing and browsing community themes in the future, but first I would like to get some feedback on theming to finalize the format.

Markdown Improvements

Markdown Improvments

I came across this post about Markdown support in Lemmy apps recently. It highlights many issues with Markdown rendering in a lot of the Lemmy clients that are available. Arctic seems to have scored fairly well with a 9.3/10.

Some of the issues that were highlighted about Arctic were:

  • Images not properly rendering in-line.
  • Headers not working inside spoilers
  • Tables not aligning columns correctly

Well, this motivated me to work on improving markdown support in Arctic. I took some time and fleshed out support for embedded content in Markdown. Images, Videos, Tables, Spoilers are all embedded now which has allowed for many improvements to the rendering system, and more advanced control over the appearance. I've also fixed several issues where markdown rendering did not obey the Common Mark specification.

Media Uploads

Arctic no longer requires permission for selecting media from the photo library. I've also enabled support for uploading videos, and improved error handling to better convey issues with uploading media. Arctic also has support for uploading directly to Catbox.moe, this can be useful if you have a video that is too large for Lemmy or just prefer not to host media on Lemmy. Optionally, you can log in to Catbox so files are uploaded directly to your account and can be deleted later (anonymous uploads can only be deleted by Catbox.moe's admin). As a side note, I developed Catbox-Swift for easily managing Catbox.moe uploads. Please feel free to use this in your projects.

Media APIs

Arctic finally supports playing videos hosted by Lemmy (Picts). This has been a long-time frustration for me, as videos hosted on Lemmy servers seem to have issues playing on all Apple platforms. Well, I finally had the time to track down the issue preventing playback and attributed it to server configuration and Apple oddly not handling this issue well. In addition to Lemmy video, Arctic can now stream videos on PeerTube and Streamable. I've improved support for streaming YouTube videos, and fixed several issues with Reddit, and Imgur media.

Performance and Energy

I've rewritten large portions of Arctic's backend with performance, reliability, and consistency in mind. On average, Arctic now uses about 75% less memory, and significantly less CPU. In rewriting these systems, I was able to make a lot of improvements to caching behavior to reduce network usage, and increase consistency in rendering content. When Arctic is idle, or backgrounded, systems will shut down, and memory will be freed to prevent any energy consumption while the app is not in active use.

v0.4.2.3 Changelog


Arctic Theme Support (Beta)

Theme support is in beta. Please submit any feedback related to improvements or issues

  • Added support for custom themes
  • Separate themes for light and dark mode
  • Automatic theme switching
  • Full theme editor, with live previews
  • Instant switching of themes (some issues with this)
  • Import and export themes
  • Copy themes to customize to your liking
  • 12 default themes to choose from:
    • Arctic Light
    • Arctic Dark
    • Arctic Black
    • GitHub Light
    • GitHub Dark
    • Dracula
    • Alucard
    • Crème
    • Solarized
    • Nebula
    • Verdandi Light
    • Verdandi Dark
Markdown

  • Added support for embedded videos
  • Added support for embedded images in Markdown tables
  • Added support for markdown image links
  • Added rounded corners to embedded media
  • Added optimizations for caching embedded content layout
  • Added support for additional Lemmy link formats /c/<community>@<instance> and /u/<user>@<instance>
  • Added invisible break shortcut to the markdown toolbar for inserting invisible thematic breaks using HTML comment <!-- -->
  • Updated block quote appearance to render full length margin lines for nested quotes
  • Updated markdown parsing with improvements to parsing speed
  • Updated spoiler parsing to improve reliability
  • Updated link detection and handling
  • Updated defaults to enable embedded content by default
  • Fixed HTML rendering using incorrect font and text colors
  • Fixed an issue where spoilers would be parsed inside code blocks
  • Fixed an issue where a Markdown table occurring immediately after a spoiler could break rendering of the spoiler
  • Fixed an issue where inline code may be incorrectly parsed
  • Fixed soft breaks in code blocks having incorrect indentation
  • Fixed block quotes incorrectly allowing soft breaks
  • Fixed an issue where links were not tappable when contained in an embedded Markdown table
  • Fixed some issues with inline images being positioned incorrectly
Link Previews

  • Added support for audio in link previews: e.g. for playing audio previews on Spotify links
  • Added a new network manager for improved control over network requests
  • Added support for fetching the apple-touch-icon from links instead of relying on Google for favicons
  • Rewrote open graph parser to improve reliability and performance
  • Fixed an issue where direct download links could result in Arctic loading large files into memory while attempting to provide a link preview
  • Fixed an issue where link previews could be unnecessarily be reloaded when they are already cached
Media Uploads

  • Uploads no longer require permission for selecting media from the photo library
  • Added support for selecting and uploading videos
  • Added support for uploading media directly to Catbox.moe
  • Added option to select the default upload destination (Lemmy, Catbox, ask each time)
  • Added option to log into Catbox.moe, so uploads will be added to your account
  • Improved logging of errors when uploading media
Media APIs

  • Added support for playing videos hosted on Lemmy. (Videos hosted by Picts have issues playing on Apple platforms due to server configuration, arctic will now detect this and preload the video for playback)
  • Added support for PeerTube videos
  • Added support for Streamable videos
  • Improved support for YouTube videos
  • Improved caching behavior to reduce network usage
Improvements

  • Major overhaul to memory and energy management in Arctic. On average, Arctic now uses 75% less memory, and significantly less CPU and energy. There are some cases where memory and CPU usage may spike, such as views with a high number of animated images. However, Arctic will attempt to listen to system warnings and unload resource intensive tasks when requested.
New Features

  • Added support for additional image formats such as AVIF, and SVG (shields.io)
  • Added an experimental feature to dim media when dark mode is enabled
  • Added support for fetching media from Reddit post and comment links
  • Added a new paging image gallery view, you can choose between paged, or grid appearance in settings
  • Added a new option related to the Post Image Size option to allow scaling images down to fit the full image in the view
  • Added a warning alert when attempting to submit a comment with no content
  • Added support for Haptic Touch on images and videos to allow saving/sharing media
  • Added an overlay for media that failed to load to allow attempting to reload the media
  • Added support for domain filters, You can now filter individual websites from post feeds
  • Added caching of media playback positions, media will now resume at its previous position
  • Added a close button to the changelog popup when launching Arctic
Changes

  • Updated font sizes throughout the app for better consistency.
  • Updated the new comments indicator to subtly add a green (+) icon in the center of the comments icon
  • Updated the indicator used for featured posts
  • Updated avatar image labels to improve performance
  • Updated rendering of inline code that wraps lines
  • Updated the Community Selector appearance
  • Updated link handling to attempt loading all links over HTTPS, Arctic does not allow unsecured network requests
  • Updated crosspost detection to be more lenient. Some clients have slightly different formatting for crossposts, and Arctic will now detect more of these formats
  • Updated open post views to more closely resemble post feed appearance
  • Updated image processing to improve performance and reliability in detecting image formats
  • Updated the video player with modern swift observers removing some legacy code
  • Updated the profile header appearance
  • Updated the progress bar on inline videos
  • Updated the playback controls in the media viewer with an iOS 18 esque appearance
  • Updated the preloading behavior in post feeds, this addresses several issues with inconsistent layout, content disappearing, content failing to load, high memory usage, etc. This has drastically improved performance and reliability within post feeds
  • Updated video thumbnail loading to improve reliability and performance
  • Updated image gallery layout and improved performance
  • Updated the project removing some unused legacy code
  • Updated changelog popup not to show on the first time launching Arctic
Fixes

  • Fixed issue where Arctic would request permission to send notifications on its first launch. Permissions will only be requested when enabling notifications in settings, or adding a Community Notification for the first time.
  • Fixed issue where widget insets would be too large on iOS 17+
  • Fixed issue where Reddit gallery links would not properly load content
  • Fixed issue where some links could incorrectly be treated as YouTube links
  • Fixed issue with some cells appearing clipped when using a notched device in landscape
  • Fixed an issue where changes to the unique notification token for devices would not be synchronized with the notification server
  • Fixed issue where media would not pause when dismissing an open post view
  • Fixed Bar Shadows setting not applying when blurred or default bar styles are enabled
  • Fixed several layout issues that could cause performance drops, and incorrect rendering in some cases
  • Fixed an issue where importing user settings would show a success alert even if the import was canceled
  • Fixed an issue where Arctic may crash when refreshing a profile view
  • Fixed an issue where media in comment cells could continue to play even when it is out of view
  • Fixed an issue where the mod reason composer would show full-screen rather than as a popover
  • Fixed an issue where image gallery's' could cause a crash due to invalid links
  • Fixed an issue where some pages would allow pull to refresh even though it was unused
  • Fixed an issue where widgets would display very low quality images
  • Fixed an issue in private messages where the bottom inset would be incorrect after sending a message
  • Fixed an issue where clearing the search query in the Community Selector could continue to show results for the first letter of the cleared query
  • Fixed an issue where the navigation bar might not reappear when swiping back from search results
  • Fixed an issue where the cancel button would appear on the right-hand side when inserting a link or image using the markdown toolbar
  • Fixed an issue where refreshing a profile, or scrolling would repeat some API requests when they already cached
  • Fixed an issue where multiple API requests to the same endpoint could occur at the same time, duplicate requests will now be batched into one to prevent unnecessary network traffic, and reduce server load
  • Fixed an issue where embedded crossposts could incorrectly show an empty image gallery view
  • Fixed an issue where avatar images would be fetched even if they are disabled in settings
  • Fixed an issue allowing images to be re-downloaded even if they were already cached
  • Fixed an issue where Imgur gifv links would not load, these links are now redirected to the direct media link
  • Fixed an issue where the random community button in the search tab could cause a crash, or load the home feed
  • Fixed an issue where opening a community you are not subscribed to while the listing type is set to Subscribed, would result in an empty feed
  • Fixed an issue where Arctic could crash when scrolling in post feeds, or after reopening Arctic from the background
  • Fixed an issue where video seeking could be inaccurate
  • Fixed a typo in appearance settings
  • Fixed an issue where saving HLS videos would silently fail. Saving HLS streams is unsupported, and an alert will be shown when attempting to save HLS content
iOS 18

  • Fixed a visual glitch when hiding the tab bar on iOS 18 due to an iOS bug
  • Restored tab bar appearance on iOS 18 to use the classic style
MacOS

  • Added support dismissing media previews using the trackpad
  • Added support for building as Optimized For Mac (So much left to fix with this)
  • Added better support for App Nap on Mac by pausing non-essential background activity
  • Added keyboard shortcut (Command + Return) for submitting comments, posts, messages, etc.
  • Fixed an issue where the login controller would be shown off screen when presented from the account quick switcher

Links


3
 
 

Is it just me or is something broken?

4
 
 

Sorry if this has already been asked/answered, but will Arctic eventually be open source?

5
 
 

When I try to upload a HEIF image I got this error. Does arctic try to convert it to an video, or is this solely related to my instance?

It could be handy if arctic converts HEIF images to png or something, before uploading it. Or maybe there is a even better solution for it.

6
 
 

Twice now I've seen a post duplicated in the main feed but where the second one opens a completely different post.

I captured a screen recording of it but it's too big to upload directly. Here's a screenshot--the second post opens something different...

7
 
 

In using the 'Controversial' sorting option for my All feed, I found that it was consistently only able to load a limited number of posts before erroring out.

Sort by controversial loading glitch demonstration.

Edit: After testing in Safari via the regular Lemmy client, the same behavior occurring seems to indicate that it's a bug with Lemmy itself, rather than Arctic specifically.

Edit: Confirmed with the Lemmy developers that it had indeed been a bug in the backend, but has already been resolved in a development version of the software testable on voyager.lemmy.ml.

8
 
 

Currently, Arctic on iOS does not immediately hide a post when selecting the option to hide one. It is only hidden when the page of posts is refreshed. Please have hidden posts immediately disappear from view as soon as the option to hide one is selected.

9
 
 

Currently, Arctic on iOS does not have a “hide” option when swiping on a post. Please add the option in the gestures setting.

10
2
Hide deleted post (feddit.org)
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]
 
 

I think deleted posts should not appear in the profiles post history, but be filtered into some specific "deleted" category, in my profile page.

11
 
 

While I've made use of title and domain filters for a few weeks now to filter out unwanted posts from communities I otherwise don't want to block, I noticed today that if you press the 'Add Filter' button for Title, Domain, Community Name, or Username filters, but leave the filter blank, all posts will be hidden.

In the case of Domain filters, oddly up to three recent non-URL posts seem to be able to appear when a Domain filter is blanked out, but not all non-URL posts in general.

For some reason, the same problem doesn't seem to occur when blanking out a Content filter, as far as I can tell.

Here's is a demonstration of the glitch, using a blank Community Name filter:

Blank filter glitch demonstration.

12
 
 

Most people probably wouldn't notice it, but the gap between 'Search' and 'TRENDING COMMUNITIES' is inconsistent.

I marked the initial height of it with a line in the example GIF below. It gets shorter after tapping the search bar and exiting out of it, and then taller after the page is refreshed.

Search tab spacing inconsistencies example.

13
 
 

In the 'Content' section of the Settings page, 'Embeded Crossposts' should be 'Embedded Crossposts'.

Not a bug per-se, but thought I'd make a note of it all the same.

14
 
 

In recording the example videos for my prior bug report, I at one point accidentally entered 'Stean' instead of 'Steam' into the search box, subsequently re-recording the video to correct the typo.

Since then, however, when I enter the word 'Steam' into the search box, conduct the search, and then tap on the search box again to edit the query, it selects the word and suggests a reversion to 'Stean', rather than placing the blinking cursor after Steam to let me edit the text as normal. The issue persists after restarting the app.

After some trial and error of figuring out how I had triggered the glitch in the first place, I replicated it with the word 'Worry' and its typo 'Worrt' for the example GIF below. If it helps in determining the cause, the glitch does not seem to apply to words beyond a certain length, as my initial idea of 'examples' and 'examplez' did not trigger the glitch, nor did 'tomatoes' and 'tomatoez'.

Typo memory text entry glitch.

15
 
 

Normally, the search tool takes the input query, applies it to the search type selected (Community/Comment/Post/User), and outputs the corresponding results. The user then has the option of switching to another one of the three tabs to repeat the search with a different search type. This functioning normally is demonstrated in the first GIF below:

Search tool working normally.

If the user switches to a different tab before the search completes, however, the search is unable to be applied to the newest tab. Tapping on the search box and pressing enter also doesn't enable the query to be processed in this case, without at least removing or adding a character to it first.

The first example is quickly switching tabs before the initial search is able to load:

Search tool quick switch glitch example two.

The second example is switching tabs after having completed the initial search and quickly returning to the original one:

Search tool quick switch glitch example three.

The third example is switching tabs after having completed the initial search and quickly switching again to a different one:

Search tool quick switch glitch example one.

16
 
 

If you open Lemmy Explorer and tap on the search bar before the community list loads, neither the community count nor the communities themselves will appear until you either enter something into the search bar or cancel the search.

Lemmy Explorer community loading glitch example.

17
 
 

While I'm saving most of my feature requests for after I'm done bug hunting, I thought that extending the same level of searchability to Mbin and Piefed communities would increase the number of communities users have easy access to, along with making it more likely that those communities get new Lemmy users to join.

Of the two, I'd guess that Mbin would be the easier one to implement currently, given that Lemmy Explorer on lemmyverse.net indexes them in a similar manner to Lemmy communities.

If the functionality were implemented, ideally the Mbin and Piefed communities would be searchable via the current Lemmy Explorer tool, perhaps with a filter option to toggle the listing of communities from any of the three services on or off.

18
 
 

Having curated my Lemmy Explorer list to specifically exclude subjects beyond my interests, I don't usually make use of the 'Random Community' button. After just tapping it a few times in a row, however, I noticed that it seemed to be drawing community names from a tiny subset of the 933 communities that I haven't blocked.

People with shorter block lists than me are likely to have a greater degree of variation from the randomizer. That aside, of the hundreds of options it should have been able to choose from, the randomizer only selected the following nine communities during my extensive testing of it:

Entries near the start of the list were chosen more frequently than those towards the end of it, for some reason.

Community randomizer bug example.

19
 
 

A minor graphical bug, but thought I'd still make note of it.

It's a distinct bug from the one affecting the Lemmy Explorer loading icon that I posted above a few days ago, as this one seems to affect all loading icons.

Cached loading icon bug example.

20
 
 

Typically, if you tap on a post's image, there is a quick animation that scales the image up from its current location on the screen until it fills the screen completely.

For some reason, sometimes when the post image is tapped on very quickly after the post is loaded, the animation is skipped.

It doesn't seem to occur consistently, but in recording it for the GIF below, it occurred on my fourth loading of the post, each time quickly repeatedly tapping on the post image as soon as it appeared. The GIF itself consists of the third and fourth of those loadings, with the third having the normal animation and the fourth lacking it.

As the difference is harder to see at low frame rates, I tried uploading a high frame rate GIF to no avail, so if needed I can share the original video file via different means.

Image loading animation glitch example.

21
 
 

While scrolling through my curated community list in Lemmy Explorer, I noticed that error messages do not disappear until scrolling finishes, or if the user switches the direction they're scrolling in.

Below I've included examples of how an error message is displayed without and with scrolling. While I scrolled through the feed quickly to keep the GIF short enough to be able to upload it directly to Lemmy, testing indicated that as long as scrolling continues uninterrupted, the error message remains on the screen.

Without scrolling:

Error message without scrolling example.

With scrolling:

Error message with scrolling example.

Edit: The same principle seems to apply to loading icons, though since they disappear after scrolling down, it only applies when scrolling up:

Loading icon scrolling glitch.

22
 
 

If a comment has text that's recognized as a URL, the system auto-generates a link preview for it. As the link preview of the updated comment doesn't replace existing ones, it's possible to repeatedly duplicate link previews via successive edits to the same comment. The view returns to normal once the page is reloaded.

The GIF below demonstrates the bug:

Link preview duplication glitch example.

23
 
 
24
 
 

The video in this post is showing the old zoom / rotation issues for me again. Haven't seen that for ages--don't know if it's the post or the video itself...

https://feddit.uk/post/25484177

25
 
 

Just curious, why the odd formatting of this number when replying to a post?

view more: next ›