This may be a simple question but I am struggling to find an answer that explains itself on the internet. What is the swift equivalent of setting an element's "position: fixed" from CSS? I am trying to pin a UIView to the top of the screen so that even when I scroll I can still see the view at the top of the screen. Any suggestions or links to tutorials are appreciated, thanks!
edit: I probably should have mentioned that my view is originally a subview of my viewController with my tableview also being a subview of my viewController that is placed underneath it. I am using the IQKeyboardManagerSwift cocoa pod which is shifting the entire view up including my header.