Parcourir la source

Merge pull request #2074 from iwill-hwang/source_identifier_accessmodifier

modified Source.Identifier.current access modifier
Wei Wang il y a 2 ans
Parent
commit
c99f00cd21
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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.
         /// The underlying value type of source identifier.
         public typealias Value = UInt
         public typealias Value = UInt
-        static var current: Value = 0
+        static private(set) var current: Value = 0
         static func next() -> Value {
         static func next() -> Value {
             current += 1
             current += 1
             return current
             return current