diff --git a/Package.swift b/Package.swift index d9a98a9..fb28e6c 100644 --- a/Package.swift +++ b/Package.swift @@ -4,7 +4,7 @@ import PackageDescription let package = Package( name: "Grid", - platforms: [.macOS(.v11), .iOS(.v13)], + platforms: [.macOS(.v11), .iOS(.v13), .watchOS(.v10)], products: [ .library( name: "Grid", diff --git a/grid-ios/tile/TileUtils.swift b/grid-ios/tile/TileUtils.swift index df207db..ec0af8b 100644 --- a/grid-ios/tile/TileUtils.swift +++ b/grid-ios/tile/TileUtils.swift @@ -32,7 +32,8 @@ public class TileUtils { * High density scale */ public static let SCALE_FACTOR_DEFAULT: Float = 2.0 - + + #if !os(watchOS) /** * Get the tile side (width and height) dimension based upon the screen resolution * @@ -41,6 +42,7 @@ public class TileUtils { public static func tileLength() -> Int { return tileLength(Float(UIScreen.main.nativeScale)) } + #endif /** * Get the tile side (width and height) dimension based upon the scale @@ -136,6 +138,7 @@ public class TileUtils { return toGridPoint(toCoordinate(point)) } + #if !os(watchOS) /** * Get the current zoom level of the map view * @@ -194,4 +197,5 @@ public class TileUtils { return region } + #endif }