Cannot call value of non-function type 'String'

前端 未结 6 1810
情书的邮戳
情书的邮戳 2021-01-17 07:35

I\'m trying to pass the ILTItem variable into my ILTViewController, triggered by AppDelegate.swift when the user launches my app via a deeplink.

The code I have erro

6条回答
  •  滥情空心
    2021-01-17 08:01

    The error is telling you that you are trying to call a String instead of a method (struct constructor in your case). You've probably declared a String variable named ILT (uppercase) somewhere else and that's why it fails.

    Your posted code works fine so the error must be somewhere else in your code.

提交回复
热议问题