mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-12-03 14:04:48 +00:00
working on storage cell view, tweaks to the messages app toolbar
This commit is contained in:
11 files changed
+84
-56
No files matched your search
@@ -43,32 +43,13 @@ class StickerBrowserViewController: MSStickerBrowserViewController {
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
// let stack = UIStackView(arrangedSubviews: [labelTitle, labelSubTitle])
|
||||
// labelStack.contentView.addSubview(stack)
|
||||
self.view.addSubview(toolbar)
|
||||
// stack.translatesAutoresizingMaskIntoConstraints = false
|
||||
toolbar.translatesAutoresizingMaskIntoConstraints = false
|
||||
NSLayoutConstraint.activate([
|
||||
// stack.heightAnchor.constraint(equalTo: toolbar.heightAnchor),
|
||||
// stack.widthAnchor.constraint(equalTo: toolbar.widthAnchor),
|
||||
|
||||
toolbar.centerXAnchor.constraint(equalTo: self.view.centerXAnchor),
|
||||
toolbar.leadingAnchor.constraint(equalTo: self.view.leadingAnchor, constant: -4),
|
||||
toolbar.bottomAnchor.constraint(equalTo: self.view.bottomAnchor, constant: -4)
|
||||
])
|
||||
// stack.axis = .vertical
|
||||
// stack.insetsLayoutMarginsFromSafeArea = false
|
||||
// stack.layoutMargins = UIEdgeInsets(top: 5, left: 10, bottom: 5, right: 10)
|
||||
// stack.isLayoutMarginsRelativeArrangement = true
|
||||
|
||||
toolbar.layer.masksToBounds = true
|
||||
|
||||
// labelTitle.textColor = .white
|
||||
// labelTitle.font = UIFont.preferredFont(forTextStyle: .subheadline)
|
||||
// labelTitle.textAlignment = .center
|
||||
//
|
||||
// labelSubTitle.textColor = .white
|
||||
// labelSubTitle.font = UIFont.preferredFont(forTextStyle: .caption1)
|
||||
// labelSubTitle.textAlignment = .center
|
||||
toolbar.labelView.layer.masksToBounds = true
|
||||
}
|
||||
|
||||
override func viewDidLayoutSubviews() {
|
||||
|
||||