Structures

The following structures are available globally.

  • Bytes sequence for the implementation of MD5 The following is an altered source version that only includes MD5. The original software can be found at: https://github.com/krzyzanowskim/CryptoSwift

    See more

    Declaration

    Swift

    struct BytesSequence : Sequence
  • Log

    Thin wrapper around os.Logger that automatically captures file, function and line numbers.

    Usage:

      Log.cache.debug("my debug message")
      // prints: MapCache.swift[42]::myMethod -- my debug message
    
      Log.cache.error("tile not found with error \(error)")
      // prints: MapCache.swift[99]::fetchTile -- tile not found with error ...
    
      Log.diskcache.info("cache size calculated")
      // prints: DiskCache.swift[55]::calculateDiskSize -- cache size calculated
    
      Log.downloader.trace("network request started")
      // prints: RegionDownloader.swift[77]::start -- network request started
    
    See more

    Declaration

    Swift

    struct Log
  • Settings of your MapCache.

    See more

    Declaration

    Swift

    public struct MapCacheConfig
  • For a particular zoom level, defines a range of tiles. It can be iterated in a for loop. It will get the TileCoord`

    The following conditions shall always be true

    minTileX <= maxTileX
    minTileY <= maxTileY
    

    Todo

    • There are no validations for the conditions above.
    • There are not validations for the min and max values.
    See more

    Declaration

    Swift

    public struct TileRange : Sequence
  • Iterator of a TileRange.

    See more

    Declaration

    Swift

    public struct TileRangeIterator : IteratorProtocol
  • A range of zooms. Matematically: [z1, z1+1, z1+2,…, z2-1, z2]

    For instance: z1 = 2, z2 = 5 then [2, 3, 4, 5] would be the range.

    Usage example:

    let zR = ZoomRange(2,5).toArray()
     print(zR.count) // => 4
    

    It strictly stores z1 and z2, and the rest of the range is built upon request.

    See more

    Declaration

    Swift

    public struct ZoomRange : Sequence
  • Iterator that allows the use of ZoomRange in a for loop.

    See also

    IteratorProtocol
    See more

    Declaration

    Swift

    public struct ZoomRangeIterator : IteratorProtocol
  • Specifies a single tile and area of the tile that should upscaled.

    See more

    Declaration

    Swift

    public struct ZoomableTile