Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo4405 committed Sep 16, 2020
1 parent 58bbe33 commit 1bb0be0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Platforms/iOS/ScreenCaptureSession.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ open class ScreenCaptureSession: NSObject, CustomCaptureSession {

public init(shared: UIApplication) {
self.shared = shared
size = shared.delegate!.window!!.bounds.size
size = UIScreen.main.bounds.size
super.init()
}

Expand All @@ -101,8 +101,8 @@ open class ScreenCaptureSession: NSObject, CustomCaptureSession {
return
}

if let shared = self.shared {
size = UIScreen.main.bounds
if let _ = self.shared {
size = UIScreen.main.bounds.size
}
if let viewToCapture = self.viewToCapture {
size = viewToCapture.bounds.size
Expand Down

0 comments on commit 1bb0be0

Please sign in to comment.