iOS Build an Interactive Story App with Swift Creating the User Interface Programmatically Displaying the Story

Dipan Chokshi
Dipan Chokshi
1,053 Points

Story text is not displaying

Hi After I build, story text is not displaying the way it displays in video. Any idea?

Thanks!

Dipan Chokshi
Dipan Chokshi
1,053 Points

I just noticed that in my case I was using below

storyLabel.topAnchor.constraint(equalTo: view.topAnchor, constant: -48)

but in video it is

storyLabel.topAnchor.constraint(equalTo: view.centerYAnchor, constant: -48)

Hope if someone has done this then this will help.

2 Answers

Jeff McDivitt
Jeff McDivitt
17,727 Points

Put your code on GitHub so we can review your project

Dipan Chokshi
Dipan Chokshi
1,053 Points

Hey Jeff Thanks for your time but its working now. I have put that comment in my description above.