Skip to content

非公式 / UnofficialCloudflare, Inc. 非提携。アカウント情報は入力しないでください。Not affiliated with Cloudflare, Inc. Do not enter Cloudflare credentials here.Official docsこのサイトについてプライバシー

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)

役に立ちましたか?