Skip to content

Instantly share code, notes, and snippets.

@mmuszynski
Created May 8, 2022 22:22
Show Gist options
  • Select an option

  • Save mmuszynski/36e81b6edd5f6a7a08860854bc096a17 to your computer and use it in GitHub Desktop.

Select an option

Save mmuszynski/36e81b6edd5f6a7a08860854bc096a17 to your computer and use it in GitHub Desktop.

Revisions

  1. mmuszynski created this gist May 8, 2022.
    22 changes: 22 additions & 0 deletions available.swift
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    import SwiftUI
    import Music

    @available(macOS 12, *)
    @available(iOS 13, *)
    extension MusicClef: View {}

    @available(macOS 12, *)
    @available(iOS 13, *)
    extension MusicNote: View {}

    @available(macOS 12, *)
    @available(iOS 13, *)
    extension MusicAccidental: View {}

    @available(macOS 12, *)
    @available(iOS 13, *)
    extension MusicStaffViewElement {
    public var body: some View {
    self.swiftUIShape
    }
    }