working on storage cell view, tweaks to the messages app toolbar

This commit is contained in:
Nihaal Sharma committed 2026-11-27 09:41:54 +00:00
1 parent 34249aa56e
commit 9fc03e4bd2
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
}
}
@@ -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() {
@@ -4,7 +4,7 @@
<dict>
<key>com.apple.security.application-groups</key>
<array>
<string>group.com.neon443.StickerSlack</string>
<string>group.com.aarti.StickerSlack</string>
</array>
</dict>
</plist>
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.