filteringMode nearest not working

Hi Everyone

I used the extension available in the tutorial Beginning Tile Maps of the 2D Apple Games by Tutorial book (page 337) for my own plateform game and the " filteringMode = .nearest " keeps my sprites blurry.

here is the extension of SKTexture

and here is the init of my Player Class

here is how it looks like

I also tried

texture.filteringMode = .nearest in the init function but the node is still blurry,

I have been stuck with that for a couple of days now so any help or suggestions will be helpful

thanks in advance for your help