From 3e8ac15c660045bcf25ee73fab3d1d938a42cd31 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Wed, 5 Jan 2022 17:26:25 +0100 Subject: [PATCH] Improve playlists toolbar layout on iOS --- Shared/Playlists/PlaylistsView.swift | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/Shared/Playlists/PlaylistsView.swift b/Shared/Playlists/PlaylistsView.swift index d5bec8d8..96638f17 100644 --- a/Shared/Playlists/PlaylistsView.swift +++ b/Shared/Playlists/PlaylistsView.swift @@ -101,20 +101,28 @@ struct PlaylistsView: View { .foregroundColor(.secondary) } else { selectPlaylistButton + .frame(maxWidth: 140) } - playButton - shuffleButton - Spacer() - newPlaylistButton - if currentPlaylist != nil { - editPlaylistButton + HStack(spacing: 10) { + playButton + shuffleButton + } + + Spacer() + } + + HStack(spacing: 2) { + newPlaylistButton + + if currentPlaylist != nil { + editPlaylistButton + } } } - .transaction { t in t.animation = .none } } #endif }