Skip to content

Instantly share code, notes, and snippets.

View zionix357's full-sized avatar
🏠
Working from home

Arthur Rocha zionix357

🏠
Working from home
View GitHub Profile
@idrougge
idrougge / UILabel+hyphenation.swift
Last active March 8, 2019 15:40
Turn on hyphenation for UILabel
extension UILabel {
func hyphenate() {
let paragraphStyle = NSMutableParagraphStyle()
let attstr = NSMutableAttributedString(attributedString: self.attributedText!)
paragraphStyle.hyphenationFactor = 1.0
attstr.addAttribute(.paragraphStyle, value: paragraphStyle, range: NSRange(0..<attstr.length))
self.attributedText = attstr
}
}
@julianshen
julianshen / CircleTransform.java
Last active November 6, 2023 12:47
CircleTransform for Picasso
/*
* Copyright 2014 Julian Shen
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software