//
//  UserDataStorageViewController.swift
//  MySampleApp
//
//
// Copyright 2016 Amazon.com, Inc. or its affiliates (Amazon). All Rights Reserved.
//
// Code generated by AWS Mobile Hub. Amazon gives unlimited permission to 
// copy, distribute and modify it.
//
// Source code generated from template: aws-my-sample-app-ios-swift v0.2
//

import UIKit

class UserDataStorageViewController: UIViewController {
    
    @IBOutlet weak var featureTextView: UITextView!

    // MARK: - View lifecycle    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        navigationItem.backBarButtonItem = UIBarButtonItem(title: "Back", style: .Plain, target: nil, action: nil)
        featureTextView.contentInset = UIEdgeInsetsMake(-4, -4, -4, -4)
    }
    
    override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(animated)
        featureTextView.flashScrollIndicators()
    }
    
    // MARK: - IBActions
    
    @IBAction func demoUserFileStorage(sender: UIButton){
        let storyboard = UIStoryboard(name: "UserFiles", bundle: nil)
        let viewController = storyboard.instantiateViewControllerWithIdentifier("UserFiles")
        navigationController!.pushViewController(viewController, animated: true)
    }
    
    @IBAction func demoUserSettings(sender: UIButton){
        let storyboard = UIStoryboard(name: "UserSettings", bundle: nil)
        let viewController = storyboard.instantiateViewControllerWithIdentifier("UserSettings")
        navigationController!.pushViewController(viewController, animated: true)
    }
}
