2019-07-19 16:42:40 -07:00
|
|
|
//
|
|
|
|
|
// ToastView.swift
|
|
|
|
|
// AltStore
|
|
|
|
|
//
|
|
|
|
|
// Created by Riley Testut on 7/19/19.
|
|
|
|
|
// Copyright © 2019 Riley Testut. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
import Roxas
|
|
|
|
|
|
|
|
|
|
class ToastView: RSTToastView
|
|
|
|
|
{
|
2019-07-24 12:23:54 -07:00
|
|
|
override init(text: String, detailText detailedText: String?)
|
|
|
|
|
{
|
|
|
|
|
super.init(text: text, detailText: detailedText)
|
|
|
|
|
|
|
|
|
|
self.layoutMargins = UIEdgeInsets(top: 6, left: 12, bottom: 6, right: 12)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
required init(coder aDecoder: NSCoder) {
|
|
|
|
|
fatalError("init(coder:) has not been implemented")
|
|
|
|
|
}
|
|
|
|
|
|
2019-07-19 16:42:40 -07:00
|
|
|
override func layoutSubviews()
|
|
|
|
|
{
|
|
|
|
|
super.layoutSubviews()
|
|
|
|
|
|
2019-07-24 12:51:23 -07:00
|
|
|
self.layer.cornerRadius = 16
|
2019-07-19 16:42:40 -07:00
|
|
|
}
|
|
|
|
|
}
|