1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

SwiftUiデフォルトの戻るボタンを非表示にする方法

Posted at

デフォルトで画面を遷移した時に戻るボタンが表示されますが、非表示にしたい時もあると思います。

.swift
var body: some View {
    Text("戻る非表示画面")
        .navigationBarBackButtonHidden(true)
}

実装方法は.navigationBarBackButtonHidden(true)を追加するだけです。
Simulator Screenshot - iPhone 16 Pro - 2024-11-10 at 09.42.59.png

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?