目录
目录README.md

AirKit

AirPlay SwiftUI Views

Add to App

  • File / Swift Packages / Add Package Dependecy
  • Search for AirKit by hexagons
  • Add Up to Next Major from 1.0.0

Example

import SwiftUI
import AirKit

struct ContentView: View {
    var body: some View {
        Text("Hello AirPlay")
            .airPlay()
    }
}

You can also Air a View that is not on the main screen:

Air.play(AnyView(Image(systemName: "airplayvideo")))

To listen to the connection call:

Air.connection { connected in
    let isAirPaying: Bool = connected
}

Add to Package

.package(url: "https://github.com/hexagons/AirKit.git", from: "1.0.0")
关于
58.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号