Skip to content

Commit 4ea2ac8

Browse files
committed
Fix corner radius in feature image
1 parent b54bebd commit 4ea2ac8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

WordPress/Classes/ViewRelated/Post/PostSettings/Views/PostSettingsFeaturedImageRow.swift

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,21 +139,25 @@ struct PostSettingsFeaturedImageRow: View {
139139
private func makeWithProminentBackground<Content: View>(@ViewBuilder content: @escaping () -> Content) -> some View {
140140
ZStack {
141141
// System background that adapts to dark mode
142-
RoundedRectangle(cornerRadius: 12)
142+
RoundedRectangle(cornerRadius: cornerRadius)
143143
.fill(Color(UIColor.secondarySystemGroupedBackground))
144144

145145
// Very subtle accent tint
146-
RoundedRectangle(cornerRadius: 12)
146+
RoundedRectangle(cornerRadius: cornerRadius)
147147
.fill(Color.accentColor.opacity(0.02))
148148

149149
content()
150150

151151
// Prominent border
152-
RoundedRectangle(cornerRadius: 12)
152+
RoundedRectangle(cornerRadius: cornerRadius)
153153
.strokeBorder(Color.accentColor.opacity(0.3), lineWidth: 1)
154154
}
155155
}
156156

157+
private var cornerRadius: CGFloat {
158+
if #available(iOS 26, *) { 26 } else { 12 }
159+
}
160+
157161
private func makeMediaPicker<Content: View>(@ViewBuilder content: @escaping () -> Content) -> some View {
158162
let configuration = MediaPickerConfiguration(
159163
sources: [.photos, .camera, .playground, .siteMedia(blog: viewModel.post.blog)],

0 commit comments

Comments
 (0)