From the course: iPadOS 13 Development Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution: Create a markup app

Solution: Create a markup app - iOS Tutorial

From the course: iPadOS 13 Development Essential Training

Start my 1-month free trial

Solution: Create a markup app

(upbeat music) - [Instructor] Now let's look at one possible solution to this challenge. The first thing to do is take a look at what we have set up. In the Assets folder, I have an image called pepper_green. The CanvasView has the CanvasView we created earlier in this chapter. And then the ContentView just simply has Hello World text. I'm going to delete that text object and create a ZStack and inside of there, I'll create a CanvasView and I want to create an Image above it. And I'm going to create it with that string, pepper_green. And then I'm going to make it resizable and then on the next line, it's going to be scaledToFit. Now, with that, let's actually see what it looks like in the canvas. So I'm going to resume my preview and then attempt to draw over the image. So it looks like the image is not actually loading but if I were to cut and paste this image in front of the CanvasView, you'll see that it is…

Contents