From c9cbc4e86e4917e08e3637fa5ec9d4a2cf3bca35 Mon Sep 17 00:00:00 2001 From: Ibrahim Abdo Date: Thu, 10 Jul 2025 19:12:15 +0300 Subject: [PATCH] Add `hidden` property for rows and cells --- Sources/CoreXLSX/Worksheet/Worksheet.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/CoreXLSX/Worksheet/Worksheet.swift b/Sources/CoreXLSX/Worksheet/Worksheet.swift index cd8471f1..e1e7f480 100644 --- a/Sources/CoreXLSX/Worksheet/Worksheet.swift +++ b/Sources/CoreXLSX/Worksheet/Worksheet.swift @@ -212,6 +212,9 @@ public struct Column: Codable, Equatable { /// Set to `true` when width for related columns differs from the default. public let customWidth: Bool? + + /// Whether the column is hidden or not + public let hidden: Bool? } /** The primary storage for spreadsheet cells. @@ -227,12 +230,14 @@ public struct Row: Codable { public let height: Double? public let customHeight: String? public let cells: [Cell] + public let hidden: Bool? enum CodingKeys: String, CodingKey { case cells = "c" case reference = "r" case height = "ht" case customHeight + case hidden } }