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
// Author: SwiftUI-Lab (swiftui-lab.com) | |
// Description: Implementation of the showSizes() debugging modifier | |
// blog article: https://swiftui-lab.com/layout-protocol-part-2 | |
import SwiftUI | |
struct MeasureExample: View { | |
var body: some View { | |
VStack { |
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
#pragma mark - Long press to move cells up and down | |
- (IBAction)longPressGestureRecognized:(id)sender { | |
UILongPressGestureRecognizer *longPress = (UILongPressGestureRecognizer *)sender; | |
UIGestureRecognizerState state = longPress.state; | |
CGPoint location = [longPress locationInView:self.tableView]; | |
NSIndexPath *indexPath = [self.tableView indexPathForRowAtPoint:location]; |
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
// | |
// LoginVC.m | |
// | |
// Created by Adam Chin on 7/14/16. | |
// | |
// This implementation is an example of Login Methods to Firebase | |
// Google's MBaaS. It includes login auths to Facebook and Twitter | |
// as well as Email Logging. | |
// | |
// Client Requirements: |
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
// | |
// testCollectionViC.m | |
// | |
// Created by Adam Chin | |
// Copyright © 2016 HushBox. All rights reserved. | |
// | |
#import "testCollectionVC.h" | |
#import "CoreDataController.h" | |
#import "CoreDataHelper.h" |
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
/* | |
Copyright (c) 2011, Tony Million. | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are met: | |
1. Redistributions of source code must retain the above copyright notice, this | |
list of conditions and the following disclaimer. | |
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
// | |
// TwitterAPIBundle.m | |
// | |
// Created by Adam Chin on 10/26/15. | |
// | |
#import "TwitterAPIBundle.h" | |
static NSString * const TwitterAPIKey = @"TwitterAPIKey"; | |
static NSString * const TwitterSecret = @"TwitterSecret"; |
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
// | |
// TwitterAPIBundle.h | |
// | |
// | |
// Created by Adam Chin on 10/26/15. | |
#import <Foundation/Foundation.h> | |
@interface TwitterAPIBundle : NSObject |
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
// | |
// GlobalUI.m | |
// | |
// Created by Adam Chin on 7/7/15. | |
// | |
#import "GlobalUI.h" | |
@implementation GlobalUI |
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
// | |
// LoginVC.m | |
// | |
// Created by Adam Chin on 7/14/16. | |
// The following is an example of Auth0 | |
// Logging into Email/Social services with a custom UI | |
// Interface Builder requirements are: | |
// 2 Social buttons | |
// Email/Password UITextFields | |
// button to fire didTapEmailLogin |
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
// Set Required TextField red on the outside | |
// Simple Implementation: | |
// 1. Set a property for UITextField, ex: textField | |
// 2. in ViewWillAppear call [self setRequiredTextFieldStyle:self.textField]; | |
-(void)setRequiredTextFieldStyle:(UITextField*)textField | |
{ | |
textField.layer.shadowColor = [UIColor redColor].CGColor; | |
textField.layer.shadowRadius = 4.0; | |
textField.layer.shadowOpacity = 0.9; | |
textField.layer.shadowOffset = CGSizeZero; |
NewerOlder