Skip to content

非公式本サイトは非公式の日本語ドキュメントであり、Cloudflare 公式サイトではありません。最新情報はdevelopers.cloudflare.comをご確認ください。

RtkLabel

最終更新 Markdown で表示Agent セットアップ

RTK Design System のデザイントークンの色とフォントを使うテーマ付きラベルです。

イニシャライザーのパラメーター

パラメーター 必須 デフォルト 説明
appearance RtkTextAppearance - フォントと色のテキスト外観設定

使用例

基本的な使い方

import RealtimeKitUI

let label = RtkLabel()
label.text = "Meeting Room"
view.addSubview(label)

外観をカスタムする場合

import RealtimeKitUI

let appearance = RtkTextAppearance(
    font: UIFont.systemFont(ofSize: 16, weight: .semibold),
    textColor: .white
)
let label = RtkLabel(appearance: appearance)
label.text = "Meeting Room"
view.addSubview(label)

役に立ちましたか?