mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-11-30 20:54: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#>)
|
// 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)
|
||||||
|
|||||||