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 AZTextFrameAttributes: NSObject { | |
| // MARK: - Properties | |
| fileprivate(set) var width: CGFloat = 0 | |
| fileprivate(set) var string: String? | |
| fileprivate(set) var attributedString: NSAttributedString? | |
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
| ios-channels.ru | |
| digest.mbltdev.ru | |
| bit.ly/podlodka_podcast | |
| vk.com/iosdevcourse | |
| iosgoodreads.ru | |
| vk.com/iosninja | |
| peerlab.community | |
| cocoadevelopers.club |
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
| //http://www.innofied.com/implementing-image-masking-in-ios/ | |
| - (UIImage*) maskImage:(UIImage *) image withMask:(UIImage *) mask | |
| { | |
| CGImageRef imageReference = image.CGImage; | |
| CGImageRef maskReference = mask.CGImage; | |
| CGImageRef imageMask = CGImageMaskCreate(CGImageGetWidth(maskReference), | |
| CGImageGetHeight(maskReference), | |
| CGImageGetBitsPerComponent(maskReference), |