2

Example: iPhone camera grid

Example: iPhone camera grid

I'm trying to display a grid (3 X 3) like the one which appears when you turn on from Settings > Camera > Grid. I already read this post, and I tried adding png as well, but I can't replicate like the image I attached.

Thanks for reading this post!

2
  • Do u want only gird work or camera thing also? Commented Nov 6, 2020 at 4:05
  • For now, my main goal is to make a similar grid view and then, later on, make it work with a camera. Commented Nov 6, 2020 at 4:07

1 Answer 1

5

Here:

import SwiftUI

struct ContentView: View {
    var body : some View {
        ZStack {
            HStack {
                Spacer()
                Divider()
                Spacer()
                Divider()
                Spacer()
            }

            VStack {
                Spacer()
                Divider()
                Spacer()
                Divider()
                Spacer()
            }
        }
    }
}

enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

Nice, this is very simple but very smart!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.