From 349fe3170eea520a502180536b73a4cd1ab19e04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariusz=20=C5=9Apiewak?= Date: Thu, 18 Jul 2024 18:13:10 +0200 Subject: [PATCH] Extract constant --- DuckDuckGo/ShortcutItemView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DuckDuckGo/ShortcutItemView.swift b/DuckDuckGo/ShortcutItemView.swift index 19a8211faf..2372bee3fa 100644 --- a/DuckDuckGo/ShortcutItemView.swift +++ b/DuckDuckGo/ShortcutItemView.swift @@ -40,7 +40,7 @@ struct ShortcutItemView: View { .overlay(alignment: .topTrailing) { if let accessoryType { ShortcutAccessoryView(accessoryType: accessoryType) - .frame(width: 24) + .frame(width: Constant.accessorySize) .offset(Constant.accessoryOffset) } } @@ -54,6 +54,7 @@ struct ShortcutItemView: View { } private enum Constant { + static let accessorySize = 24.0 static let accessoryOffset = CGSize(width: 6, height: -6) } }