* Starting on filling in documentation. * First pass on most/all files * more descriptions filled in * Some documentation but TBH the author would be better suited to explain how this works! * more basic stuff filled in * Add a description and bunch of discussion text for most of the view `body` declarations * more explanations Co-authored-by: Dan Wood <danwood@users.noreply.github.com>
12 lines
224 B
Swift
12 lines
224 B
Swift
import Foundation
|
|
import SwiftUI
|
|
|
|
extension CGRect {
|
|
|
|
/// Midpoint of rectangle
|
|
/// - Returns: the coordinate for a rectangle center
|
|
public var mid: CGPoint {
|
|
return CGPoint(x: self.midX, y: self.midY)
|
|
}
|
|
}
|