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 SwiftUI | |
enum ModalViewState: Equatable { | |
case closed | |
case original | |
case custom(height: CGFloat) | |
case dragging(height: CGFloat?, location: CGPoint, translation: CGSize) | |
} |
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
{ | |
"name": "functions", | |
"requires": true, | |
"lockfileVersion": 1, | |
"dependencies": { | |
"@babel/code-frame": { | |
"version": "7.0.0", | |
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0.tgz", | |
"integrity": "sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA==", | |
"dev": true, |
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
// AccoutKitの初期化 | |
let accountKit: AKFAccountKit = AKFAccountKit(responseType: .authorizationCode) | |
// AccountKitを起動して電話番号認証を行う | |
func login() { | |
let inputStatus: String = UUID().uuidString | |
let viewController: AKFViewController = self.accountKit.viewControllerForPhoneLogin(with: nil, state: inputStatus) as! AKFViewController | |
prepareLoginViewController(viewController: viewController) | |
self.present(viewController as! UIViewController, animated: true, completion: nil) |
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 "ViewController.h" | |
@import CoreBluetooth; | |
@interface ViewController () <CBPeripheralManagerDelegate> | |
@property (nonatomic) CBPeripheralManager *peripheralManager; | |
@end | |
@implementation ViewController |
NewerOlder