Skip to content

Instantly share code, notes, and snippets.

@IamMarik
IamMarik / Customtransition.swift
Last active March 25, 2020 10:32
#transition #swift
//
// MenuViewController.swift
// Mullt
//
// Created by Marik on 09.03.2020.
// Copyright © 2020 Marik. All rights reserved.
//
import UIKit
@IamMarik
IamMarik / TriangleButton.swift
Last active December 24, 2019 11:57
TriangleButton
import UIKit
@IBDesignable
class TriangleButton: UIButton {
override class var layerClass: AnyClass {
return CAGradientLayer.self
}
private var gradientLayer = CAGradientLayer()
@IamMarik
IamMarik / prinFuncInfo.swift
Created November 28, 2019 23:59
print class(memaddress)::methodName
print(String(NSStringFromClass(type(of: self))) + "(\(Unmanaged.passUnretained(self).toOpaque())):: \(#function)")
@IamMarik
IamMarik / printObjectMemoryAddress.swift
Created November 25, 2019 01:41
print object memory address #swift
print(Unmanaged.passUnretained(self).toOpaque())
@IamMarik
IamMarik / bash.shell
Created November 21, 2019 11:17
fix SourceKit-lsp install
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer