Skip to content

Commit

Permalink
优化代码
Browse files Browse the repository at this point in the history
优化代码
  • Loading branch information
DamonHu committed Apr 2, 2020
1 parent dc1e8e9 commit 3fbb6bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion HDWindowLoggerSwift.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = 'HDWindowLoggerSwift'
s.swift_version = '5.0'
s.version = '1.2.13'
s.version = '1.2.14'
s.license= { :type => "MIT", :file => "LICENSE" }
s.summary = 'The iOS side displays the output log log on the screen, and can generate log file sharing, which is convenient for debugging information'
s.homepage = 'https://github.com/DamonHu/HDWindowLoggerSwift'
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -156,17 +156,14 @@ public class HDWindowLoggerSwift: UIWindow, UITableViewDataSource, UITableViewDe
struct DefaultWindow {
static let kWindowLogger: HDWindowLoggerSwift = { () -> HDWindowLoggerSwift in
if #available(iOS 13.0, *) {
print(UIApplication.shared.connectedScenes)
let windowScene = UIApplication.shared
.connectedScenes
.first
if let windowScene = windowScene as? UIWindowScene {
return HDWindowLoggerSwift(windowScene: windowScene)
let windowScene = UIApplication.shared
.connectedScenes
.first
if let windowScene = windowScene as? UIWindowScene {
return HDWindowLoggerSwift(windowScene: windowScene)
}

}
return HDWindowLoggerSwift(frame: CGRect.zero)

}()
}
return DefaultWindow.kWindowLogger
Expand Down

0 comments on commit 3fbb6bd

Please sign in to comment.