This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import CoreGraphics | |
/// Arithmetic extensions for CGPoint, CGSize, and CGVector. | |
/// All of the operators +, -, *, /, and unary minus are supported. Where | |
/// applicable, operators can be applied to point/size/vector + point/size/vector, | |
/// as well as point/size/vector + CGFloat and CGFloat + point/size/vector. | |
protocol Overload2D { | |
/// Really for internal use, but publicly available so the unit tests can use them. | |
var a: CGFloat { get set } | |
var b: CGFloat { get set } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// We are a way for the cosmos to know itself. -- C. Sagan | |
import SwiftUI | |
class ChildState: ObservableObject { | |
@Published var childData = 0 | |
} | |
struct Parent: View { | |
@State var parentData = 0 |
OlderNewer