Skip to content

Instantly share code, notes, and snippets.

@tadija
tadija / AEStoredWrapper.swift
Last active September 13, 2021 21:28
AEStoredWrapper
/**
* https://gist.github.com/tadija/7668382ef3e14cb304b31b6273ae8f65
* Revision 2
* Copyright © 2021 Marko Tadić
* Licensed under the MIT license
*/
import Foundation
public struct AEStoredWrapper {
@tadija
tadija / Env.swift
Last active June 7, 2021 21:55
Env
/**
* https://gist.github.com/tadija/55377d1211d0dc0bc2da661a455fc7c6
* Revision 3
* Copyright © 2021 Marko Tadić
* Licensed under the MIT license
*/
import Foundation
/// A namespace that encapsulates the shared "environment" of an app.
@tadija
tadija / AECombine.swift
Last active May 13, 2021 16:04
AECombine
/**
* https://gist.github.com/tadija/8c307aa9a0590ab946c0715ebe8a50b2
* Revision 2
* Copyright © 2021 Marko Tadić
* Licensed under the MIT license
*/
import Foundation
import Combine
@tadija
tadija / AESnapshot.swift
Last active February 27, 2021 00:43
AESnapshot
/**
* https://gist.github.com/tadija/9ea941c3055281a2a349072cf0453f50
* Copyright © 2021 Marko Tadić
* Licensed under the MIT license
*/
import SwiftUI
public struct SnapshotTrigger {
public var trigger: Bool = false
@tadija
tadija / AESound.swift
Last active November 28, 2022 22:29
AESound
/**
* https://gist.github.com/tadija/f525e0c544fae45fc43a50711a392356
* Copyright © 2018-2021 Marko Tadić
* Licensed under the MIT license
*/
import AudioToolbox
import AVFoundation
public final class AESound {
@tadija
tadija / AEGameCenter.swift
Last active November 7, 2021 19:55
AEGameCenter
/**
* https://gist.github.com/tadija/79d10786e93bd127eb79ae8772235c4d
* Copyright © 2021 Marko Tadić
* Licensed under the MIT license
*/
import GameKit
import Combine
open class AEGameCenter: NSObject {
@tadija
tadija / AESwiftUI.swift
Last active January 12, 2022 14:24
AESwiftUI
/**
* https://gist.github.com/tadija/2fa1a99ccf3413cd0e30e3633e1a32db
* Revision 18
* Copyright © 2020-2021 Marko Tadić
* Licensed under the MIT license
*/
import SwiftUI
import Combine
@tadija
tadija / AEKeychain.swift
Last active November 19, 2021 10:30
AEKeychain
/**
* https://gist.github.com/tadija/76dceb3a6a52158f0a73b83bda27c481
* Revision 4
* Copyright © 2020-2021 Marko Tadić
* Licensed under the MIT license
*/
import Foundation
open class AEKeychain<Key: RawRepresentable> where Key.RawValue == String {
@tadija
tadija / AEJSONSerialization.swift
Last active October 26, 2021 18:31
AEJSONSerialization
/**
* https://gist.github.com/tadija/69055043ee29afe736ae979d0d6a7645
* Revision 3
* Copyright © 2018-2021 Marko Tadić
* Licensed under the MIT license
*/
import Foundation
public extension Data {
@tadija
tadija / AEVersion.swift
Last active October 26, 2021 18:34
AEVersion
/**
* https://gist.github.com/tadija/c48177e26b76b541ee6ee620e15d407a
* Revision 4
* Copyright © 2020-2021 Marko Tadić
* Licensed under the MIT license
*/
import Foundation
public struct AEVersion: CustomStringConvertible {