Swiftui, Swift, iOS App Development, iOS Development, iOS.
@FetchRequest(fetchRequest: Item.fetchRequest1, animation: .default) var items1:FetchedResults<Item> init(){ print("init") } var body: some View { ScrollViewReader { proxy in VStack { HStack { Button("Top") { withAnimation { proxy.scrollTo("top", anchor: .center) } }.buttonStyle(.bordered)