tilemap collision not working with sprite

I made a tilemap with unity’s built in tilemap tools. I also added the tilemap collider 2d. I added a standard sprite, put movement script on it that IO found online, and when I run the game the sprite that I control with arrow keys passes through the tilemap.

This is my first time using tilemaps with Unity, I don’t have much experience with tilemaps in general though.

Using Unity 2019.1.4

I don’t know if this will work or if you have already done it but have you tried putting a Rigidbody2D on one of your objects and setting it to type kinematic?

I have also some problems with it . I checked whether it has “Ground” tag or not but it isn’t working propperly for some reason?