Просмотр исходного кода

Merge pull request #2074 from iwill-hwang/source_identifier_accessmodifier

modified Source.Identifier.current access modifier
Wei Wang 2 лет назад
Родитель
Сommit
c99f00cd21
1 измененных файлов с 1 добавлено и 1 удалено
  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