This is a companion discussion topic for the original entry at https://www.raywenderlich.com/1940612-advanced-swift-types-and-operations/lessons/5
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/1940612-advanced-swift-types-and-operations/lessons/5
What is @inlinable? Could you please link a video/course please?
I would refer you to the Expert Swift book. Chapter 1 talks a little bit about @inlinable.
@inlinable hints to the compiler that it might want to just effectively paste the code of the function instead of taking the overhead of calling the function.
What is the purpose of importing “struct CoreGraphics.CGFloat” instead of “CoreGraphics” or UIKit as a whole??? Thanks for the video.