import UIKit

public class MercuryNotificationView: UIView {
    public var notification: MercuryNotification?
    let contentView = UIView()
    
    required public init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    public override init(frame: CGRect) {
        super.init(frame: frame)
        addSubview(contentView)
    }
    
    public override func layoutSubviews() {
        let margin: CGFloat = 8
        contentView.frame = CGRectMake(margin, 0, bounds.size.width - 2 * margin, bounds.size.height - margin)
    }
}
