admin管理员组文章数量:1279124
I am new to swift IOS development by making hello world I tried to summarize my problem. I am unable to make app in full screen need help. I even added Launch Screen. I am attaching screen shots. Please help me to make it full screen.
//
// hello_worldApp.swift
// hello world
//
//
import SwiftUI
@main
struct hello_worldApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundStyle(.tint)
Text("Hello, world!")
}
.padding()
}
}
#Preview {
ContentView()
}
I am new to swift IOS development by making hello world I tried to summarize my problem. I am unable to make app in full screen need help. I even added Launch Screen. I am attaching screen shots. Please help me to make it full screen.
//
// hello_worldApp.swift
// hello world
//
//
import SwiftUI
@main
struct hello_worldApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundStyle(.tint)
Text("Hello, world!")
}
.padding()
}
}
#Preview {
ContentView()
}
Share
Improve this question
edited Feb 24 at 17:17
HangarRash
15.1k5 gold badges19 silver badges55 bronze badges
asked Feb 24 at 9:13
Mandeep ChaudharyMandeep Chaudhary
651 silver badge12 bronze badges
0
1 Answer
Reset to default 0⚠️ This is NOT related to the code! It is about the project configuration!
I even added Launch Screen
You probably removed the UILaunchScreen
key from the info
plist by mistake and fet to add it again. Make sure it exists there:
Note that the key should exist even if you don't provide any launch screens.
本文标签: swiftuiWhy is my iOS App not showing full ScreenStack Overflow
版权声明:本文标题:swiftui - Why is my iOS App not showing full Screen? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741283391a2370136.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论