To add a package dependency to your Xcode project, select File > Swift Packages > Add Package Dependency and enter M3UKit repository URL:
https://github.com/SwiftExtensions/M3UKit.git
You can also navigate to your target’s General pane, and in the Frameworks, Libraries, and Embedded Content section, click the + button, select Add Other, and choose Add Package Dependency.
CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. To integrate M3UKit into your Xcode project using CocoaPods, specify it in your Podfile:
pod 'M3UKit', git: 'https://github.com/SwiftExtensions/M3UKit.git'
import M3UKit
let loader = M3ULoader()
try? loader.load(with: URL_TO_PLAYLIST) { response in
switch response {
case let .success(playlist):
print(playlist)
case let .failure(error):
print(error)
}
}
M3UKit
M3UKit is an easy way of parsing of extended M3U playlists.
Content
Supported directives
Go to content
Installation
Swift Package Manager
To add a package dependency to your
Xcode
project, select File > Swift Packages > Add Package Dependency and enterM3UKit
repository URL:You can also navigate to your target’s General pane, and in the
Frameworks, Libraries, and Embedded Content
section, click the+
button, selectAdd Other
, and chooseAdd Package Dependency
.For more information, see
Adding Package Dependencies to Your App
.Go to content
CocoaPods
CocoaPods
is a dependency manager forSwift
andObjective-C
Cocoa projects. To integrateM3UKit
into yourXcode
project usingCocoaPods
, specify it in yourPodfile
:Go to content
Parsing
Go to content
Loading from newtwork
Go to content