wantedly / ios_night

Let's talk about iOS development -- iOS Night 📱🌙 You might apply to this meetup from
https://www.wantedly.com/companies/wantedly/projects
18 stars 0 forks source link

2019/12/10 19:30~20:30 #78

Closed ShotaKashihara closed 4 years ago

ShotaKashihara commented 4 years ago

⚠️ This repository is public. / 公開リポジトリです。

Why

Where

Pearl Jam (Subject to change)

5F, MG Shirokanedai Building (Wantedly, Inc. Tokyo HQ)

Who

You are working for Wantedly? Sure, you can join anytime. If not, you need to contact us first. Or, you can "want to visit" the meetup, which you can find in www.wantedly.com/companies/wantedly/projects.

What

You write topics like below contents and we talk about these on the meetup. Every participant needs to write one topic at least.

Also, you can find new topics from the newsletters:

How

         ・・・

参加者は開催までに話したいことを少なくとも1トピックをコメントしましょう。 ネタ被りを避けるために、まずはタイトルだけでコメントすることを推奨します。 より多くの学びを得るためにどんな内容でもアウトプットを歓迎します!😊

cc/ @wantedly/ios

Edit this template

Previous issue

https://github.com/wantedly/ios_night/issues/77

hiranodept commented 4 years ago

Swift Documentation

ref: https://sarunw.com/posts/swift-documentation/

Quick Help Popup

Summary and Discussion

コメントにはMarkUpが使えるよ

/// Document 構造体だよ

struct Document {
  ...
}

スクリーンショット 2019-12-10 15 14 23

※ ちなみに // では Summary にはでません

/**
 Document 構造体だよ

 改行するとDiscussionになる
 */

スクリーンショット 2019-12-10 14 57 58

/**
 Document 構造体だよ

 改行するとDiscussionになる

 # H1
 先頭に#をつけるとタイトルぽくなる

 # Codeの場合
 ``(本当は`を3つ)
 if view is T {
     return view as? T
 }
 ``

 # リスト

 1. aaaaa
 2. bbbb
 3. cccc

  * xxxx
  * zzzz

  - qqqq
  - mmmm

   nest
   - 11111
     - 2222
     - 3333
   - 4444
     - 5555
 */

スクリーンショット 2019-12-10 15 09 20

その他、いろいろなFieldがあるそうです。

先日 @ShotaKashihara が使いました 🎉 https://github.com/wantedly/yashima-ios/pull/6899#discussion_r354182104

sorakoro commented 4 years ago

UIViewController Previewを実演する

前回説明だけで終わったので実演したいと思います。

ShotaKashihara commented 4 years ago

SE-0268 (Review #2) — Review didSet Semantics

https://forums.swift.org/t/se-0268-review-2-review-didset-semantics/31396

didSet {...} で使われている暗黙的な変数oldValue を暗黙ではなく明示的にしようというプロポーザルが出ていた

class Foo {
  var bar: Int {
    didSet { print("didSet called") }
  }

  init(bar: Int) { self.bar = bar }
}

let foo = Foo(bar: 0)
// didSet 内で oldValue を参照していないにも関わらず、
// 内部的に oldValue をフェッチしている
foo.bar = 1 // "didSet called"

メリット1: 無駄な参照コストをなくせる メリット2: https://bugs.swift.org/browse/SR-11297 のような冗長な記述がなくなる デメリット1: 暗黙的に変数宣言されなくなるので didSet(oldValue) {...} のように書く必要がある


現在のところ、コアチームの反応は良好な様子

スレッドを呼んでいて個人的にヒットしたレス https://forums.swift.org/t/se-0268-refine-didset-semantics/30049/21

jiro commented 4 years ago

個人で進めているiOSアプリのUIデザインを少し進めたので、フィードバック欲しい 💡

年末年始の時間を使って完成させる 💪

- ノート詳細画面 - 局面の表示 - 局面の操作 - メモの表示/編集 - ミュージックアプリとメモアプリを混ぜたようなUIを考えている - 局面とメモの表示を両立させたくて、半モーダルのUIを採用してみた - 1つの局面に対応するメモは1つだが、その関係性がわかりづらくなっていないかが懸念 | 📸| | :---: | | |
takashings commented 4 years ago

Tim in Japan!!

https://twitter.com/tim_cook