Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 5 additions & 1 deletion grid-ios/tile/TileUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand All @@ -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
Expand Down Expand Up @@ -136,6 +138,7 @@ public class TileUtils {
return toGridPoint(toCoordinate(point))
}

#if !os(watchOS)
/**
* Get the current zoom level of the map view
*
Expand Down Expand Up @@ -194,4 +197,5 @@ public class TileUtils {
return region
}

#endif
}