I hereby claim:
- I am markedwardmurray on github.
- I am markedwardmurray (https://keybase.io/markedwardmurray) on keybase.
- I have a public key ASDCM75_c7aCq5xlGHEBqwhrgMwT7wiE2pxYewRwE22t6go
To claim this, I am signing this object:
-(BFTask *)viewControllerToPresent:(UIViewController *)viewController task:(BFTask *)task { | |
BFTaskCompletionSource *dismissalComplete = [BFTaskCompletionSource taskCompletionSource]; | |
[self presentViewController:viewController animated:YES completion:nil]; | |
[task continueWithExecutor:[BFExecutor mainThreadExecutor] withBlock: ^id (BFTask * t) { | |
[self dismissViewControllerAnimated:YES completion: ^void() { | |
[BFTask completeSource:dismissalComplete basedOnTask:t]; | |
}]; |
//: A UIKit based Playground for presenting user interface | |
import UIKit | |
import PlaygroundSupport | |
class MyViewController : UIViewController { | |
lazy var hello: UILabel = { | |
let hello = UILabel() | |
hello.frame = CGRect(x: 50, y: 200, width: 50, height: 50) | |
hello.text = "Hello" |
I hereby claim:
To claim this, I am signing this object:
import UIKit | |
extension UIRefreshControl { | |
func addCustomImage(_ image: UIImage) { | |
tintColor = .clear | |
let container = UIView(frame: frame) | |
addSubview(container) | |
let imageView = UIImageView(image: image) |