Skip to content

Technical guide · Overview

Page status: HistoricalHistory group: Classified notes

NutsNews iOS Detail Thumbnail Crop Update

This bundle updates the article detail screen opened from Read Story.

Visual overview

Primary diagram

System map

This bundle updates the article detail screen opened from Read Story.

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

Diagram is not rendered yet.

View as text
NutsNews iOS Detail Thumbnail Crop Update

This bundle updates the article detail screen opened from Read Story.

flowchart TB
  accTitle: NutsNews iOS Detail Thumbnail Crop Update
  accDescr {
    This bundle updates the article detail screen opened from Read Story.
  }
  A["NutsNews iOS Detail Thumbnail Crop Update"] --> B["ios/NUTSNEWS_IOS_DETAIL_THUMBNAIL_CROP_UPDATE_README.md"]
  B --> C["Auto-generated placeholder diagram"]

NutsNews iOS Detail Thumbnail Crop Update

Fullscreen diagram view.

This bundle updates the article detail screen opened from Read Story.

Changed file:

  • NutsNews/NutsNews/Features/Article/ArticleDetailView.swift

Behavior:

  • When the detail screen opens, it inspects the thumbnail image dimensions.
  • If the thumbnail is wider than 3:2, the detail thumbnail is displayed in a cropped 3:2 container.
  • Non-wide thumbnails keep the existing detail hero height.
  • This is display-only cropping; the original thumbnail URL is unchanged.

Install from the repo root:

Terminal window
cd /Users/ramideltoro/WebstormProjects/nutsnews-ios
unzip -o ~/Downloads/nutsnews-ios-detail-thumbnail-crop-update.zip -d .
cd NutsNews
xcodebuild -project NutsNews.xcodeproj -scheme NutsNews -destination 'id=8AABA667-DE66-44E9-8A10-A3FB84BECB39' build