diff --git a/Shared/Home/HistoryView.swift b/Shared/Home/HistoryView.swift index ed9d6049..a10d2875 100644 --- a/Shared/Home/HistoryView.swift +++ b/Shared/Home/HistoryView.swift @@ -13,7 +13,7 @@ struct HistoryView: View { var body: some View { LazyVStack { if visibleWatches.isEmpty { - VStack(alignment: .center, spacing: 20) { + VStack(spacing: 20) { HStack { Image(systemName: "clock") Text("Playback history is empty") diff --git a/Shared/Navigation/AppSidebarNavigation.swift b/Shared/Navigation/AppSidebarNavigation.swift index fa3a31de..ec6d7e2f 100644 --- a/Shared/Navigation/AppSidebarNavigation.swift +++ b/Shared/Navigation/AppSidebarNavigation.swift @@ -43,7 +43,7 @@ struct AppSidebarNavigation: View { VStack { BrowserPlayerControls { - HStack(alignment: .center) { + HStack { Spacer() Image(systemName: "4k.tv") .renderingMode(.original) diff --git a/Shared/Player/Controls/PlayerControls.swift b/Shared/Player/Controls/PlayerControls.swift index 731add8c..ae8199aa 100644 --- a/Shared/Player/Controls/PlayerControls.swift +++ b/Shared/Player/Controls/PlayerControls.swift @@ -57,7 +57,7 @@ struct PlayerControls: View { #endif VStack { - ZStack(alignment: .center) { + ZStack { VStack(spacing: 0) { ZStack { OpeningStream() diff --git a/Shared/Player/Controls/TimelineView.swift b/Shared/Player/Controls/TimelineView.swift index 2680961f..ac379f74 100644 --- a/Shared/Player/Controls/TimelineView.swift +++ b/Shared/Player/Controls/TimelineView.swift @@ -127,7 +127,7 @@ struct TimelineView: View { .modifier(ControlBackgroundModifier()) .clipShape(RoundedRectangle(cornerRadius: 4)) - ZStack(alignment: .center) { + ZStack { ZStack(alignment: .leading) { ZStack(alignment: .leading) { Rectangle() diff --git a/Shared/Player/Video Details/CommentView.swift b/Shared/Player/Video Details/CommentView.swift index ecf7d7d0..25f07d83 100644 --- a/Shared/Player/Video Details/CommentView.swift +++ b/Shared/Player/Video Details/CommentView.swift @@ -19,7 +19,7 @@ struct CommentView: View { var body: some View { VStack(alignment: .leading) { - HStack(alignment: .center, spacing: 10) { + HStack(spacing: 10) { HStack(spacing: 10) { ZStack(alignment: .bottomTrailing) { authorAvatar diff --git a/Shared/Player/Video Details/VideoDetails.swift b/Shared/Player/Video Details/VideoDetails.swift index a8bb9f1a..bd518b67 100644 --- a/Shared/Player/Video Details/VideoDetails.swift +++ b/Shared/Player/Video Details/VideoDetails.swift @@ -53,7 +53,7 @@ struct VideoDetails: View { .frame(maxWidth: detailsSize.width) .transition(.fade) - HStack(alignment: .center) { + HStack { if detailsToolbarPosition.needsLeftSpacer { Spacer() } VideoDetailsToolbar(video: video, page: $page, sidebarQueue: sidebarQueue) diff --git a/Shared/Playlists/AddToPlaylistView.swift b/Shared/Playlists/AddToPlaylistView.swift index e0d0d14c..a9b263e4 100644 --- a/Shared/Playlists/AddToPlaylistView.swift +++ b/Shared/Playlists/AddToPlaylistView.swift @@ -67,7 +67,7 @@ struct AddToPlaylistView: View { } private var header: some View { - HStack(alignment: .center) { + HStack { Text("Add to Playlist") .font(.title2.bold()) diff --git a/Shared/Playlists/PlaylistFormView.swift b/Shared/Playlists/PlaylistFormView.swift index 7050e9da..02e34012 100644 --- a/Shared/Playlists/PlaylistFormView.swift +++ b/Shared/Playlists/PlaylistFormView.swift @@ -27,7 +27,7 @@ struct PlaylistFormView: View { Group { #if os(macOS) || os(iOS) VStack(alignment: .leading) { - HStack(alignment: .center) { + HStack { Text(editing ? "Edit Playlist" : "Create Playlist") .font(.title2.bold()) @@ -99,7 +99,7 @@ struct PlaylistFormView: View { #if os(tvOS) var header: some View { - HStack(alignment: .center) { + HStack { Text(editing ? "Edit Playlist" : "Create Playlist") .font(.title2.bold()) diff --git a/Shared/Settings/AccountForm.swift b/Shared/Settings/AccountForm.swift index c6a78e4a..ab014f39 100644 --- a/Shared/Settings/AccountForm.swift +++ b/Shared/Settings/AccountForm.swift @@ -39,7 +39,7 @@ struct AccountForm: View { } var header: some View { - HStack(alignment: .center) { + HStack { Text("Add Account") .font(.title2.bold()) diff --git a/Shared/Settings/InstanceForm.swift b/Shared/Settings/InstanceForm.swift index 2cb08e49..f229d990 100644 --- a/Shared/Settings/InstanceForm.swift +++ b/Shared/Settings/InstanceForm.swift @@ -41,7 +41,7 @@ struct InstanceForm: View { } private var header: some View { - HStack(alignment: .center) { + HStack { Text("Add Location") .font(.title2.bold()) @@ -84,7 +84,7 @@ struct InstanceForm: View { } private var footer: some View { - HStack(alignment: .center) { + HStack { AccountValidationStatus( app: $app, isValid: $isValid, diff --git a/Shared/Settings/QualityProfileForm.swift b/Shared/Settings/QualityProfileForm.swift index 9c6e80ef..1cf747b4 100644 --- a/Shared/Settings/QualityProfileForm.swift +++ b/Shared/Settings/QualityProfileForm.swift @@ -53,7 +53,7 @@ struct QualityProfileForm: View { } var header: some View { - HStack(alignment: .center) { + HStack { Text(editing ? "Edit Quality Profile" : "Add Quality Profile") .font(.title2.bold()) diff --git a/Shared/Trending/TrendingView.swift b/Shared/Trending/TrendingView.swift index bd97ea45..db350ce1 100644 --- a/Shared/Trending/TrendingView.swift +++ b/Shared/Trending/TrendingView.swift @@ -58,7 +58,7 @@ struct TrendingView: View { .padding(.horizontal) }) { Section { - VStack(alignment: .center, spacing: 0) { + VStack(spacing: 0) { #if os(tvOS) toolbar HorizontalCells(items: trending) diff --git a/Shared/Videos/VideoCell.swift b/Shared/Videos/VideoCell.swift index b8718198..227d6a1e 100644 --- a/Shared/Videos/VideoCell.swift +++ b/Shared/Videos/VideoCell.swift @@ -205,7 +205,7 @@ struct VideoCell: View { if let time = video.length.formattedAsPlaybackTime() || video.live || video.upcoming { Spacer() - VStack(alignment: .center) { + VStack { Spacer() if let time = video.length.formattedAsPlaybackTime() { @@ -377,7 +377,7 @@ struct VideoCell: View { Spacer() - HStack(alignment: .center) { + HStack { if saveHistory, watchedVideoStyle.isShowingBadge, watch?.finished ?? false diff --git a/tvOS/NowPlayingView.swift b/tvOS/NowPlayingView.swift index 46adfcfc..f65ccc39 100644 --- a/tvOS/NowPlayingView.swift +++ b/tvOS/NowPlayingView.swift @@ -103,7 +103,7 @@ struct NowPlayingView: View { } else if comments.loaded && comments.all.isEmpty { NoCommentsView(text: "No comments".localized(), systemImage: "0.circle.fill") } else if !comments.loaded { - VStack(alignment: .center) { + VStack { PlaceholderProgressView() .onAppear { comments.loadIfNeeded()