Skip to content

Commit

Permalink
Make NoteValue CaseIterable
Browse files Browse the repository at this point in the history
  • Loading branch information
cemolcay committed Feb 20, 2019
1 parent 8a2ee25 commit ffae030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/NoteValue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Foundation
// MARK: - NoteValueType

/// Defines the types of note values.
public enum NoteValueType: Double, Codable {
public enum NoteValueType: Double, Codable, CaseIterable {
/// Two whole notes.
case doubleWhole = 0.5
/// Whole note.
Expand All @@ -35,7 +35,7 @@ public enum NoteValueType: Double, Codable {
// MARK: - NoteModifier

/// Defines the length of a `NoteValue`
public enum NoteModifier: Double, Codable {
public enum NoteModifier: Double, Codable, CaseIterable {
/// No additional length.
case `default` = 1
/// Adds half of its own value.
Expand Down

0 comments on commit ffae030

Please sign in to comment.