Skip to content

Instantly share code, notes, and snippets.

@macprog-guy
macprog-guy / NSFont+CFTraits
Last active July 1, 2023 10:53
NSFont Category to make it easy to add or remove traits.
A small category on NSFont to make it easy to manipulate fonts.
The header file is pretty self explanitory.
@monyschuk
monyschuk / DraggingStackView.swift
Created February 3, 2017 12:22
An NSStackView whose contents can be reordered via dragging
//
// DraggingStackView.swift
// Analysis
//
// Created by Mark Onyschuk on 2017-02-02.
// Copyright © 2017 Mark Onyschuk. All rights reserved.
//
import Cocoa
//
// MultilineLabel.swift
//
// Created by Marcin Krzyzanowski on 19/09/2019.
//
import UIKit
public class MultilineLabel: UILabel {
override public init(frame: CGRect) {
@LukasCZ
LukasCZ / ComplicationController+helpers.swift
Created February 18, 2022 13:41
Helper methods for creating pixel-perfect complications for all Apple Watch sizes.
//
// ComplicationController+helpers.swift
// WatchKit Extension
//
// Created by Lukas Petr on 09.02.2022.
// Distributed under MIT License.
//
//
// Helper methods for creating pixel-perfect complications for all Apple Watch sizes.