This file contains hidden or 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
[/]{2}\h*(lazy|private|let|var|func|struct|class|enum|case) |
This file contains hidden or 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
expr -l Swift -- import UIKit | |
expr -l Swift -- let $ca = unsafeBitCast(0x6000004c1dc0, to: CALayer.self) | |
expr -l Swift -- print($ca.borderWidth) |
This file contains hidden or 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
@IBSegueAction private func showPerson(coder: NSCoder, sender: Any?, segueIdentifier: String?) | |
working variants: | |
@IBSegueAction private func showPerson(coder: NSCoder) | |
@IBSegueAction private func showPerson(_ coder: NSCoder, sender: Any?, segueIdentifier: String?) | |
@IBSegueAction private func showPerson(_ coder: NSCoder) | |
@IBSegueAction private func showPerson(coder: NSCoder) |
This file contains hidden or 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
2021-09-15 1A291f removes the deployment limit entirely, so all users should now be able to get the firmware update. | |
2021-09-07 1.0.291 1A291e changed nothing other than the rate limit on the percentage (25%) of AirTags users getting the update | |
2021-0x-xx 1A291c |
This file contains hidden or 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
Swift 5.5 Change log: | |
https://github.com/apple/swift/blob/main/CHANGELOG.md#swift-55 | |
Collection of new features: | |
https://www.hackingwithswift.com/articles/233/whats-new-in-swift-5-5 | |
https://medium.com/mindful-engineering/whats-new-in-swift-5-5-fb13f49bb728 | |
Specific features: |
This file contains hidden or 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
Update git fork with tags | |
# Repo: someuser/myframework | |
# Fork: superteam/myframework | |
# Track: | |
git clone https://github.com/superteam/myframework.git | |
cd myframework | |
git remote add upstream https://github.com/someuser/myframework.git |
This file contains hidden or 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
// | |
// AddRef.swift | |
// RxSwift | |
// | |
// Created by Junior B. on 30/10/15. | |
// Copyright © 2015 Krunoslav Zaher. All rights reserved. | |
// | |
final class AddRefSink<Observer: ObserverType> : Sink<Observer>, ObserverType { |
This file contains hidden or 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 OperationSource: Operation { | |
var state: Operation.OperationState = .inital | |
let newsApi: NewsApi | |
var data: Data? | |
init(newsApi: NewsApi) { | |
self.newsApi = newsApi | |
} |
This file contains hidden or 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
// | |
// EmojiFlag.swift | |
// | |
// Created by Blazej SLEBODA on 04/02/2020. | |
// | |
import Foundation | |
class EmojiFlag { | |
This file contains hidden or 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 UITimer: NSObject { | |
@IBInspectable | |
var timeInterval: Double = 1 | |
@IBInspectable | |
var repeats: Bool = false | |
var timer: Timer? | |