From 4ad8f139ffe417b144fc3668c783738be4cc55df Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Mon, 27 Jun 2022 00:16:16 +0200 Subject: [PATCH] Remove comments placement setting --- Shared/Settings/PlayerSettings.swift | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/Shared/Settings/PlayerSettings.swift b/Shared/Settings/PlayerSettings.swift index e08af1d1..72b9c524 100644 --- a/Shared/Settings/PlayerSettings.swift +++ b/Shared/Settings/PlayerSettings.swift @@ -7,10 +7,6 @@ struct PlayerSettings: View { @Default(.quality) private var quality @Default(.commentsInstanceID) private var commentsInstanceID - #if !os(tvOS) - @Default(.commentsPlacement) private var commentsPlacement - #endif - @Default(.playerSidebar) private var playerSidebar @Default(.showHistoryInPlayer) private var showHistory @Default(.showKeywords) private var showKeywords @@ -68,10 +64,6 @@ struct PlayerSettings: View { Section(header: SettingsHeader(text: "Comments")) { commentsInstancePicker - #if !os(tvOS) - commentsPlacementPicker - .disabled(!CommentsModel.enabled) - #endif } Section(header: SettingsHeader(text: "Interface")) { @@ -161,19 +153,6 @@ struct PlayerSettings: View { #endif } - #if !os(tvOS) - private var commentsPlacementPicker: some View { - Picker("Placement", selection: $commentsPlacement) { - Text("Below video description").tag(CommentsPlacement.info) - Text("Separate tab").tag(CommentsPlacement.separate) - } - .labelsHidden() - #if os(iOS) - .pickerStyle(.automatic) - #endif - } - #endif - private var sidebarPicker: some View { Picker("Sidebar", selection: $playerSidebar) { #if os(macOS)