Close Menu
  • Home
  • AI
  • Big Data
  • Cloud Computing
  • iOS Development
  • IoT
  • IT/ Cybersecurity
  • Tech
    • Nanotechnology
    • Green Technology
    • Apple
    • Software Development
    • Software Engineering

Subscribe to Updates

Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

    What's Hot

    Quantum Magazine Issue 2

    November 22, 2025

    Today’s NYT Connections: Sports Edition Hints, Answers for Nov. 22 #425

    November 22, 2025

    The cost of thinking | MIT News

    November 22, 2025
    Facebook X (Twitter) Instagram
    Facebook X (Twitter) Instagram
    Big Tee Tech Hub
    • Home
    • AI
    • Big Data
    • Cloud Computing
    • iOS Development
    • IoT
    • IT/ Cybersecurity
    • Tech
      • Nanotechnology
      • Green Technology
      • Apple
      • Software Development
      • Software Engineering
    Big Tee Tech Hub
    Home»iOS Development»swift – iOS 26: UIScrollView topEdgeEffect not working?
    iOS Development

    swift – iOS 26: UIScrollView topEdgeEffect not working?

    big tee tech hubBy big tee tech hubNovember 20, 2025042 Mins Read
    Share Facebook Twitter Pinterest Copy Link LinkedIn Tumblr Email Telegram WhatsApp
    Follow Us
    Google News Flipboard
    swift – iOS 26: UIScrollView topEdgeEffect not working?
    Share
    Facebook Twitter LinkedIn Pinterest Email Copy Link


    I am trying to use the topEdgeEffect API in iOS 26, but even setting the effect style to “.soft” does not work:

    class ViewController: UIViewController {
    
      var scrollView: UIScrollView!
    
      override func viewDidLoad() {
        super.viewDidLoad()
        
        // Create and configure UIScrollView
        scrollView = UIScrollView()
        scrollView.translatesAutoresizingMaskIntoConstraints = false
        scrollView.topEdgeEffect.style = .soft // <- This should work
        view.addSubview(scrollView)
        
        // Pin scrollView to fill the whole view
        NSLayoutConstraint.activate([
          scrollView.leadingAnchor.constraint(equalTo: view.leadingAnchor),
          scrollView.trailingAnchor.constraint(equalTo: view.trailingAnchor),
          scrollView.topAnchor.constraint(equalTo: view.topAnchor),
          scrollView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
        ])
        
        // Create label with multiline text
        let label = UILabel()
        label.translatesAutoresizingMaskIntoConstraints = false
        label.numberOfLines = 0
        label.text = """
    Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
    (More long text)
    """
    
        // Add label to scrollView
        scrollView.addSubview(label)
        
        // Constraints to make label fill scrollView width and define content height
        NSLayoutConstraint.activate([
          label.leadingAnchor.constraint(equalTo: scrollView.leadingAnchor),
          label.trailingAnchor.constraint(equalTo: scrollView.trailingAnchor),
          label.topAnchor.constraint(equalTo: scrollView.topAnchor),
          label.bottomAnchor.constraint(equalTo: scrollView.bottomAnchor),
          label.widthAnchor.constraint(equalTo: scrollView.widthAnchor) // fix width to scrollView width
        ])
      }
    }
    

    Example

    Any help is appreciated! Running on Xcode 16.1.0 and an iOS 26.1 Simulator.



    Source link

    iOS Swift topEdgeEffect UIScrollView working
    Follow on Google News Follow on Flipboard
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Copy Link
    tonirufai
    big tee tech hub
    • Website

    Related Posts

    ios – Apple Mail messages disappeared after IMAP deletion + local move failure (no disk space) – emlx files still exist but appear empty

    November 21, 2025

    IOS setup in flutter firebase

    November 19, 2025

    flutter – Firebase App Check debug token not showing on iOS (shows fine on Android)

    November 18, 2025
    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    Quantum Magazine Issue 2

    November 22, 2025

    Today’s NYT Connections: Sports Edition Hints, Answers for Nov. 22 #425

    November 22, 2025

    The cost of thinking | MIT News

    November 22, 2025

    Celebrating Excellence: Cisco Customer Achievement Awards APJC 2025 Winners Announced!

    November 22, 2025
    About Us
    About Us

    Welcome To big tee tech hub. Big tee tech hub is a Professional seo tools Platform. Here we will provide you only interesting content, which you will like very much. We’re dedicated to providing you the best of seo tools, with a focus on dependability and tools. We’re working to turn our passion for seo tools into a booming online website. We hope you enjoy our seo tools as much as we enjoy offering them to you.

    Don't Miss!

    Quantum Magazine Issue 2

    November 22, 2025

    Today’s NYT Connections: Sports Edition Hints, Answers for Nov. 22 #425

    November 22, 2025

    Subscribe to Updates

    Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

      • About Us
      • Contact Us
      • Disclaimer
      • Privacy Policy
      • Terms and Conditions
      © 2025 bigteetechhub.All Right Reserved

      Type above and press Enter to search. Press Esc to cancel.