mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-22 15:50:17 +01:00
22 lines
337 B
Swift
22 lines
337 B
Swift
//
|
|
// 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
|
|
}
|
|
}
|