mastodon-ios/Mastodon/Extension/NSLayoutConstraint.swift

21 lines
376 B
Swift
Raw Normal View History

2021-01-28 09:10:30 +01:00
//
// NSLayoutConstraint.swift
// Mastodon
//
// Created by sxiaojian on 2021/1/28.
//
import UIKit
extension NSLayoutConstraint {
func priority(_ priority: UILayoutPriority) -> Self {
self.priority = priority
return self
}
func identifier(_ identifier: String?) -> Self {
self.identifier = identifier
return self
}
2021-01-28 09:10:30 +01:00
}