Skip to content

Commit 22bee52

Browse files
committed
Fix some iOS 26 effects
1 parent bbe2d13 commit 22bee52

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

WordPress/Classes/ViewRelated/System/Action Sheet/BloggingPromptsHeaderView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ private extension BloggingPromptsHeaderView {
8484
shareButton.titleLabel?.adjustsFontSizeToFitWidth = true
8585
shareButton.setTitleColor(WPStyleGuide.BloggingPrompts.buttonTitleColor, for: .normal)
8686
attributionLabel.adjustsFontForContentSizeCategory = true
87+
backgroundColor = .clear
8788
}
8889

8990
func configureConstraints() {

WordPress/Classes/ViewRelated/System/Floating Create Button/CreateButtonCoordinator.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,14 @@ final class CreateButtonCoordinator: NSObject {
1717
var button: UIButton = {
1818
let button: UIButton
1919
if #available(iOS 26, *) {
20-
var configuration = UIButton.Configuration.prominentClearGlass()
20+
var configuration = UIButton.Configuration.prominentGlass()
2121
configuration.image = UIImage(systemName: "plus")
2222
configuration.contentInsets = .init(top: 12, leading: 12, bottom: 12, trailing: 12)
2323
configuration.preferredSymbolConfigurationForImage = UIImage.SymbolConfiguration(
2424
font: .systemFont(ofSize: 20, weight: .semibold)
2525
)
26-
configuration.baseForegroundColor = .systemBackground
27-
configuration.baseBackgroundColor = .label.withAlphaComponent(0.8)
28-
2926
button = UIButton(configuration: configuration, primaryAction: nil)
27+
button.tintColor = .label.withAlphaComponent(0.9)
3028
} else {
3129
button = FloatingActionButton(image: .gridicon(.plus))
3230
}

0 commit comments

Comments
 (0)