🍦 SwiftServe Get

Menu / ui.autolayout-dsl

Can Swift packages do auto layout dsl?

also known as: constraints dsl · layout anchors · snap constraints

PackageiOSmacOSwatchOStvOSvisionOSLinuxCatalyst
snapkit as of 6.0.0
Details

serves it · confidence 0.90 · as of 6.0.0

  • ConstraintView.snp
    Sources/ConstraintView+Extensions.swift:148
    View the line on GitHub →
    Unconditional entry point to the constraint DSL (view.snp), present on iOS.
  • ConstraintViewDSL.makeConstraints
    Sources/ConstraintViewDSL.swift:38
    View the line on GitHub →
    Core DSL verb makeConstraints, unconditional.
  • ConstraintView
    #if canImport(UIKit)
    Sources/ConstraintView.swift:32
    View the line on GitHub →
    ConstraintView = UIView under canImport(UIKit); digest resolves it present on iOS.

serves it · confidence 0.90 · as of 6.0.0

  • ConstraintView.snp
    Sources/ConstraintView+Extensions.swift:148
    View the line on GitHub →
    Unconditional entry point to the constraint DSL (view.snp), present on macOS.
  • ConstraintView
    #if !canImport(UIKit)
    Sources/ConstraintView.swift:34
    View the line on GitHub →
    ConstraintView = NSView under !canImport(UIKit); digest resolves it present on macOS.
  • ConstraintViewDSL.makeConstraints
    Sources/ConstraintViewDSL.swift:38
    View the line on GitHub →
    Core DSL verb makeConstraints, unconditional.
?

not verified yet · confidence 0.25 · as of 6.0.0

  • ConstraintView
    #if canImport(UIKit)
    Sources/ConstraintView.swift:32
    View the line on GitHub →
    UIView-backed DSL branch: digest gaps mark watchOS absent for this variant.
  • ConstraintView
    #if !canImport(UIKit)
    Sources/ConstraintView.swift:34
    View the line on GitHub →
    Digest nominally resolves the NSView branch present on watchOS, but this is a structural canImport evaluation; AppKit/NSView is not an available SDK type on watchOS, so presence is not credible.
  • Package.swift:30
    View the line on GitHub →
    Manifest lists only iOS/macOS/tvOS floors; no watchOS entry (not absence evidence).

serves it · confidence 0.90 · as of 6.0.0

  • ConstraintView.snp
    Sources/ConstraintView+Extensions.swift:148
    View the line on GitHub →
    Unconditional entry point to the constraint DSL (view.snp), present on tvOS.
  • ConstraintView
    #if canImport(UIKit)
    Sources/ConstraintView.swift:32
    View the line on GitHub →
    ConstraintView = UIView under canImport(UIKit); digest resolves it present on tvOS.
  • Package.swift:33
    View the line on GitHub →
    Manifest declares .tvOS(.v14) platform floor.

serves it · confidence 0.85 · as of 6.0.0

  • ConstraintView.snp
    Sources/ConstraintView+Extensions.swift:148
    View the line on GitHub →
    Unconditional entry point to the constraint DSL (view.snp), present on visionOS.
  • ConstraintView
    #if canImport(UIKit)
    Sources/ConstraintView.swift:32
    View the line on GitHub →
    ConstraintView = UIView under canImport(UIKit); digest gaps do not list visionOS, so present there.
  • ConstraintViewDSL.makeConstraints
    Sources/ConstraintViewDSL.swift:38
    View the line on GitHub →
    Core DSL verb makeConstraints, unconditional. No visionOS manifest floor, hence slightly reduced confidence.
?

not verified yet · confidence 0.20 · as of 6.0.0

  • ConstraintView
    #if canImport(UIKit)
    Sources/ConstraintView.swift:32
    View the line on GitHub →
    UIView-backed DSL branch: digest gaps mark linux absent for this variant.
  • ConstraintView
    #if !canImport(UIKit)
    Sources/ConstraintView.swift:34
    View the line on GitHub →
    Digest nominally resolves the NSView branch present on linux, but this is a structural canImport evaluation; AppKit is unavailable on Linux, so presence is not credible. No os() absence guard exists, so unsupported cannot be claimed.
  • README.md:0
    View the line on GitHub →
    README requirements list only iOS 14.0+ / macOS 12.0+ / tvOS 14.0+ (not absence evidence).

serves it · confidence 0.85 · as of 6.0.0

  • ConstraintView.snp
    Sources/ConstraintView+Extensions.swift:148
    View the line on GitHub →
    Unconditional entry point to the constraint DSL (view.snp), present on macCatalyst.
  • ConstraintView
    #if canImport(UIKit)
    Sources/ConstraintView.swift:32
    View the line on GitHub →
    ConstraintView = UIView under canImport(UIKit); digest gaps do not list macCatalyst, so present there.
  • ConstraintViewDSL.makeConstraints
    Sources/ConstraintViewDSL.swift:38
    View the line on GitHub →
    Core DSL verb makeConstraints, unconditional. No explicit macCatalyst manifest floor, hence slightly reduced confidence.

✓ serves it · ◐ with conditions · ✕ not served (proven) · ? not verified yet — hover any verdict for the receipt, click to pin it