Simple and easy way to build streaming radio apps for iOS, tvOS, & macOS
Swift
Latest commit 95e6359 Sep 13, 2016 @eaconner eaconner Minor changes
Permalink
Failed to load latest commit information.
examples/SwiftyRadio_iOS
.gitignore
LICENSE
README.md
SwiftyRadio.swift

README.md

SwiftyRadio

Simple and easy way to build streaming radio apps for iOS, tvOS, & macOS.

Installation

SwiftyRadio can be installed by simply adding the SwiftyRadio.swift file to your project.

Usage

In AppDelegate.swift add the following code after imports and before @UIApplicationMain.

// Create a variable for SwiftyRadio
var swiftyRadio: SwiftyRadio = SwiftyRadio()

Include the following code in viewDidLoad()

// Initialize SwiftyRadio
swiftyRadio.setup()

// Setup the station
swiftyRadio.setStation("WTSQ 88.1FM", URL: "http://stream.wtsq.org:8000/xstream2")

// Start playing the station
swiftyRadio.play()