TextView内の文字周りにマージンを入れる方法がわからなかったので、解決方法を記録したいと思いました。
textContainerInset
を使う
qiita.rb
TextView.textContainerInset = .init(top: 16, left: 16, bottom: 16, right: 16)
このように、引数の数値を変えてあげれば解決できました。
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 3 years have passed since last update.
TextView内の文字周りにマージンを入れる方法がわからなかったので、解決方法を記録したいと思いました。
textContainerInset
を使う
TextView.textContainerInset = .init(top: 16, left: 16, bottom: 16, right: 16)
このように、引数の数値を変えてあげれば解決できました。
Register as a new user and use Qiita more conveniently
Go to list of users who liked