SwiftUI: Value of type ‘some View’ has no member ‘presentation’


Do you face this error Value of type 'some View' has no member 'presentation'. Solution is quite simple..


You are working with an old version of the tutorial. The .presentation modifier was from the SwiftUI beta days and was removed and replaced for each usage as follow:

Here is example for alert:

You should end up with something similar to this:

iOS Elements

You can find also the whole implementation in my UI kit — Download below.

Use discount code MOLCIK to get iOS Elements for $29.70 (70% off) 


Buy me a coffeeOut of coffee 😱, please help!