Skip to content
View niczyja's full-sized avatar
Block or Report

Block or report niczyja

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Drawing shapes (arrow, point) using ... Drawing shapes (arrow, point) using CGMutablePath. Based on: https://gist.github.com/mwermuth/07825df27ea28f5fc89a
    1
    extension CGMutablePath {
    2
    
    
    3
        func addArrow(to point: CGPoint, tailWidth: CGFloat = 4.0, headWidth: CGFloat = 10.0, headLength: CGFloat = 14.0) {
    4
            let length = hypot(point.x - currentPoint.x, point.y - currentPoint.y)
    5
            let tailLength = length - headLength
  2. StoreMigration.swift StoreMigration.swift
    1
    lazy var persistentContainer: NSPersistentContainer = {
    2
        let container = NSPersistentContainer(name: "app container name")
    3
        
    4
        guard let fileContainer = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: "your group.app.identifier") else {
    5
            fatalError("Shared file container could not be created.")
  3. MagnifyingGlass-Swift MagnifyingGlass-Swift Public

    Simple magnifying glass able to magnify given view

    Swift 14 2

  4. UIImage-Frame UIImage-Frame Public

    Extension (in Swift) and Category (in Obj-C) on UIImage with function that returns image frame in given UIImageView. Playgound to play around included.

    Swift 1

  5. obsidian-arc-sidebar obsidian-arc-sidebar Public

    Obsidian plugin that allows to display contents of Arc sidebar right besides your notes

    TypeScript 9