Skip to content

Instantly share code, notes, and snippets.

View inekipelov's full-sized avatar
🔄
In progress

Roman Nekipelov inekipelov

🔄
In progress
View GitHub Profile
@inekipelov
inekipelov / AGENTS.md
Last active September 25, 2026 08:43
SF Symbols + AGENTS.md

SF Symbols

CLI executable: <absolute path copied from SF Symbols>

When adding or changing a system symbol:

  1. Read the installed CLI's help and use its documented catalogue operations to verify candidate symbol names.

  2. Read the affected targets' minimum OS versions from

@inekipelov
inekipelov / AGENTS.md
Last active September 25, 2026 08:35
Prefer Markdown when fetching pages from developer.apple.com
//
// UIButton+Extras.swift
// Clay Ellis
// https://gist.github.com/clayellis/5394d087e63161c2b42ad1c9ded6dc25
//
import UIKit
extension UIButton {
//
// UIImage+Extras.swift
// Clay Ellis
// https://gist.github.com/clayellis/3c3bfdee9cac8e9b12ecaefb103d916b
//
import UIKit
extension UIImage {
//
// UIColor+Extras.swift
// Clay Ellis
// https://gist.github.com/clayellis/ca658582e111c2525cd38f3ede735362
//
import UIKit
extension UIColor {
//
// UIView+Extras.swift
// Clay Ellis
// gist.github.com/clayellis/0cf1b1092b6a08cb4c5b2da9abee5ed9
//
import UIKit
@objc public protocol ConfigurableView {
@objc optional func configure()
import Foundation
enum AssociatedObject {
/// Wrapper for Associated Objects that allows us to use Swift value types.
internal final class Wrapper<T>: NSObject, NSCopying {
let value: T
init(_ value: T) {
self.value = value
}
import Foundation
class AsyncOperation: Operation {
public enum State: String {
case ready, executing, finished
fileprivate var keyPath: String {
return "is" + rawValue.capitalized
}
}
H: (Horizontal) //horizontal direction
V: (Vertical) //vertical direction
| (pipe) //superview
- (dash) //standard spacing (generally 8 points)
[] (brackets) //name of the object (uilabel, unbutton, uiview, etc.)
() (parentheses) //size of the object
== equal widths //can be omitted
-16- non standard spacing (16 points)
<= less than or equal to
>= greater than or equal to
@inekipelov
inekipelov / update-version.sh
Created September 18, 2020 08:34 — forked from jellybeansoup/update-version.sh
Script for Incrementing Version Numbers
#!/bin/bash
# Link: <https://gist.github.com/jellybeansoup/db7b24fb4c7ed44030f4>
#
# A command-line script for incrementing build numbers for all known targets in an Xcode project.
#
# This script has two main goals: firstly, to ensure that all the targets in a project have the
# same CFBundleVersion and CFBundleShortVersionString values. This is because mismatched values
# can cause a warning when submitting to the App Store. Secondly, to ensure that the build number
# is incremented appropriately when git has changes.
#