This file contains 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
// | |
// ProjectsScene.swift | |
// Fancytracker | |
// | |
// Created by Andrea Mazzini on 26/01/2020. | |
// Copyright © 2020 Fancy Pixel S.r.l. All rights reserved. | |
// | |
import SwiftUI |
This file contains 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 | |
import RxSwift | |
import Moya | |
import ObjectMapper | |
extension UIView { | |
func loadNib<T: UIView>() -> T { | |
guard let view = Bundle.main.loadNibNamed(String(describing: T.self), owner: self, options: [:])?.first as? T else { | |
fatalError("Could not init NIB named: \(String(describing: T.self))") | |
} |
This file contains 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
// BubbleTransition imported as a pod with Cocoapods: | |
// | |
// pod 'BubbleTransition' | |
// use_frameworks! | |
// | |
#import "ViewController.h" | |
@import BubbleTransition; | |
@interface ViewController () <UIViewControllerTransitioningDelegate> |
This file contains 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
// registerDefaults doesn't seem to work when reading from an app extension | |
let userDefaults = NSUserDefaults(suiteName: "group.com.sample.app")! | |
userDefaults.registerDefaults(["SOME_KEY": 1]) | |
userDefaults.synchronize() | |
// In a Today extension: | |
let userDefaults = NSUserDefaults(suiteName: "group.com.sample.app")! | |
println(userDefaults.integerForKey("SOME_KEY")) // prints 0 |
This file contains 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 ViewController: UIViewController { | |
@IBOutlet weak var cardView: UIView! | |
var popTip = AMPopTip() | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
} |
This file contains 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
- (id<UIViewControllerAnimatedTransitioning>)navigationController:(UINavigationController *)navigationController | |
animationControllerForOperation:(UINavigationControllerOperation)operation | |
fromViewController:(UIViewController*)fromVC | |
toViewController:(UIViewController*)toVC | |
{ | |
if (operation != UINavigationControllerOperationNone) { | |
AMWaveTransition *transition = [AMWaveTransition transitionWithOperation:operation]; | |
[transition setTransitionType:AMWaveTransitionTypeSubtle]; | |
[transition setDuration:1.3]; | |
[transition setMaxDelay:0.4]; |
This file contains 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
// | |
// AMTableViewController.m | |
// ScrollingNavbarDemo | |
// | |
// Created by Andrea Mazzini on 09/11/13. | |
// Copyright (c) 2013 Andrea Mazzini. All rights reserved. | |
// | |
#import "AMTableViewController.h" | |
#import "UIViewController+ScrollingNavbar.h" |