How an iOS share extension communicate with containing app

> ven though an app extension bundle is nested within its containing app’s bundle, the running app extension and containing app have no ...

Wayne

Mismatched bundle IDs error when building iOS sharing extension

When I tried to create an share extension and build it, it keeps showing me`Failed to set plugin placeholders`and `failed to create promi...

Wayne

Set different bundle identifier for different build in Xcode

Like previous post [Use Xcode configuration to store env variables](/posts/419-use-xcode-configuration-to-store-env-variables), we've set...

Wayne

Use Xcode configuration to store env variables

Follow [thoughtbot's article](https://thoughtbot.com/blog/let-s-setup-your-ios-environments) but don't name the class `Environment` bec...

Wayne

Perform mutation with SwiftUI and Apollo client with HTTP token authentication

首先是 Editor View 的部分, Use `@Binding` 關鍵字 ``` // // PostEditor.swift // ios-swift // // Created by Wayne on 2020/3/22. // Copyright © ...

Wayne

How to use SwiftUI with ViewController

[上一篇文章](/posts/412-how-to-make-multiline-textfield-in-swiftui)為了要實現 multiline text field 結果發現 SwiftUI 並沒有所謂 MultilineTextField 這種東西,想要實現就...

Wayne

How to make multiline TextField in SwiftUI

SwiftUI 根本就是半殘狀態嘛,靠北連個 multiline TextField 都做不到,還得自己用 `UITextView` 客製化,見 https://stackoverflow.com/questions/56471973/how-do-i-create-a-m...

Wayne

SwiftUI TextField doesn't support String? type binding, how to fix

## Problem Currently SwiftUI doesn't support `String?` type binding for TextField, it only support `String`, so the following code will ...

Wayne

Use Apollo (GraphQL) with SwiftUI

This [apollo-ios plugin](https://github.com/apollographql/apollo-ios) let you able to use apollo client to fetch GraphQL API easily, howe...

Wayne

Disable App Transport Security when developing iOS locally

When you see the following warning: ``` App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure...

Wayne

Xcode Storyboard and NSCoder (Codable in swift)

.plist file 是一個 xml 格式的文件,意思是 Property List Swift 可以用 Codable protocol 來處理這類文件 而 Xcode 的 Storyboard 也是類似的方式處理 View,只是用的是 OC 的 NSCoder ...

Wayne

iOS 在 screens 之間傳資料

所謂 screens 之間就是 ViewControllers 之間,這裡討論的是 A screen 叫出了 B screen,但 B screen 想要送資料回 A screen 時該怎麼做。 通常如果是 A controller contains B contro...

Wayne