This file contains hidden or 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 Foundation | |
public enum SafeCodableEnum<Nested: RawRepresentable & Codable> where Nested.RawValue: Codable { | |
case defined(Nested) | |
case other(Nested.RawValue) | |
} | |
extension SafeCodableEnum: RawRepresentable { |
This file contains hidden or 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
// AVPlayerDelegate.swift | |
// | |
// Created by Maxim Kotliar on 7/30/18. | |
// | |
import AVFoundation | |
@objc protocol AVPlayerDelegate: class { | |
@objc optional func playerDidStartPlayback() | |
@objc optional func playerDidPausePlayback() |