This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import PlaygroundSupport | |
enum Styles { | |
enum Colors { | |
static let buttonBackgroundColor = UIColor(red: 72/255, | |
green: 199/255, | |
blue: 116/255, | |
alpha: 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import AVFoundation | |
import PlaygroundSupport | |
struct AVPlayerQueueBuilder { | |
static func from(_ urls: [URL]) -> [AVPlayerItem] { | |
return urls.map { return AVPlayerItem(url: $0) } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import PlaygroundSupport | |
import AVFoundation | |
class PlayerViewController: UIViewController { | |
enum Settings { | |
static let screenW: CGFloat = 375 // For playground use only | |
static let playerHeight: CGFloat = Settings.screenW * (9/16) | |
static let videoUrl = URL(string: "https://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4")! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CustomView.swift | |
// AloeStackDemo | |
// | |
// Created by Florian LUDOT on 1/3/19. | |
// Copyright © 2019 Florian LUDOT. All rights reserved. | |
// | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CustomView.swift | |
// AloeStackDemo | |
// | |
// Created by Florian LUDOT on 2/28/19. | |
// Copyright © 2019 Florian LUDOT. All rights reserved. | |
// | |
import UIKit |