Skip to content

wataru-maeda/swiftui-smartnews-like-page-menu

Repository files navigation

swiftui-smartnews-like-page-menu

Demo

Installation

Drag & Drop PageMenu folder into your project

Usage

struct ContentView: View {
  @State private var selection = 0
  let items = [
    PageMenuItem(
      title: "Page 1",
      color: .red,
      content: Text("Page 1")
    ),
    PageMenuItem(
      title: "Page 2",
      color: .pink,
      content: Text("Page 2")
    ),
    PageMenuItem(
      title: "Page 3",
      color: .orange,
      content: Text("Page 3")
    )
  ]

  var body: some View {
    PageMenu(selecton: $selection, items: items)
  }
}


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages