Skip to content

Technical guide · Overview

Page status: HistoricalHistory group: Classified notes

NutsNews iOS Persistent Likes Update

This update makes liked stories persist and stay synchronized between the home feed and story page.

Visual overview

Primary diagram

System map

This update makes liked stories persist and stay synchronized between the home feed and story page.

Render the repository-owned system map when you need it.

Diagram is not rendered yet.

View as text
NutsNews iOS Persistent Likes Update

This update makes liked stories persist and stay synchronized between the home feed and story page.

flowchart TB
  accTitle: NutsNews iOS Persistent Likes Update
  accDescr {
    This update makes liked stories persist and stay synchronized between the home feed and story page.
  }
  A["NutsNews iOS Persistent Likes Update"] --> B["ios/NUTSNEWS_IOS_PERSISTENT_LIKES_UPDATE_README.md"]
  B --> C["Auto-generated placeholder diagram"]

NutsNews iOS Persistent Likes Update

Fullscreen diagram view.

This update makes liked stories persist and stay synchronized between the home feed and story page.

  • Added a shared LikedStoryStore backed by UserDefaults.
  • Home article cards now read liked status from the shared store.
  • Story pages now read liked status from the same shared store.
  • Liking a story on the home page shows it as liked on the story page.
  • Liking a story on the story page shows it as liked on the home page.
  • Liked state survives app relaunches.
  • NutsNews/NutsNews/Models/LikedStoryStore.swift
  • NutsNews/NutsNews/Features/Feed/ArticleCardView.swift
  • NutsNews/NutsNews/Features/Article/ArticleDetailView.swift