Skip to content

Commit

Permalink
support iPhone X
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlui committed Nov 16, 2017
1 parent 5d4d802 commit 0bce314
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SwiftNotice.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class SwiftNotice: NSObject {
let view = UIView()
view.backgroundColor = UIColor(red: 0x6a/0x100, green: 0xb4/0x100, blue: 0x9f/0x100, alpha: 1)

let label = UILabel(frame: frame)
let label = UILabel(frame: frame.height > 20 ? CGRect(x: frame.origin.x, y: frame.origin.y + frame.height - 17, width: frame.width, height: 20) : frame)
label.textAlignment = NSTextAlignment.center
label.font = UIFont.systemFont(ofSize: 12)
label.textColor = UIColor.white
Expand Down
Binary file not shown.

0 comments on commit 0bce314

Please sign in to comment.