native macOS codings agent orchestrator
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #44 from onevcat/feature/canvas-layout-animation

Add animation to canvas arrange and organize transitions

authored by

Wei Wang and committed by
GitHub
e5e48a41 a4284433

+8 -4
+8 -4
supacode/Features/Canvas/Views/CanvasView.swift
··· 358 358 private var canvasToolbar: some View { 359 359 HStack(spacing: 8) { 360 360 Button { 361 - arrangeCards() 362 - fitToView(canvasSize: viewportSize) 361 + withAnimation(.easeInOut(duration: 0.2)) { 362 + arrangeCards() 363 + fitToView(canvasSize: viewportSize) 364 + } 363 365 } label: { 364 366 Image(systemName: "rectangle.3.group") 365 367 .font(.body) ··· 369 371 .help("Arrange cards preserving sizes") 370 372 371 373 Button { 372 - organizeCards() 373 - fitToView(canvasSize: viewportSize) 374 + withAnimation(.easeInOut(duration: 0.2)) { 375 + organizeCards() 376 + fitToView(canvasSize: viewportSize) 377 + } 374 378 } label: { 375 379 Image(systemName: "square.grid.2x2") 376 380 .font(.body)