your3i’s blog

iOSエンジニア。頑張る⚉

2018-10-01から1ヶ月間の記事一覧

QRコードスキャンぽいUIの作り方

QRコードスキャンぽいUIとは こういう感じの、dimming viewがあって、真ん中空いてて、四角にちょっとそれぽいものがあるUIである。 ちょっと難しいポイント 真ん中の空いてる正方形 角丸じゃないけど、4つのあれ 作る 画面のビューの構成 自分がこういう画…

iOS Custom Presentation & Transition (4) 〜Interactive Transition〜

iOS

はじめに いよいよラストになった!!ついつい長引いちゃった。 一応頭の方で説明した方がいいかな。 この記事の内容は以下の記事と繋いている、そして今回はPart4でラストだ。iOS Custom Presentation & Transition (1) 〜コード一行もない編〜 - your3i’s …

iOS Custom Presentation & Transition (3) 〜Custom Transition〜

iOS

はじめに iOS Custom Presentation & Transition (1) 〜コード一行もない編〜 - your3i’s blog iOS Custom Presentation & Transition (2) 〜UIPresentationControllerでカスタムモーダルを作る〜 - your3i’s blog1は作るものの紹介と大体の概念を説明し、…

CodingKeyとKeyDecodingStrategyのconvertFromSnakeCase一緒に使う

概要 iOS9からAPIのリスポンスとアプリモデルの間のマッピング用のCodable(Decodable + Encodable = Codable)が使えるようになった。CodingKeyはdecodeとencodeに必要なキーを定義するとき使うプロトコルである。そして、convertFromSnakeCaseはdecodeすると…

iOS Custom Presentation & Transition (2) 〜UIPresentationControllerでカスタムモーダルを作る〜

iOS

UIPresentationControllerの役割 presentation controllerオブジェクトは、presented view controllerを管理する役割を持ってる。そして、presented view controller表示されてるときのスタイルを指定するなど。 ドキュメントに書いたやること Set the size …