From bd26ae93cf7e40b0dafb444aec314835fc589562 Mon Sep 17 00:00:00 2001 From: Nihaal Sharma <69979447+neon443@users.noreply.github.com> Date: Sun, 30 Aug 2026 18:50:00 +0530 Subject: [PATCH] update fonts --- .../UIKit/EmojiPacks/EmojiPackDetailViewController.swift | 2 +- StickerSlackiMessageApp/MessagesPackListView.swift | 6 +++--- StickerSlackiMessageApp/StickerBrowserViewController.swift | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/StickerSlack/UIKit/EmojiPacks/EmojiPackDetailViewController.swift b/StickerSlack/UIKit/EmojiPacks/EmojiPackDetailViewController.swift index 167d967..e11c67c 100644 --- a/StickerSlack/UIKit/EmojiPacks/EmojiPackDetailViewController.swift +++ b/StickerSlack/UIKit/EmojiPacks/EmojiPackDetailViewController.swift @@ -91,7 +91,7 @@ class EmojiPackDetailViewController: UIViewController { self.countLabel = UILabel() countLabel.text = "hello default" - countLabel.font = UIFont.systemFont(ofSize: 14) + countLabel.font = UIFont.preferredFont(forTextStyle: .subheadline) countLabel.textAlignment = .center self.effectView = UIVisualEffectView(effect: nil) self.view.addSubview(effectView) diff --git a/StickerSlackiMessageApp/MessagesPackListView.swift b/StickerSlackiMessageApp/MessagesPackListView.swift index 0fff3aa..e48d42b 100644 --- a/StickerSlackiMessageApp/MessagesPackListView.swift +++ b/StickerSlackiMessageApp/MessagesPackListView.swift @@ -63,11 +63,11 @@ class MessagesPackListView: UITableViewController { var config = cell.defaultContentConfiguration() config.directionalLayoutMargins = .zero - cell.layoutMargins = UIEdgeInsets(top: 4, left: 4, bottom: 4, right: 4) + cell.layoutMargins = UIEdgeInsets(top: 4, left: 4, bottom: 4, right: 8) cell.separatorInset = UIEdgeInsets(top: 0, left: 4, bottom: 0, right: 0) cell.preservesSuperviewLayoutMargins = false - config.textProperties.font = UIFont.systemFont(ofSize: 14) - config.secondaryTextProperties.font = UIFont.systemFont(ofSize: 12) + config.textProperties.font = UIFont.preferredFont(forTextStyle: .caption1) + config.secondaryTextProperties.font = UIFont.preferredFont(forTextStyle: .caption2) if indexPath.section == 0 { config.text = "All" diff --git a/StickerSlackiMessageApp/StickerBrowserViewController.swift b/StickerSlackiMessageApp/StickerBrowserViewController.swift index bb36989..a3399c3 100644 --- a/StickerSlackiMessageApp/StickerBrowserViewController.swift +++ b/StickerSlackiMessageApp/StickerBrowserViewController.swift @@ -66,11 +66,11 @@ class StickerBrowserViewController: MSStickerBrowserViewController { labelStack.layer.masksToBounds = true labelTitle.textColor = .white - labelTitle.font = UIFont.systemFont(ofSize: 14) + labelTitle.font = UIFont.preferredFont(forTextStyle: .subheadline) labelTitle.textAlignment = .center labelSubTitle.textColor = .white - labelSubTitle.font = UIFont.systemFont(ofSize: 12) + labelSubTitle.font = UIFont.preferredFont(forTextStyle: .caption1) labelSubTitle.textAlignment = .center }