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

Story text is not displaying

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


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
20,720 Points

Put your code on GitHub so we can review your project

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