Skip to content

Commit

Permalink
Add LayoutCenter.swift (#142)
Browse files Browse the repository at this point in the history
* Add LayoutCenter

* Remove AnyObject

---------

Co-authored-by: Garric Nahapetian <[email protected]>
  • Loading branch information
1 parent 4f41e8e commit df706cc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Sources/Layout/LayoutCenter.swift
Original file line number Diff line number Diff line change
@@ -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 {

var centerX: NSLayoutXAxisAnchor { get }
var centerY: NSLayoutYAxisAnchor { get }
}

0 comments on commit df706cc

Please sign in to comment.