From f69ca00b34ce579e3fc4bccdf448875c61678ee9 Mon Sep 17 00:00:00 2001 From: godly-devotion Date: Tue, 12 Mar 2024 11:12:31 -0400 Subject: [PATCH] style: fix swift-format lint warnings --- Front Row/Support/Extensions.swift | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/Front Row/Support/Extensions.swift b/Front Row/Support/Extensions.swift index f203132..af09cc2 100644 --- a/Front Row/Support/Extensions.swift +++ b/Front Row/Support/Extensions.swift @@ -13,23 +13,21 @@ extension NSSize { return width / height } - /** - Given another size S, returns a size that: + /// Given another size S, returns a size that: - - maintains the same aspect ratio; - - has same height or/and width as S; - - always smaller than S. + /// - maintains the same aspect ratio; + /// - has same height or/and width as S; + /// - always smaller than S. - - parameter toSize: The given size S. + /// - parameter toSize: The given size S. - ``` - +--+------+--+ - | |The | | - | |result| |<-- S - | |size | | - +--+------+--+ - ``` - */ + /// ``` + /// +--+------+--+ + /// | |The | | + /// | |result| |<-- S + /// | |size | | + /// +--+------+--+ + /// ``` func shrink(toSize size: NSSize) -> NSSize { if width == 0 || height == 0 { return size