Selaa lähdekoodia

Merge pull request #2074 from iwill-hwang/source_identifier_accessmodifier

modified Source.Identifier.current access modifier
Wei Wang 2 vuotta sitten
vanhempi
commit
c99f00cd21
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Sources/General/ImageSource/Source.swift

+ 1 - 1
Sources/General/ImageSource/Source.swift

@@ -41,7 +41,7 @@ public enum Source {
 
         /// The underlying value type of source identifier.
         public typealias Value = UInt
-        static var current: Value = 0
+        static private(set) var current: Value = 0
         static func next() -> Value {
             current += 1
             return current