In Storyboard i have view controller, inside i have a scroll view. question is scrollview is not scrollable while design time (UIKit). is it like that ? though, it works fine in simulator.
CodePudding user response:
The Interface Builder (with which you're building XIBs and Storyboards) is not "live", you cannot interact with the UI elements like you can with the "live" mode of SwiftUI Previews. This also means you cannot scroll a scroll view.
CodePudding user response:
If you have setup your constrains correctly, sure, you can scroll in Storyboard / Interface Builder.
Simply select any subview of the scroll view, and you can scroll just like you scroll anything else (such as this web page).
Here I have a stack view with several labels and buttons, in a scroll view:
I have the stack view selected and, as you see, I can scroll the content: