Skip to content

Instantly share code, notes, and snippets.

View tixster's full-sized avatar
😀

Kirill Tila tixster

😀
View GitHub Profile
import Foundation
final class PListManager<Model: Decodable> {
private let pListName: String
func parseInnerData() -> Model? {
let decoder = PropertyListDecoder()
guard let pathToFileInResource = Bundle.main.path(forResource: pListName, ofType: "plist"),
let innerData = FileManager.default.contents(atPath: pathToFileInResource) else {