Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Swiftのちょっとうれしい構文
tiking
December 03, 2020
Education
0
44
Swiftのちょっとうれしい構文
部内LTではなした内容です。
急ごしらえで作った内容なので間違いとかアドバイスなどがあればどんどん
https://twitter.com/tikin0716
までよろしくお願いします。
tiking
December 03, 2020
Tweet
Share
More Decks by tiking
See All by tiking
デザインシステムっていいな
tiking76
0
67
GraphQL 入門
tiking76
0
690
みんなTCAって 知ってる?ver2.0
tiking76
1
210
みんなTCAって知ってる?
tiking76
0
580
最近きてるかもって思ってるデザイン
tiking76
0
130
p1assさんを作ろうと試みました
tiking76
0
75
PRのときに使われがちな略語のやつ
tiking76
0
77
swiftでもグラフ書いてみたくない??
tiking76
0
85
コードでUI構築してみた
tiking76
0
46
Other Decks in Education
See All in Education
自己紹介 / who-am-i
yasulab
2
2.3k
Course Review - Lecture 12 - Next Generation User Interfaces (4018166FNR)
signer
PRO
0
620
Baparekraf Developer Day 2022 - Back-End (Rendra Toro)
dicodingevent
0
420
TRPGからふりかえりを学ぶ~アジャイル以外のふりかえり文化~
shirayanagiryuji
0
950
OpenStreetMap概要説明 / Introducing OpenStreetMap
barsaka2
0
170
2022年4月NPO法人Waffle概要資料
ivy_waffle
0
690
Data Management and Analytics Specialisation
signer
PRO
0
370
Sähköiset kyselyt, kokeet ja arviointi
matleenalaakso
1
12k
Gesture-based Interaction - Lecture 8 - Next Generation User Interfaces (4018166FNR)
signer
PRO
0
640
Lancers Digital Academy Service Guide
lancers_pr
0
9.6k
フォトディレクトリってなに?〜みんなで写真をアップしてみよう!〜|WordPress Mega Meetup Japan 2022 Spring
shuseitoda
0
140
Lisätty todellisuus opetuksessa
matleenalaakso
0
990
Featured
See All Featured
Art Directing for the Web. Five minutes with CSS Template Areas
malarkey
196
9.4k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
151
12k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
3
440
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
119
28k
Designing with Data
zakiwarfel
91
3.9k
Imperfection Machines: The Place of Print at Facebook
scottboms
253
11k
The Web Native Designer (August 2011)
paulrobertlloyd
74
1.9k
Building Applications with DynamoDB
mza
83
4.6k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
103
16k
No one is an island. Learnings from fostering a developers community.
thoeni
9
1.1k
Raft: Consensus for Rubyists
vanstee
126
5.4k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
12
890
Transcript
Swiftのちょっとうれしい 構文 tiking Zli部内LT 2020/12/3
Readme name : 舘佳紀 colleage : 会津大学学部3年 さーくる : Zli所属です
Handlename : チキング 好きな言語 swift twitter @tikin0716 gitHub tiking76
みなさんSwiftかいてますか??
windowsしか持ってないから開発できない…
None
None
Optional型 存在しないかもしれない値を扱う時に使う と便利なもの nil(他の言語ではnull)とかの心配がない
guard let ・if let どっちも条件分岐に関する構文です。 代入して評価します。違いは最初の分岐に関してtrueのものを書くのかfalseのものを 書くかだけです。 使い分けとしては即時リターンしたいなって時はguard let使ってるって感じです
None
Swiftだけならwindows・Linuxでも扱えます!!
docker Imageもあります
docker pullするだけで動かせるようにしました
参考 AWSがmacOSをクラウド上で利用可能にする「Amazon EC2 Mac Instances」を発表 guard letとif letの使い分け https://hub.docker.com/r/tiking76/swiftapiclient
ここまでありがとうございました