mirror of
				https://github.com/yattee/yattee.git
				synced 2025-10-31 12:41:57 +00:00 
			
		
		
		
	Switch to horizontal cells for playlists on tvOS
This commit is contained in:
		| @@ -26,15 +26,20 @@ struct PlaylistsView: View { | ||||
|             VStack { | ||||
|                 #if os(tvOS) | ||||
|                     toolbar | ||||
|                         .font(.system(size: 28)) | ||||
|  | ||||
|                 #endif | ||||
|  | ||||
|                 if model.currentPlaylist != nil, videos.isEmpty { | ||||
|                     hintText("Playlist is empty\n\nTap and hold on a video and then tap \"Add to Playlist\"") | ||||
|                 } else if model.all.isEmpty { | ||||
|                     hintText("You have no playlists\n\nTap on \"New Playlist\" to create one") | ||||
|                 } else { | ||||
|                     VideosCellsVertical(videos: videos) | ||||
|                     #if os(tvOS) | ||||
|                         VideosCellsHorizontal(videos: videos) | ||||
|                             .padding(.top, 40) | ||||
|                         Spacer() | ||||
|                     #else | ||||
|                         VideosCellsVertical(videos: videos) | ||||
|                     #endif | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|   | ||||
| @@ -31,13 +31,11 @@ struct TrendingView: View { | ||||
|                     toolbar | ||||
|                     VideosCellsHorizontal(videos: store.collection) | ||||
|                         .padding(.top, 40) | ||||
|  | ||||
|                     Spacer() | ||||
|                 #else | ||||
|                     VideosCellsVertical(videos: store.collection) | ||||
|                 #endif | ||||
|  | ||||
|                 #if os(tvOS) | ||||
|                     Spacer() | ||||
|                 #endif | ||||
|             } | ||||
|         } | ||||
|         #if os(tvOS) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Arkadiusz Fal
					Arkadiusz Fal