From ff7a8b2fc3a3ece9640271b2094c770f2aa0bcea Mon Sep 17 00:00:00 2001 From: Enes Karaosman Date: Wed, 3 Feb 2021 08:38:58 +0300 Subject: [PATCH] [MOD] Platform based modifiers section added to readme. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 2498d4b..6f36d00 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,16 @@ Table of Contents # Extensions +### Platform based modifiers + +```swift +AwesomeView() + .iOS { $0.background(Color.gray) } + .macOS { $0.background(Color.green) } + .tvOS { $0.background(Color.blue) } + .watchOS { $0.background(Color.red) } +``` + # Views ## Image Picker