Skip to content

cardinalblue/2026-interview-pair-programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

StickerCanvas

A small iOS app where you pick stickers from a panel and place them on a canvas. The app works end-to-end but was built as a quick POC — there are bugs to fix and features to add.

Getting Started

Requirements:

  1. Open StickerCanvas.xcodeproj in Xcode
  2. Select an iOS simulator
  3. ⌘R to build and run

Project Structure

StickerCanvas/
├── CanvasViewController.swift        — main screen (UIKit)
├── CanvasView.swift                  — canvas where stickers live (UIKit)
├── StickerPickerViewController.swift — bottom sticker strip (UIKit)
├── StickerCell.swift                 — individual sticker cell (UIKit)
├── StickerPickerHeaderView.swift     — picker header with badge (SwiftUI)
├── PCCanvasRenderer.h / .m           — renders a UIView to UIImage (Objective-C)
└── StickerCanvas-Bridging-Header.h   — exposes ObjC to Swift

Action Items

1. Bug Fix — Placed-count badge doesn't update

The header badge always shows "(0 placed)" no matter how many stickers you place. Fix it so the count stays in sync.

2. Bug Fix — Stickers don't land at the canvas center

Placing a sticker should put it at the center of the canvas, but it lands off-center. Fix the coordinate calculation.

3. Feature — Export canvas as image

There's a hidden export button (setupExportButton). Unhide it and wire it up to render the canvas as a PNG using PCCanvasRenderer and present a share sheet.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published