Swift95

Image95

An image surface with optional nearest-neighbor rendering and a sunken bevel.

Image95 is useful for bitmap artwork that should remain crisp and sit inside a classic recessed surface.

Image95 displaying a photo symbol in a recessed frame
The non-pixelated symbol surface rendered by the snippet below.

Use it

import Swift95
import SwiftUI

struct Image95Example: View {
  var body: some View {
    Image95(
      Image(systemName: "photo").resizable(),
      isPixelated: false
    )
    .scaledToFit()
    .padding(18)
    .frame(width: 120, height: 90)
  }
}

Essential behavior

PixelationA two-point pixelation effect is enabled by default; disable it for vectors or photographs that should remain smooth.
SurfaceContent is clipped inside a theme-aware sunken bevel.
Native APIsUse swiftUI(_:) to transform the embedded Image.

Related

Open the complete Image95 API reference →