SKTileSet tiles are blurry

I have a folder containing many 8x8 tile images. They are png images and are for sure 8x8 pixels. I added the folder of tile images to the Assets.xcassets in Xcode. I have also added a .sks tileset to my Xcode project.

When I add one of the images to my tile set in a new tilegroup the image is very blurry. It still is when put on a SKTileMapNode in the scene editor. It worked perfectly fine just yesterday and I have no idea what changed since I left Xcode open and haven't changed anything since then.

I have tried many things. Here is a list to rule out possible reasons for this issue:

  1. The TileSet and the SKTileMapNode tileSize property is the correct 8x8
  2. The size of the SKTileMapNode and the actual window itself are both the same aspect ratio of 2:1 w:h and the scale mode is set to .aspect fit.
  3. I have tried cleaning the project with Xcode and restarting Xcode.
  4. I have tried making a new TileSet
  5. I have tried making a new SKTileMapNode
  6. I have tried re-importing the tile images folder
  7. I have tried changing properties in the actual tile images themselves in the .xcassets
  8. I have tried toggling Enable Automapping in the SKTileMapNode
  9. I have tried making a completely new project with just the tileset and tilemapnode

Through my testing the issue seems to be with adding the tiles to the tileset. For some reason they are always blurry and I have no idea why. There is only one other post about this that I could find which was on StackOverflow with no answers and one reply saying maybe the tiles are being resized. ChatGPT gave a list of possible solutions which sometimes has helped with other problems but none of those worked either.

I am on Xcode version 14.2

UPDATE:

After some more tinkering I was able to get the images to show clear again after completely deleting all the tiles and their folders from the .xcassets and deleting the tileset and making a new one. Then I imported the images again and this time checked the "provides namespace" box on the asset folders. But when I tried to run it the images were all just Xs. So I unchecked the provides namespace and then the images showed again but they were all blurry. But for some reason adding new tiles was now clear, just they showed up as blurry in Xcode but when ran they were clear. Then Xcode randomly crashed a bit later and when I reopened there were no blurry tiles anymore.

Very weird stuff. I think something was/is going wrong with the assets -> tileset process.

UPDATE #2:

The issue is something with adding images afterwards. Everything was working fine since yesterday until I went to add a new tile to the tileset. It made all of the other already existing and working tiles blurry. Removing the new tile doesn't fix it either. This bug is very annoying, because I cannot add new tiles now without voiding all of the other ones.

SKTileSet tiles are blurry
 
 
Q