mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Rename Extensions to UIKit Extensions
This commit is contained in:
20
iOS/UIKit Extensions/Array-Extensions.swift
Normal file
20
iOS/UIKit Extensions/Array-Extensions.swift
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// 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
|
||||
self.forEach { y = Swift.max(y, $0.maxY) }
|
||||
return y
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user