Skip to content
View themrzt's full-sized avatar

Highlights

  • Pro

Block or report themrzt

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Simple square image (Swift) Simple square image (Swift)
    1
    //Use case: In a context where cropping an image view isn't a viable solution, this function takes an image expressed as binary data and crops it to a square. Quick and dirty.
    2
    func correctImageDimension(data: Data) -> Data{
    3
      
    4
            guard let image = UIImage(data: data) else {return data}
    5
            let width = image.size.width