Move maxY extension method to FoundationExtras.

This commit is contained in:
Brent Simmons
2024-05-06 21:31:30 -07:00
parent bfa7ad55bb
commit 18acf5919c
3 changed files with 12 additions and 27 deletions

View File

@@ -1,21 +0,0 @@
//
// Array-Extensions.swift
// NetNewsWire-iOS
//
// Created by Maurice Parker on 4/28/19.
// Copyright © 2019 Ranchero Software. All rights reserved.
//
import UIKit
extension Array where Element == CGRect {
func maxY() -> CGFloat {
var y: CGFloat = 0.0
for r in self {
y = Swift.max(y, r.maxY)
}
return y
}
}