Skip to content

Commit

Permalink
style: fix swift-format lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
godly-devotion committed Mar 12, 2024
1 parent 1d8b59c commit f69ca00
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions Front Row/Support/Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f69ca00

Please sign in to comment.