This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class InsetLabel: UILabel { | |
var contentInsets = UIEdgeInsets.zero | |
override func drawText(in rect: CGRect) { | |
let insetRect = UIEdgeInsetsInsetRect(rect, contentInsets) | |
super.drawText(in: insetRect) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UIImage+Ext.swift | |
// frazeit | |
// | |
// Created by Maysam Shahsavari on 9/24/19. | |
// Copyright © 2019 Maysam Shahsavari. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
OlderNewer