Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load feed in background task #40

Merged
merged 7 commits into from
Jul 22, 2023

Conversation

boscojwho
Copy link
Contributor

Improves performance issues mentioned in #25:

  • Pull work that was happening on main thread in PostUIView.task{ } to .background tasks.

boscojwho and others added 7 commits July 19, 2023 14:15
…-task

* post-view-image-reloading:
  - Continue downloading image at lower priority when PostUIView scrolls out of view. - Animate in image after downloading, for less jarring experience.
  - Remove nested `ForEach` inside `List` in `FeedView`, which was causing feed to load posts in batches, instead of lazily one by one.
  - Set image in-memory and disk limit to reasonable values.
  - Use inline closure to suppress actor warning.
  - Add Nuke package to replace AsyncImage. - Use Nuke LazyImage to load images. - Add @mainactor attribute to suppress actor warning.
  - Refactor subviews into private view builders.
  - Refactor subviews into private view builders.

# Conflicts:
#	Leomard/Views/FeedView.swift
@Athlon007 Athlon007 merged commit 3a3104d into Athlon007:dev Jul 22, 2023
@Athlon007
Copy link
Owner

I've fixed the merge conflict and merged.

@boscojwho boscojwho deleted the load-feed-in-background-task branch July 22, 2023 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants