Closed 0xLeif closed 3 years ago
//
// ViewController.swift
// ExamSIUIK
//
// Created by Leif on 3/22/21.
//
import UIKit
import SwiftUIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
view.embed {
SafeAreaView {
Image(color: .orange)
}
.ignore(
leadingAnchorWithPadding: 0,
trailingAnchorWithPadding: 0,
bottomAnchorWithPadding: 0
)
}
}
}
Is your feature request related to a problem? Please describe. When trying to respect the SafeArea, sometimes we don't want to respect all of it.. maybe we just want to respect the topAnchor.
Describe the solution you'd like
Describe alternatives you've considered One could
embed
a view and then manually update the constraints.Additional context N/A