Custom font not showing in Xcode playground

I have made a playground and added some fonts in the resources folder. However, my font is not showing in the live view. Here is the code:


hiLabel.font = UIFont(name: "Itim-Regular", size: 40)


label.font = UIFont(name: "AmaticSC-Bold", size: 30)



There is no other error. The font in the live view is the default font.