Skip to content

Instantly share code, notes, and snippets.

View gromwel's full-sized avatar

Pavel gromwel

View GitHub Profile
@gromwel
gromwel / LocationManager.swift
Last active March 4, 2021 16:33
Generic Location Manager [ReactiveSwift]
import Foundation
import ReactiveSwift
import CoreLocation
final class LocationManager {
// MARK: - Интерфейс
// Синглтон
static let shared = LocationManager()
@gromwel
gromwel / Example.swift
Last active December 8, 2022 12:19
Decoding and encoding JSON with dynamic keys.
import Foundation
struct Film: Codable {
let actor: String
let year: Int
let key: String
// Объявляем ключи только для тех которые внутри модели
enum CodingKeys: CodingKey {
case actor