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/06/11 19:30~20:30 #56

Closed ngtk closed 5 years ago

ngtk commented 5 years ago

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/55

hiranodept commented 5 years ago

Data Flow Through SwiftUI

見るべきセッション動画 https://twitter.com/hirothings/status/1136677479316197378?s=21 このセッションSwiftUIの@State, @Binding の使い分けと なぜViewControllerが無くなったのかまで解説されててめっちゃ良かった。

https://developer.apple.com/videos/play/wwdc2019/226/


@State @Binding @Environment @EnvironmentObject 今のところ使い分けがわかっていない。

https://developer.apple.com/documentation/swiftui/state_and_data_flow

k-kohey commented 5 years ago

SwiftUIにてよく見るサンプルコードへの疑問

下記に示すようなコードに対し2つの疑問を持った. ① someとは? ② bodyにreturn文が無いのはなぜ?

① について Opaque Result Typeと呼ばれるもの. これはリバースジェネリクス(引数ではなく返り値の型をジェネリクスにしたもの)のシンタックスシュガーである.用いることによって1)具体的な型を隠蔽,2)パフォーマンスを向上する事が出来る. 型が隠蔽されている例: https://twitter.com/inamiy/status/1135739529363464212?s=20 参考: https://qiita.com/koher/items/338d2f2d0c4731e3508f

② について Swift5.1からメソッド内(クロージャ内?)にて評価する式が1つであれば,return文を省略できるようになった. 例: func addHonorific(_ name: String) -> String { name + "さん" } 参考: https://github.com/apple/swift-evolution/blob/master/proposals/0255-omit-return.md

struct PlayerView : View {
 var body: some View {
   VStack {
     Text("Hello World")
     Text("ハローワールド")
   }
 }
} 
jiro commented 5 years ago

SwiftUIリンク集

Apple公式の情報、コミュニティ発信の情報のそれぞれについて整理されている。 書籍やソースコード、動画など多数。

Juanpe/About-SwiftUI


いくつかピックアップ

ShotaKashihara commented 5 years ago

パーティションを切って Catalina をインストールする方法 ボリュームを追加して Catalina をインストールする方法

Qiitaがあった https://qiita.com/SCENEE/items/c3228eae672f0f799256

お蔵入りになったスクショたち 1. ![image](https://user-images.githubusercontent.com/26145133/59261768-0ab3d580-8c79-11e9-84a7-018811f96305.png) ![image](https://user-images.githubusercontent.com/26145133/59261895-320aa280-8c79-11e9-933a-eeae5d47efca.png) ![image](https://user-images.githubusercontent.com/26145133/59261905-3767ed00-8c79-11e9-8448-6da29aa0ffe7.png) ![image](https://user-images.githubusercontent.com/26145133/59261930-3fc02800-8c79-11e9-8bad-50ee443971ce.png) ![image](https://user-images.githubusercontent.com/26145133/59261944-451d7280-8c79-11e9-9005-70ff034c8d97.png) ![image](https://user-images.githubusercontent.com/26145133/59261959-4ea6da80-8c79-11e9-8b34-16e394b2bcd6.png) ## https://developer.apple.com/download/ ![image](https://user-images.githubusercontent.com/26145133/59262015-68482200-8c79-11e9-8d28-a534ad576b4f.png) ![image](https://user-images.githubusercontent.com/26145133/59262034-6f6f3000-8c79-11e9-9a04-5a81529e1285.png) ![image](https://user-images.githubusercontent.com/26145133/59262052-75651100-8c79-11e9-96df-6c4fb23c92ed.png) ![image](https://user-images.githubusercontent.com/26145133/59262095-8a41a480-8c79-11e9-845b-211dbbf27a6c.png) ![image](https://user-images.githubusercontent.com/26145133/59262535-5a46d100-8c7a-11e9-8cb2-bc96b166c1e5.png) ![image](https://user-images.githubusercontent.com/26145133/59262500-4a2ef180-8c7a-11e9-8c12-48b8d65d51cb.png)
jiro commented 5 years ago

The Swift 5.1 features that power SwiftUI’s API https://www.swiftbysundell.com/posts/the-swift-51-features-that-power-swiftuis-api