Skip to content

Instantly share code, notes, and snippets.

Avatar

Rulo nahuelDeveloper

View GitHub Profile
@nahuelDeveloper
nahuelDeveloper / .swift
Created Oct 31, 2017
AppDelegate example with logic to handle Remote Push Notifications from Firebase
View .swift
import UIKit
import UserNotifications
import Firebase
import FirebaseInstanceID
import FirebaseMessaging
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate, MessagingDelegate {
var window: UIWindow?
@nahuelDeveloper
nahuelDeveloper / CalculatorView.swift
Created Oct 4, 2017 — forked from natecook1000/CalculatorView.swift
An IBInspectable Calculator Construction Set
View CalculatorView.swift
// CalculatorView.swift
// as seen in http://nshipster.com/ibinspectable-ibdesignable/
//
// (c) 2015 Nate Cook, licensed under the MIT license
import UIKit
/// The alignment for drawing an String inside a bounding rectangle.
enum NCStringAlignment {
case LeftTop
@nahuelDeveloper
nahuelDeveloper / TwitterShare.swift
Last active May 2, 2018
Share a gif on Twitter. Code adapted for Swift 3 and iOS 10
View TwitterShare.swift
// MARK: - Twitter
/*
To upload a gif to Twitter, two different API calls are needed.
One to upload the gif. The other, to append a comment to the gif.
https://xcodenoobies.blogspot.com.ar/2016/01/how-to-using-slrequest-to-upload-image.html?showComment=1460489097793#c638358337669317406
*/
static func twitterShare(from viewController: FinishVideoViewController, path: String) {
let account = ACAccountStore()
You can’t perform that action at this time.