Created
October 24, 2024 01:16
-
-
Save takoikatakotako/d510393d5ec8f662235859a2045dd10c to your computer and use it in GitHub Desktop.
SwiftUIでPreviewを横向きにする
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| struct ContentView: View { | |
| var body: some View { | |
| Text("I Love Snorlax Forever!!") | |
| } | |
| } | |
| struct ContentView_Previews: PreviewProvider { | |
| static var previews: some View { | |
| ContentView() | |
| .previewInterfaceOrientation(.landscapeLeft) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment