make the emoji detail view count have a bg on 18 and below

add nav title to settings
This commit is contained in:
Nihaal Sharma committed 2026-08-27 22:29:53 +05:30
1 parent ff01bf6a0e
commit c5ebe25ec2
2 files changed
+7 -1

No files matched your search

+2
View File
@@ -192,6 +192,8 @@ struct SettingsView: View {
} }
// Section(content: <#T##() -> View#>, header: <#T##() -> View#>, footer: <#T##() -> View#>) // Section(content: <#T##() -> View#>, header: <#T##() -> View#>, footer: <#T##() -> View#>)
} }
.navigationTitle("Settings")
.navigationBarTitleDisplayMode(.inline)
} }
} }
} }
@@ -89,11 +89,15 @@ class EmojiPackDetailViewController: UIViewController {
countLabel.textAlignment = .center countLabel.textAlignment = .center
self.effectView = UIVisualEffectView(effect: nil) self.effectView = UIVisualEffectView(effect: nil)
self.view.addSubview(effectView) self.view.addSubview(effectView)
var effect: UIVisualEffect
if #available(iOS 19, *) { if #available(iOS 19, *) {
let glassEffect = UIGlassEffect() let glassEffect = UIGlassEffect()
glassEffect.isInteractive = true glassEffect.isInteractive = true
effectView.effect = glassEffect effect = glassEffect
} else {
effect = UIBlurEffect(style: .systemThinMaterial)
} }
effectView.effect = effect
effectView.layer.masksToBounds = true effectView.layer.masksToBounds = true
effectView.clipsToBounds = true effectView.clipsToBounds = true
effectView.contentView.addSubview(countLabel) effectView.contentView.addSubview(countLabel)
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.