Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Swift Packagesでライブラリを自作しよう / create_swift_library

uhooi
October 15, 2021

Swift Packagesでライブラリを自作しよう / create_swift_library

Mobile Act ONLINE #6
https://mobileact.connpass.com/event/225305/

## 参考リンク

- Swift Packagesで自作ライブラリを作ろう by uhooi | トーク | iOSDC Japan 2021 #iosdc - fortee.jp
https://fortee.jp/iosdc-japan-2021/proposal/6f056fa7-2711-4132-af3a-90a6074aaead

- Swift Packagesでライブラリを自作する方法 - Qiita
https://qiita.com/uhooi/items/2f36b85f5f41cbd35189

- Swift Packages | Apple Developer Documentation
https://developer.apple.com/documentation/swift_packages

- 実践 iOS オープンソースプロジェクトの始め方 - Speaker Deck
https://speakerdeck.com/niw/shi-jian-ios-opunsosupuroziekutofalseshi-mefang

- twitter/TwitterTextEditor: A standalone, flexible API that provides a full-featured rich text editor for iOS applications.
https://github.com/twitter/TwitterTextEditor

- uhooi/swift-http-client: Communicate via HTTP easily in Swift.
https://github.com/uhooi/swift-http-client

uhooi

October 15, 2021
Tweet

More Decks by uhooi

Other Decks in Programming

Transcript

  1. $ swift package init \ --name UhooiKit \ --type library

    $ open Package.swift (ウィンドウを閉じる)
  2. $ swift package init \ --name UhooiKit \ --type library

    $ open Package.swift (ウィンドウを閉じる)
  3. ライブラリ public struct public private set var public init {

    ( ) = () { } } Uhooi text "┌|▼▼|┘<I'm uhooi." サンプル import import class override func super let UIKit UhooiKit : UIViewController { viewDidLoad() { . () uhooi = () (uhooi. ) } } ViewController viewDidLoad Uhooi print text
  4. サンプル import import class override func super let UIKit UhooiKit

    : UIViewController { viewDidLoad() { . () uhooi = () (uhooi. ) } } ViewController viewDidLoad Uhooi print text ライブラリ public struct public private set var public init { ( ) = () { } } Uhooi text "┌|▼▼|┘<I'm uhooi." 実行
  5. コンソール ┌|▼▼|┘<I'm uhooi. サンプル import import class override func super

    let UIKit UhooiKit : UIViewController { viewDidLoad() { . () uhooi = () (uhooi. ) } } ViewController viewDidLoad Uhooi print text