TextField โŸฉ styles

.textFieldStyle(_:) ๆ–นๆณ•ไธๆ˜ฏๅช่ƒฝ็”จๅœจ TextField ไธŠ๏ผŒๅฎƒไนŸๅฏไปฅ็”จๅœจ parent view ไธŠ้ขโ—๏ธ

// โญ๏ธ parent view ไฝฟ็”จ .textFieldStyle() ๆ‰ไธๆœƒๅคฑๅŽป contextใ€‚
view.textFieldStyle(.roundedBorder)

// โญ๏ธ text field ๅฏไฝฟ็”จ custom method๏ผŒไฝฟ่ชžๆ„ๆ›ด็ฐกๆฝ”ใ€‚
textField.style(.roundedBorder)    // custom method

๐Ÿ‘‰ see: textField.style(_:)

Last updated