Skip to content

Instantly share code, notes, and snippets.

View shinjism's full-sized avatar

早井 慎二 shinjism

View GitHub Profile
@shinjism
shinjism / ContentView.swift
Created April 3, 2023 07:15 — forked from takoikatakotako/ContentView.swift
画面を横向きにしてプレビューを出す
import SwiftUI
struct ContentView: View {
var body: some View {
Text("Welcome to swiswiswift.com")
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
@shinjism
shinjism / AppDelegate.swift
Last active May 2, 2018 03:59
iOSデバイスからS3へzipアップロード
import UIKit
import AWSCognito
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
@shinjism
shinjism / CameraViewController.swift
Last active April 9, 2020 13:09
QRCode scanner in Swift 4.0
import Foundation
import AVFoundation
import UIKit
class CameraViewController: UIViewController, AVCaptureMetadataOutputObjectsDelegate {
// カメラやマイクの入出力を管理するオブジェクトを生成
private let session = AVCaptureSession()
override func viewDidLoad() {