mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-11-30 12:44:51 +00:00
make the emoji detail view count have a bg on 18 and below
add nav title to settings
This commit is contained in:
2 files changed
+7
-1
No files matched your search
@@ -192,6 +192,8 @@ struct SettingsView: 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
|
||||
self.effectView = UIVisualEffectView(effect: nil)
|
||||
self.view.addSubview(effectView)
|
||||
var effect: UIVisualEffect
|
||||
if #available(iOS 19, *) {
|
||||
let glassEffect = UIGlassEffect()
|
||||
glassEffect.isInteractive = true
|
||||
effectView.effect = glassEffect
|
||||
effect = glassEffect
|
||||
} else {
|
||||
effect = UIBlurEffect(style: .systemThinMaterial)
|
||||
}
|
||||
effectView.effect = effect
|
||||
effectView.layer.masksToBounds = true
|
||||
effectView.clipsToBounds = true
|
||||
effectView.contentView.addSubview(countLabel)
|
||||
|
||||