Skip to content

Commit

Permalink
Merge pull request #23 from Igor-Palaguta/Fix-keyWindow
Browse files Browse the repository at this point in the history
get rid on optional unwrap
  • Loading branch information
JanGorman authored Jun 18, 2018
2 parents a77ed9b + 194ac76 commit e1b86c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SwiftMessageBar/SwiftMessageBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public final class SwiftMessageBar {

private func newMessageWindow() -> MessageWindow {
let messageWindow = MessageWindow()
messageWindow.frame = UIApplication.shared.keyWindow!.frame
messageWindow.frame = UIScreen.main.bounds
messageWindow.isHidden = false
messageWindow.windowLevel = UIWindowLevelNormal
messageWindow.backgroundColor = .clear
Expand Down

0 comments on commit e1b86c4

Please sign in to comment.