Closed ShotaKashihara closed 4 years ago
ref: https://sarunw.com/posts/swift-documentation/
⌥ – Option + click
ででるコメントにはMarkUpが使えるよ
/// Document 構造体だよ
struct Document {
...
}
※ ちなみに //
では Summary にはでません
/**
Document 構造体だよ
改行するとDiscussionになる
*/
/**
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
*/
その他、いろいろなFieldがあるそうです。
先日 @ShotaKashihara が使いました 🎉 https://github.com/wantedly/yashima-ios/pull/6899#discussion_r354182104
前回説明だけで終わったので実演したいと思います。
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
個人で進めているiOSアプリのUIデザインを少し進めたので、フィードバック欲しい 💡
年末年始の時間を使って完成させる 💪
⚠️ 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