Skip to content

Instantly share code, notes, and snippets.

@tadija
tadija / AEDisplayLink.swift
Last active October 26, 2021 18:38
AEDisplayLink
@tadija
tadija / AEDefaults.swift
Last active October 26, 2021 18:26
AEDefaults
/**
* https://gist.github.com/tadija/1b5a70c641857731041f90ca9dd04085
* Revision 5
* Copyright © 2018-2021 Marko Tadić
* Licensed under the MIT license
*/
import Foundation
open class AEDefaults {
@tadija
tadija / AELayout.swift
Last active May 13, 2021 16:30
AELayout
/**
* https://gist.github.com/tadija/dfd85d55524c037eff50e57313957015
* Revision 12
* Copyright © 2018-2021 Marko Tadić
* Licensed under the MIT license
*/
import UIKit
// MARK: - Layout API
@tadija
tadija / AEFlow.swift
Last active October 26, 2021 18:39
AEFlow
/**
* https://gist.github.com/tadija/674a6dc5c14597394fde2c8a48663263
* Revision 21
* Copyright © 2018-2021 Marko Tadić
* Licensed under the MIT license
*/
import Foundation
@dynamicMemberLookup
@tadija
tadija / AEEnvironment.swift
Last active May 1, 2021 23:40
AEEnvironment
/**
* https://gist.github.com/tadija/b5220447b71468937702d1162b5f2591
* Revision 8
* Copyright © 2017-2021 Marko Tadić
* Licensed under the MIT license
*/
import Foundation
public protocol AEEnvironment {
@tadija
tadija / README.md
Last active November 27, 2023 05:04
AEReadme

Swift 4.1 Platforms iOS | watchOS | tvOS | macOS CocoaPods Carthage Swift Package Manager License MIT

${NAME}

${DESCRIPTION}

@tadija
tadija / FontNames-iOS-17.4.swift
Last active January 11, 2025 00:45
iOS - All Font Names
/*
*** Academy Engraved LET ***
AcademyEngravedLetPlain
---------------------
*** Al Nile ***
AlNile
AlNile-Bold
---------------------
*** American Typewriter ***
AmericanTypewriter
@tadija
tadija / Xcode Semi-Automatic Versioning.md
Last active August 11, 2022 19:55
Xcode Semi-Automatic Versioning | Bump Build Number | Bump Version Number

Xcode Semi-Automatic Versioning

Instructions:

First Things First

In order for agvtool to work properly you must first set
Project Settings / Build Settings / Versioning / Versioning System to Apple Generic.

Bump Build Number

  1. Create new shared scheme 'Bump Build Number'
@tadija
tadija / git-cleanup.sh
Last active December 21, 2020 09:32
Git Cleanup
# https://github.com/CocoaPods/cocoapods-deintegrate
# http://stackoverflow.com/a/17824718/2165585
# http://stevelorek.com/how-to-shrink-a-git-repository.html
# http://naleid.com/blog/2012/01/17/finding-and-purging-big-files-from-git-history
# https://github.com/zuha/Zuha/wiki/Git-Reduce-Repo-Size
git stash clear
pod deintegrate
@tadija
tadija / gist:5fa3096c4256bbbea0eb
Created June 15, 2014 19:52
SKETCH: explore menu actions
function logMenu(menu) {
var count = [menu numberOfItems];
for (var n = 0; n < count; ++n) {
var item = [menu itemAtIndex:n];
if (![item isSeparatorItem]) {
log([item class]);
if ([item hasSubmenu]) {
logMenu([item submenu]);
} else {
var action = NSStringFromSelector([item action]);