diff --git a/NativeYoutube.xcodeproj/project.pbxproj b/NativeYoutube.xcodeproj/project.pbxproj index bd55b53..6e26e59 100644 --- a/NativeYoutube.xcodeproj/project.pbxproj +++ b/NativeYoutube.xcodeproj/project.pbxproj @@ -54,8 +54,6 @@ 133DCE5127ADF16600AE6F1F /* GeneralPreferenceView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GeneralPreferenceView.swift; sourceTree = ""; }; 133DCE5527ADF29C00AE6F1F /* YoutubePreferenceView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YoutubePreferenceView.swift; sourceTree = ""; }; 138F4D1327ACFCBC00DF099D /* NativeYoutubeApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NativeYoutubeApp.swift; sourceTree = ""; }; - 139EF52E27BAC7950031BF1D /* URL+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "URL+Extension.swift"; sourceTree = ""; }; - 13E02D0B27ABD2FE00B4A648 /* String+Time.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "String+Time.swift"; sourceTree = ""; }; 13FA3CF027AF820C005555C3 /* VideoRowView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VideoRowView.swift; sourceTree = ""; }; 13FA3CF227AF82B2005555C3 /* VideoListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VideoListView.swift; sourceTree = ""; }; 70A3843B2955B35E000941F5 /* Enums.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Enums.swift; sourceTree = ""; }; @@ -68,7 +66,6 @@ C27DD356272C853F00B4DC16 /* NativeYoutube.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = NativeYoutube.entitlements; sourceTree = ""; }; C27DD36B272C899600B4DC16 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = ""; }; C27DD36F272C8A6200B4DC16 /* PlayListViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlayListViewModel.swift; sourceTree = ""; }; - C27DD372272C8A8900B4DC16 /* Collections+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Collections+Extension.swift"; sourceTree = ""; }; C27DD376272C8AB900B4DC16 /* SearchViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SearchViewModel.swift; sourceTree = ""; }; C27DD37B272C8CCF00B4DC16 /* PlayListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlayListView.swift; sourceTree = ""; }; C27DD37D272C8CD600B4DC16 /* SearchVideosView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SearchVideosView.swift; sourceTree = ""; }; @@ -225,11 +222,8 @@ C27DD371272C8A7600B4DC16 /* Extensions */ = { isa = PBXGroup; children = ( - C27DD372272C8A8900B4DC16 /* Collections+Extension.swift */, C27DD3A9272CB9FD00B4DC16 /* View+Extension.swift */, C27DD3AB272CBA5800B4DC16 /* NSViewRepresentable+Extension.swift */, - 13E02D0B27ABD2FE00B4A648 /* String+Time.swift */, - 139EF52E27BAC7950031BF1D /* URL+Extension.swift */, ); path = Extensions; sourceTree = ""; diff --git a/NativeYoutube.xcodeproj/project.xcworkspace/xcuserdata/aayushpokharel.xcuserdatad/UserInterfaceState.xcuserstate b/NativeYoutube.xcodeproj/project.xcworkspace/xcuserdata/aayushpokharel.xcuserdatad/UserInterfaceState.xcuserstate index 3ded283..d2252de 100644 Binary files a/NativeYoutube.xcodeproj/project.xcworkspace/xcuserdata/aayushpokharel.xcuserdatad/UserInterfaceState.xcuserstate and b/NativeYoutube.xcodeproj/project.xcworkspace/xcuserdata/aayushpokharel.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/NativeYoutube/Extensions/Collections+Extension.swift b/NativeYoutube/Extensions/Collections+Extension.swift deleted file mode 100644 index fb320e2..0000000 --- a/NativeYoutube/Extensions/Collections+Extension.swift +++ /dev/null @@ -1,14 +0,0 @@ -// -// Collections+Extension.swift -// NativeYoutube -// -// Created by Aayush Pokharel on 2021-10-29. -// - -import Foundation - -extension Collection where Indices.Iterator.Element == Index { - subscript(safe index: Index) -> Iterator.Element? { - return indices.contains(index) ? self[index] : nil - } -} diff --git a/NativeYoutube/Extensions/String+Time.swift b/NativeYoutube/Extensions/String+Time.swift deleted file mode 100644 index 096d0c1..0000000 --- a/NativeYoutube/Extensions/String+Time.swift +++ /dev/null @@ -1,29 +0,0 @@ -// -// String+Time.swift -// NativeYoutube -// -// Created by Erik Bautista on 2/3/22. -// - -import Foundation - -extension String { - init(timeInterval: TimeInterval) { - let formatter = DateComponentsFormatter() - formatter.unitsStyle = .positional - formatter.zeroFormattingBehavior = .pad - - let hasHour = (timeInterval / (60 * 60)) > 1 - if hasHour { - formatter.allowedUnits = [.hour, .minute, .second] - } else { - formatter.allowedUnits = [.minute, .second] - } - - if let timeString = formatter.string(from: timeInterval) { - self.init(timeString) - } else { - self.init("0:00") - } - } -} diff --git a/NativeYoutube/Extensions/URL+Extension.swift b/NativeYoutube/Extensions/URL+Extension.swift deleted file mode 100644 index 11a9847..0000000 --- a/NativeYoutube/Extensions/URL+Extension.swift +++ /dev/null @@ -1,14 +0,0 @@ -// -// URL+Extension.swift -// NativeYoutube -// -// Created by Erik Bautista on 2/14/22. -// - -import Foundation - -extension URL { - var isDeeplink: Bool { - return scheme == "nativeyoutube" - } -}