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/10/08 19:30~20:30 #70

Closed ngtk closed 4 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

69

ngtk commented 5 years ago

Redux-like state container in SwiftUI

https://mecid.github.io/2019/09/18/redux-like-state-container-in-swiftui/

hiranodept commented 4 years ago

Xcode11.1 Release notes, Known Issues

There is an issue with UITabBarController where decoding an instance from a storyboard will create some extra views at the left end of the screen. Developers may remove these by applying a workaround. (55310448)

Workaround: To remove the extraneous views from Storyboard, create a subclass of a UITabBarController and add the following snippet in the class’s init(coder:) method:

class WorkaroundTabBarController: UITabBarController {

    required init?(coder: NSCoder) {
        super.init(coder: coder)

        // This must be run immediately after the call to super.
        if (tabBar.subviews.count > 1) {
            tabBar.subviews[0].isHidden = true
        }
    }
}

これ👇良くわからない

UITableViewCell labels in storyboards and XIB files do not use localized string values from the strings file at runtime. (52839404)

ref: https://developer.apple.com/documentation/xcode_release_notes/xcode_11_1_release_notes

ShotaKashihara commented 4 years ago

Error Handling in Swift Combine Framework

https://www.vadimbulavin.com/error-handling-in-swift-combine-framework/?utm_campaign=iOS%2BDev%2BWeekly&utm_medium=web&utm_source=iOS%2BDev%2BWeekly%2BIssue%2B424

let network404Publisher = Result<Void, NetworkError>.Publisher(._404)

/// replaceError(with:)
let r1: Result<Void, Never>.Publisher = network404Publisher
    .replaceError(with: ())

/// map(_:)
let r2: Result<Int, NetworkError>.Publisher = network404Publisher
    .map { _ -> Int in
        1
    }

/// mapError(_:)
let r3: Result<Void, とあるError>.Publisher = network404Publisher
    .mapError { networkError -> とあるError in
        switch networkError {
        case ._404:
            return .invalidEmail(message: "404だよ")
        }
    }

/// catch(_:)
let r4: Result<String, とあるError>.Publisher = network404Publisher
    .catch { networkError -> Result<String, とあるError>.Publisher in
        return .init(.invalidEmail(message: "なんかのエラー"))
}
jiro commented 4 years ago

combineを利用したReactorKit実装

https://github.com/ReactorKit/ReactorKit/tree/combine

imjn commented 4 years ago

Xcode11.2 beta release noteより

Fixed an issue with UITabBarController where decoding an instance from a storyboard would create extra views at the left end of the screen. If you worked around this issue on Xcode 11.0 or 11.1 by creating a subclass of UITabBarController and hiding extra views in the initializer you can remove the workaround. (55310448)

https://developer.apple.com/documentation/xcode_release_notes/xcode_11_2_beta_release_notes