Swift publisher layers photo12/18/2023 Do any additional setup after loading the view.īntentMode = UIViewContentMode. But surely there's got to be a way to grab the image view's coordinates and make that calculation, right?Ĭlass TwoLayerViewController: UIViewController weak var bottomLayerImage: UIImageView! I'd like it to come in centered on the original image and match either its height or width, depending on which is smaller as it can be horizontal or vertical.Īfter an evening of searching, I've come up blank. I can flow in the original photo a couple of ways (either by starting with an image view or by programmatically creating one in a view), and I can add the ghost on top of it (I've mostly been doing this programmatically).īut I can only control the ghost's size and placement manually. But where I'm stuck is how to layer these images in a useable way. Swift Publisher Desktop Publisher for Mac Page layout and desktop publishing app that helps design flyers, brochures, business cards, labels and envelopes, discs covers and more. But where I'm stuck is how to layer these images in a useable way. I've gotten far enough that I'm passing in a camera roll image and a selected ghost image to a view controller. /rebates/&.com252fswift-publisher252fSPHelp252flayoutlayers. I've gotten far enough that I'm passing in a camera roll image and a selected ghost image to a view controller. My goal is to overlay two images (the first a photo from camera roll, the second a PNG of a cartoon ghost). The first is the background layer, which can be filled with a photo, illustration, pattern, gradient or solid. It is easier to manipulate images than image views (because image views have all sorts of complications in how they portray their images). This template will have two main design elements. My goal is to overlay two images (the first a photo from camera roll, the second a PNG of a cartoon ghost). 227 5 18 Are you sure you want to layer image views It might make more sense to layer the images themselves - that is, to draw a single image composited of the two originals.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |