Created
October 24, 2024 01:49
-
-
Save takoikatakotako/56b1d4d399d7965641d701722f4fa995 to your computer and use it in GitHub Desktop.
SwiftUIでListのスタイルを変更する(plain)
This file contains 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 { | |
List { | |
Section("Normal") { | |
Text("Meowth") | |
Text("Ditto") | |
} | |
Section("Fire") { | |
Text("Vulpix") | |
Text("Arcanine") | |
Text("Charmander") | |
} | |
} | |
.listStyle(.plain) | |
} | |
} | |
#Preview { | |
ContentView() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment