You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to achieve a custom look for the overlay view.
My goal is to have the information about the photo in the top , and the navigation stuff in the bottom (basically the reverse of the default).
As far as I understand there are two ways to customize the appearance of the overlay:
Add views to the top and bottom stackview containers of the AXOverlayView. This doesn't do what I want, since the title view will still remain, and any views will be added below
Replace the title view, by supplying a custom UIView, conforming to AXOverlayTitleViewProtocol.
Now this is what I want. However, when I do so, it seems that no matter what I do, there is a gap between the edge of the view controller and my custom view like so:
class CustomView: UIView, AXOverlayTitleViewProtocol {
//empty
}
...
let v = CustomView(frame: self.view.frame) //no matter what frame I use
v.backgroundColor = UIColor.red
photosViewController.overlayView.titleView = v
self.present(photosViewController, animated: true)
Please let me know what am I missing.
The text was updated successfully, but these errors were encountered:
I am trying to achieve a custom look for the overlay view.
My goal is to have the information about the photo in the top , and the navigation stuff in the bottom (basically the reverse of the default).
As far as I understand there are two ways to customize the appearance of the overlay:
Add views to the top and bottom stackview containers of the AXOverlayView. This doesn't do what I want, since the title view will still remain, and any views will be added below
Replace the title view, by supplying a custom UIView, conforming to AXOverlayTitleViewProtocol.
Now this is what I want. However, when I do so, it seems that no matter what I do, there is a gap between the edge of the view controller and my custom view like so:
Screenshot
Here is the code I use:
Please let me know what am I missing.
The text was updated successfully, but these errors were encountered: