Skip to content

Instantly share code, notes, and snippets.


Rulo nahuelDeveloper

View GitHub Profile
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
class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate, MessagingDelegate {
var window: UIWindow?
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
// (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 / 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.
static func twitterShare(from viewController: FinishVideoViewController, path: String) {
let account = ACAccountStore()
You can’t perform that action at this time.