Skip to content

Instantly share code, notes, and snippets.

- (void)getStatusOfEnvelopes
{
// Enter your info:
NSString *email = @"<#email#>";
NSString *password = @"<#password#>";
NSString *integratorKey = @"<#integratorKey#>";
///////////////////////////////////////////////////////////////////////////////////////
// STEP 1 - Login (retrieves accountId and baseUrl)
///////////////////////////////////////////////////////////////////////////////////////
import UIKit
extension NSAttributedString {
private func boundingRect() -> CGRect {
let context = UIGraphicsGetCurrentContext()
let framesetter =
CTFramesetterCreateWithAttributedString(self)
let rect = CGRect(x: 0, y: 0, width: 10000, height: 10000)
let path = CGPath(rect: rect, transform: nil)
let frame =