From 9952256d326a117cf6a67359b56fe813014ff46a Mon Sep 17 00:00:00 2001 From: tinder-emanharoutunian Date: Mon, 16 Oct 2023 13:09:13 -0700 Subject: [PATCH] Add LayoutCenter --- Sources/Layout/LayoutCenter.swift | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Sources/Layout/LayoutCenter.swift diff --git a/Sources/Layout/LayoutCenter.swift b/Sources/Layout/LayoutCenter.swift new file mode 100644 index 00000000..3c13bd4b --- /dev/null +++ b/Sources/Layout/LayoutCenter.swift @@ -0,0 +1,18 @@ +// +// All Contributions by Match Group +// +// Copyright © 2023 Tinder (Match Group, LLC) +// +// Licensed under the Match Group Modified 3-Clause BSD License. +// See https://github.com/Tinder/Layout/blob/main/LICENSE for license information. +// + +import UIKit + +@preconcurrency +@MainActor +public protocol LayoutCenter: AnyObject { + + var centerX: NSLayoutXAxisAnchor { get } + var centerY: NSLayoutYAxisAnchor { get } +}