diff --git a/Sources/OversizeUI/Controls/Row/Row.swift b/Sources/OversizeUI/Controls/Row/Row.swift index d8fdafb..95776a0 100644 --- a/Sources/OversizeUI/Controls/Row/Row.swift +++ b/Sources/OversizeUI/Controls/Row/Row.swift @@ -94,9 +94,10 @@ public struct Row: View { @ViewBuilder private func content(_ textAlignment: TextAlignment) -> some View { VStack(alignment: .leading) { - HStack(spacing: .small) { + HStack(spacing: .zero) { if let leadingType { leading(leadingType) + .padding(.trailing, .small) } if textAlignment == .trailing || textAlignment == .center { @@ -113,6 +114,7 @@ public struct Row: View { if let trallingType { tralling(trallingType) + .padding(.leading, .xxSmall) } } } @@ -264,6 +266,7 @@ public struct Row: View { private func premiumLabel() -> some View { if isPremiumOption, premiumStatus == false { PremiumLabel(text: "Pro", size: .small) + .padding(.leading, .small) } else { EmptyView() } diff --git a/Sources/OversizeUI/Core/Appearance/ThemeSettings.swift b/Sources/OversizeUI/Core/Appearance/ThemeSettings.swift index 7cc6d0a..98fe342 100644 --- a/Sources/OversizeUI/Core/Appearance/ThemeSettings.swift +++ b/Sources/OversizeUI/Core/Appearance/ThemeSettings.swift @@ -53,32 +53,3 @@ public class ThemeSettings: ObservableObject { Theme(id: 0, name: "Blue", accentColor: .accent), ] } - -#if os(iOS) - public class AppIconSettings: ObservableObject { - public var iconNames: [String?] = [nil] - @Published public var currentIndex = 0 - - public init() { - getAlternateIconNames() - - if let currentIcon = UIApplication.shared.alternateIconName { - currentIndex = iconNames.firstIndex(of: currentIcon) ?? 0 - } - } - - private func getAlternateIconNames() { - if let icons = Bundle.main.object(forInfoDictionaryKey: "CFBundleIcons") as? [String: Any], - let alternateIcons = icons["CFBundleAlternateIcons"] as? [String: Any] - { - for (_, value) in alternateIcons { - guard let iconList = value as? [String: Any] else { return } - guard let iconFiles = iconList["CFBundleIconFiles"] as? [String] else { return } - guard let icon = iconFiles.first else { return } - - iconNames.append(icon) - } - } - } - } -#endif