20 lines
516 B
Swift
20 lines
516 B
Swift
//
|
|
// ReactiveConstraintsProtocol.swift
|
|
// PrivadoVPN
|
|
//
|
|
// Created by Zhandos Bolatbekov on 29.06.2021.
|
|
// Copyright © 2021 Privado LLC. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
typealias EmitterLayoutChangeType = Bool // isLandscape
|
|
|
|
protocol ReactivelyConstrained {
|
|
var portraitConstraints: [NSLayoutConstraint] { get }
|
|
var landscapeConstraints: [NSLayoutConstraint] { get }
|
|
var sharedConstraints: [NSLayoutConstraint] { get }
|
|
|
|
var layoutEmitter: Emitter<EmitterLayoutChangeType> { get }
|
|
}
|