UITextView ডিফল্টভাবে স্ক্রোলেবল যদি টেক্সট হাইটের চেয়ে বড় হয় এবং scrolling enabled থাকে।
১. স্টোরিবোর্ড থেকে
- Object Library থেকে TextView ড্র্যাগ করুন।
- Height constraint দিন।
- Attribute Inspector-এ "Scrolling Enabled" এবং "User Interaction Enabled" চেক করুন।

২. প্রোগ্রাম্যাটিক্যালি
let tx = UITextView() tx.isScrollEnabled = true tx.isUserInteractionEnabled = true tx.frame = CGRect(x: 10, y: 10, width: self.view.frame.width, height: 100) tx.text = "Lorem ipsum dolor sit amet... (লম্বা টেক্সট)" self.view.addSubview(tx)
ফলাফল —
