mirror of
				https://github.com/yattee/yattee.git
				synced 2025-10-30 20:22:06 +00:00 
			
		
		
		
	Load images with low priority
This commit is contained in:
		| @@ -95,12 +95,8 @@ struct VideoBanner: View { | ||||
|         Group { | ||||
|             if let video { | ||||
|                 if let thumbnail = video.thumbnailURL(quality: .medium) { | ||||
|                     WebImage(url: thumbnail) | ||||
|                     WebImage(url: thumbnail, options: [.lowPriority]) | ||||
|                         .resizable() | ||||
|                         .placeholder { | ||||
|                             ProgressView() | ||||
|                         } | ||||
|                         .indicator(.activity) | ||||
|                 } else if video.localStreamIsFile { | ||||
|                     Image(systemName: "folder") | ||||
|                 } else if video.localStreamIsRemoteURL { | ||||
|   | ||||
| @@ -422,7 +422,7 @@ struct VideoCell: View { | ||||
|         Group { | ||||
|             let url = thumbnails.best(video) | ||||
|  | ||||
|             WebImage(url: url) | ||||
|             WebImage(url: url, options: [.lowPriority]) | ||||
|                 .resizable() | ||||
|                 .placeholder { | ||||
|                     Rectangle().foregroundColor(Color("PlaceholderColor")) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Arkadiusz Fal
					Arkadiusz Fal