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
@@ -75,21 +75,29 @@ class MessagesToolbarView: UIStackView {
|
||||
labelSubTitle.textAlignment = .center
|
||||
labelSubTitle.font = .preferredFont(forTextStyle: .caption1)
|
||||
|
||||
|
||||
goButton.layer.masksToBounds = true
|
||||
goView.layer.masksToBounds = true
|
||||
goButton.setImage(UIImage(named: "arrow.up.right.square"), for: .normal)
|
||||
goView.addSubview(goButton)
|
||||
goView.contentView.addSubview(goButton)
|
||||
goButton.translatesAutoresizingMaskIntoConstraints = false
|
||||
NSLayoutConstraint.activate([
|
||||
goButton.widthAnchor.constraint(equalTo: goView.widthAnchor),
|
||||
goButton.heightAnchor.constraint(equalTo: goView.heightAnchor)
|
||||
goButton.widthAnchor.constraint(equalTo: goView.contentView.widthAnchor),
|
||||
goButton.heightAnchor.constraint(equalTo: goView.contentView.heightAnchor),
|
||||
|
||||
// goView.contentView.heightAnchor.constraint(equalTo: labelView.heightAnchor),
|
||||
goView.contentView.widthAnchor.constraint(equalTo: goView.contentView.heightAnchor)
|
||||
])
|
||||
|
||||
self.addArrangedSubview(labelView)
|
||||
self.addArrangedSubview(goView)
|
||||
self.addArrangedSubview(labelView)
|
||||
}
|
||||
|
||||
func refreshUI() {
|
||||
|
||||
}
|
||||
|
||||
override func layoutSubviews() {
|
||||
super.layoutSubviews()
|
||||
goView.layer.cornerRadius = goView.frame.height/4
|
||||
labelView.layer.cornerRadius = labelView.frame.height/4
|
||||
}
|
||||
}
|
||||