TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>

SOLVED: Day 24 100 days of swiftui question about challenge 3

Forums > 100 Days of SwiftUI

Hello , I am doing day 24 of this course. I have question:

3. Create a custom ViewModifier (and accompanying View extension) that makes a view have a large, blue font suitable for prominent titles in a view.

do I have to apply it somewhere? where?

https://i.imgur.com/cMdSZsn.png

I applied it to Germany Title in this case. Is this correct?

please help

2      

@Bnerd  

The exercise is to return a custom modifier that will return a Text with Large Blue fonts, you have achieved it :)

2      

Well done!

To test your new custom modifier, update your design and apply the modifier to another display string.

For example, add the modifier to the string "Tap the flag of".

Does the one modifier completely change the look of the text? Is it large and blue?

You can see how the customer modifier allows you to encapsulate your app's look and feel into reusable components.

Keep Coding!

2      

Yes, it works everywhere :) Thank you

2      

Hacking with Swift is sponsored by String Catalog.

SPONSORED Get accurate app localizations in minutes using AI. Choose your languages & receive translations for 40+ markets!

Localize My App

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.