UIWindowが複数存在するとき、ステータスバーのスタイル設定が難しい件 @malt03 #orecon_ios #a
Next up: 19:25 Track A / UIWindowが複数存在するとき、ステータスバーのスタイル設定が難しい件 / malt03 @malt03 #orecon_ios #a
2018-09-13 19:22:26ResponderChainとか活用している可能性もあるんかなー #orecon_ios #a
2018-09-13 19:32:16UIApplicationはどうやって preferredStatusBarStyle にたどり着くのか。 UIApplication.shared.windows.reversed()の中にisEffectStatusBarなViewControllerがあれば preferredStatusBarStyle を取る #orecon_ios #a
2018-09-13 19:32:47内部処理として、statusBarStyleの取得でkeyWindowやwindowLevelが考慮されていないっぽい #orecon_ios #a
2018-09-13 19:33:29UIApplicationのwindowsはkeyWindowかどうかなどの情報によって並べられているわけではないのではということ #orecon_ios #a
2018-09-13 19:34:08isEffectiveStatusBarも、 プライベートメソッドの _canAffectStatusBarAppearanceを使っている。単純にtrueやfalseを返すとそのwindowは無視される。実際どうなっているのか不明。 だがおそらく、 self.frame == UIScreen.main.bounds になっているのではないか #orecon_ios #a
2018-09-13 19:34:40transformかけてもtrueのまま。 frame.originを変更するとfalseになるのでboundsを見ているわけでもない #orecon_ios #a
2018-09-13 19:35:12おそらく `center` と `bounds.size` 両方見てるかと developer.apple.com/documentation/… #orecon_ios #a
2018-09-13 19:36:02