This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Reveal secrets | |
on: workflow_dispatch | |
jobs: | |
debug: | |
name: Debug | |
runs-on: ubuntu-latest | |
steps: | |
- name: Show secrets | |
run: | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UILabelPreferedWidth : UILabel { | |
override var bounds: CGRect { | |
didSet { | |
if (bounds.size.width != oldValue.size.width) { | |
self.setNeedsUpdateConstraints() | |
} | |
} | |
} | |
override func updateConstraints() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CALayer+Pause.swift | |
// | |
// Created by Grzegorz Krukowski on 11/05/2017. | |
// Copyright © 2017. All rights reserved. | |
// | |
import Foundation | |
extension CALayer { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public protocol CellRegistration: class { | |
static var reuseIdentifier: String { get } | |
} | |
extension CellRegistration where Self: UIView { | |
public static var reuseIdentifier: String { | |
return String(describing: self) | |
} | |
} |