Skip to content

Instantly share code, notes, and snippets.

@tadija
tadija / AEDevice.swift
Last active October 18, 2021 12:16
AEDevice
/**
* https://gist.github.com/tadija/3a5575f234740515f82d16f235721c84
* Revision 9
* Copyright © 2019-2021 Marko Tadić
* Licensed under the MIT license
*/
import UIKit
public final class AEDevice {
@tadija
tadija / AELocation.swift
Last active October 5, 2021 12:34
AELocation
/**
* https://gist.github.com/tadija/dcdf25983c0dbf410e430221f74b20df
* Revision 4
* Copyright © 2016-2021 Marko Tadić
* Licensed under the MIT license
*/
import CoreLocation
@available(iOS 9.0, *)
@tadija
tadija / AESQLite.swift
Last active October 26, 2021 18:33
AESQLite
/**
* https://gist.github.com/tadija/21d56c68bf06a5cea48e6c597e399bf6
* Revision 3
* Copyright © 2018-2021 Marko Tadić
* Licensed under the MIT license
*/
import Foundation
import SQLite3
@tadija
tadija / AEHaptic.swift
Last active October 26, 2021 18:44
AEHaptic
/**
* https://gist.github.com/tadija/88779a34d66bb5acff5c9513c78fe885
* Revision 5
* Copyright © 2018-2021 Marko Tadić
* Licensed under the MIT license
*/
import UIKit
@available(iOS 10.0, *)
@tadija
tadija / AERingView.swift
Last active October 26, 2021 18:41
AERingView
/**
* https://gist.github.com/tadija/55e566df601347ebedc449b2aa610c28
* Revision 5
* Copyright © 2015-2021 Marko Tadić
* Licensed under the MIT license
*/
import UIKit
@IBDesignable
@tadija
tadija / AEUserNotification.swift
Last active October 26, 2021 18:41
AEUserNotification
/**
* https://gist.github.com/tadija/535f88d01ef0d779ed955205ca2ab242
* Revision 7
* Copyright © 2018-2021 Marko Tadić
* Licensed under the MIT license
*/
import UserNotifications
public struct UserNotification {
@tadija
tadija / AEPermissions.swift
Last active October 5, 2021 12:28
AEPermissions
/**
* https://gist.github.com/tadija/c20479d0012baaaacd699ecdc1511579
* Revision 8
* Copyright © 2018-2021 Marko Tadić
* Licensed under the MIT license
*/
import Foundation
// MARK: - Core
@tadija
tadija / AECoreData.swift
Last active June 19, 2022 15:34
AECoreData
/**
* https://gist.github.com/tadija/6003830264d67a87193ff0c3d20373e7
* Revision 10
* Copyright © 2018-2021 Marko Tadić
* Licensed under the MIT license
*/
import CoreData
@available(iOS 10.0, *)
@tadija
tadija / README.md
Last active September 14, 2021 13:19
Sketch script for exporting artboards to separate .sketch files

sketch-artboards-to-documents

Sketch script for exporting artboards to separate .sketch files

Instructions

  1. Backup your .sketch file, it's going to be destroyed.
  2. Select all artboards you want to export to .sketch files.
  3. Run this script and find your new .sketch files on Desktop.
@tadija
tadija / AEStyle.swift
Last active September 27, 2018 19:10
AEStyle
/**
* https://gist.github.com/tadija/25bad580b3228e5255b0e67c440e3d3b
* Copyright (c) Marko Tadić 2018
* Licensed under the MIT license. See LICENSE file.
*/
import UIKit
protocol AEStyle {
associatedtype FontKey: Hashable