RxSwift のリソース数を可視化する Window を生やします。
右下にあるグラフが実装例。
Resources.total
をタイマーで1秒ごとに監視して、もし変更があればグラフ表示を更新します。
import UIKit | |
import RxSwift | |
import RxCocoa | |
extension Reactive where Base: UISearchController { | |
var searchResultUpdater: DelegateProxy<UISearchController, UISearchResultsUpdating> { | |
return RxSearchResultUpdatingProxy.proxy(for: base) | |
} | |
import UIKit | |
let text = """ | |
「まさか、|後罪《クライム》の|触媒《カタリスト》を〈|讃来歌《オラトリオ》〉無しで?」 | |
|教師《きょうし》たちの|狼狽《ろうばい》した声が次々と上がる。 | |
……なんでだろう。何を驚いているんだろう。 | |
ただ|普通《ふつう》に、この|触媒《カタリスト》を使って|名詠門《チャネル》を開かせただけなのに。 | |
そう言えば、何を|詠《よ》ぼう。 | |
自分の一番好きな花でいいかな。 | |
どんな|宝石《ほうせき》より|素敵《すてき》な、わたしの大好きな|緋色《ひいろ》の花。 |
class Thunder { } | |
class Fire { } | |
protocol Pokemon { | |
associatedtype PokemonType | |
func attack(move:PokemonType) | |
} | |
struct Pikachu: Pokemon { | |
typealias PokemonType = Thunder |
#import <UIKit/UIKit.h> | |
@interface FromViewController : UIViewController | |
@end |
import UIKit | |
class AnimatableGraph : CALayer { | |
var degree: Double = 0.0 { | |
didSet{ | |
if(degree < 0){ | |
self.degree = 0 | |
}else if(degree > 360){ | |
self.degree = 360.0 |
// | |
// OS7MainViewController.m | |
// iOS7Test | |
// | |
// Copyright (c) 2013年 glayash. All rights reserved. | |
// | |
#import "OS7MainViewController.h" | |
static NSString * const CellIdentifier = @"MainViewCell"; |