├── README.md └── tags ├── WidgetKit.md └── SwiftUI.md /README.md: -------------------------------------------------------------------------------- 1 | # Stack Overflow Answers Map 2 | A collection of useful answers from Stack Overflow. 3 | 4 | ## Tags 5 | 6 | ### [SwiftUI](https://github.com/pawello2222/SOAnswers/blob/main/tags/SwiftUI.md) 7 | 8 | ### [WidgetKit](https://github.com/pawello2222/SOAnswers/blob/main/tags/WidgetKit.md) 9 | -------------------------------------------------------------------------------- /tags/WidgetKit.md: -------------------------------------------------------------------------------- 1 | # WidgetKit 2 | 3 | ### Basics 4 | - [Share data between main App and Widget in SwiftUI for iOS 14](https://stackoverflow.com/q/63922032/8697793) 5 | - [iOS WidgetKit: remote images fails to load](https://stackoverflow.com/q/63086029/8697793) 6 | - [Where to add observers in SwiftUI widget](https://stackoverflow.com/q/64199749/8697793) 7 | - [How to read files created by the app by iOS WidgetKit?](https://stackoverflow.com/q/63816153/8697793) 8 | - [Xcode 12 iOS 14 Widget without SwiftUI](https://stackoverflow.com/q/62528836/8697793) 9 | 10 | ### Layout 11 | - [iOS 14 Widgets: How to create different layouts for each sizes of widgets?](https://stackoverflow.com/q/63246450/8697793) 12 | - [How to get different data for each widget](https://stackoverflow.com/q/65204164/8697793) 13 | - [SwiftUI iOS14 Widget - Create create multi layout with the same WidgetFamily](https://stackoverflow.com/q/64254736/8697793) 14 | 15 | ### Refreshing 16 | - [How to refresh Widget data?](https://stackoverflow.com/q/63976424/8697793) 17 | - [How to change view on midnight in WidgetKit, SwiftUI?](https://stackoverflow.com/q/64209612/8697793) 18 | - [Updating time text label each minute in WidgetKit](https://stackoverflow.com/q/64053733/8697793) 19 | - [SwiftUI iOS 14 Widget CountDown](https://stackoverflow.com/q/64155800/8697793) 20 | - [Stopping a SwiftUI Widget's relative textfield counter when hits zero?](https://stackoverflow.com/q/64595708/8697793) 21 | 22 | ### Deep links 23 | - [Perform a deeplink from SwiftUI widget on tap](https://stackoverflow.com/q/64230355/8697793) 24 | - [How to perform deeplink from widget to parent app in Objective C](https://stackoverflow.com/q/64870208/8697793) 25 | - [Detect app launch from WidgetKit widget extension](https://stackoverflow.com/q/63697132/8697793) 26 | - [When a widget opened an app, can the app knows the widget size](https://stackoverflow.com/q/64364312/8697793) 27 | 28 | ### Core Data 29 | - [Fetch data from CoreData for iOS 14 widget](https://stackoverflow.com/q/63936425/8697793) 30 | - [How to call WidgetCenter.shared.reloadAllTimelines() when Core Data in CloudKit changes?](https://stackoverflow.com/q/63970726/8697793) 31 | 32 | ### Errors 33 | - [Why do some views appear as a red no entry sign in widgets?](https://stackoverflow.com/q/63135404/8697793) 34 | - [Setting the TimelineProvider refresh interval for Widget](https://stackoverflow.com/q/64010346/8697793) 35 | 36 | ### Intents 37 | - [iOS 14 widget intents](https://stackoverflow.com/q/64959319/8697793) 38 | - [What is this the name of this “Edit Widget” view (for iOS 14 widgets) & how can I define something like this?](https://stackoverflow.com/q/64832674/8697793) 39 | - [How to create Toggle in Intent Configuration in WidgetKit](https://stackoverflow.com/q/64515102/8697793) 40 | - [WidgetKit customize Intent parameters selection](https://stackoverflow.com/q/65109056/8697793) 41 | 42 | ### Unsolved 43 | - [WidgetBundle return widgets based on some logic](https://stackoverflow.com/q/63797991/8697793) 44 | - [How to return a dynamic list of widgets in SwiftUI WidgetBundleBuilder body](https://stackoverflow.com/q/63982831/8697793) 45 | - [SwiftUI Widget DateStyle Custom Format](https://stackoverflow.com/q/64121055/8697793) 46 | -------------------------------------------------------------------------------- /tags/SwiftUI.md: -------------------------------------------------------------------------------- 1 | # SwiftUI 2 | 3 | ## Basics 4 | - [What is the some keyword in Swift(UI)?](https://stackoverflow.com/q/56433665/8697793) 5 | - [What is Content in SwiftUI?](https://stackoverflow.com/q/56833659/8697793) 6 | - [What does the dollar sign do in this example?](https://stackoverflow.com/q/56551131/8697793) 7 | - [What is the role of tag in SwiftUI?](https://stackoverflow.com/q/63322845/8697793) 8 | - [How can I run an action when a state changes?](https://stackoverflow.com/q/56550713/8697793) 9 | - [How to convert UIColor to SwiftUI‘s Color](https://stackoverflow.com/q/56994464/8697793) 10 | - [How do I use UserDefaults with SwiftUI?](https://stackoverflow.com/q/56822195/8697793) 11 | - [How to convert a View (not UIView) to an image?](https://stackoverflow.com/q/57200521/8697793) 12 | - [Include SwiftUI views in existing UIKit application](https://stackoverflow.com/q/56433826/8697793) 13 | - [What is the difference between ObservedObject and StateObject in SwiftUI](https://stackoverflow.com/q/62544115/8697793) 14 | - [What is the difference between @EnvironmentObject and @ObservedObject?](https://stackoverflow.com/q/63343819/8697793) 15 | - [SwiftUI: What is @AppStorage property wrapper](https://stackoverflow.com/q/62562534/8697793) 16 | - [What is Geometry Reader in SwiftUI?](https://stackoverflow.com/q/56729619/8697793) 17 | - [What is difference between GeometryReader and GeometryProxy in SwiftUI?](https://stackoverflow.com/q/62377847/8697793) 18 | - [How to tell SwiftUI views to bind to nested ObservableObjects](https://stackoverflow.com/q/58406287/8697793) 19 | 20 | ### Navigation 21 | - [Programmatically change to another tab in SwiftUI](https://stackoverflow.com/q/62504400/8697793) 22 | - [Hide/show views on button tap - SwiftUI](https://stackoverflow.com/q/64596895/8697793) 23 | - [SwiftUI pass data to subview](https://stackoverflow.com/q/64206186/8697793) 24 | - [SwiftUI - how to avoid navigation hardcoded into the view?](https://stackoverflow.com/q/61304700/8697793) 25 | 26 | ### Keyboard 27 | - [How to hide keyboard when using SwiftUI?](https://stackoverflow.com/q/56491386/8697793) 28 | 29 | ### ViewBuilder 30 | - [What enables SwiftUI's DSL?](https://stackoverflow.com/q/56434549/8697793) 31 | - [SwiftUI list empty state view/modifier](https://stackoverflow.com/q/62398534/8697793) 32 | 33 | ### Modifiers 34 | - [Difference between creating ViewModifier and View extension in SwiftUI](https://stackoverflow.com/q/57411656/8697793) 35 | - [How to apply shadow to interior views in SwiftUI?](https://stackoverflow.com/q/56518868/8697793) 36 | - [SwiftUI - how to override nested offset/position animations?](https://stackoverflow.com/q/65544581/8697793) 37 | 38 | ## Components 39 | 40 | ### NavigationView 41 | - [How to remove the default Navigation Bar space in SwiftUI NavigiationView](https://stackoverflow.com/q/57517803/8697793) 42 | - [How to put a logo in NavigationView in SwiftUI?](https://stackoverflow.com/q/56546213/8697793) 43 | - [SwiftUI Hide TabView bar inside NavigationLink views](https://stackoverflow.com/q/61970939/8697793) 44 | - [SwiftUI update navigation bar title color](https://stackoverflow.com/q/56505528/8697793) 45 | - [Custom back button for NavigationView's navigation bar in SwiftUI](https://stackoverflow.com/q/56571349/8697793) 46 | 47 | ### NavigationLink 48 | - [NavigationView and NavigationLink on button click in SwiftUI?](https://stackoverflow.com/q/57799548/8697793) 49 | - [SwiftUI: How to pop to Root view](https://stackoverflow.com/q/57334455/8697793) 50 | 51 | ### List / ForEach 52 | - [What is the difference between List and ForEach in SwiftUI?](https://stackoverflow.com/q/56535326/8697793) 53 | - [How do I modify the background color of a List in SwiftUI?](https://stackoverflow.com/q/56517904/8697793) 54 | - [How to remove the line separators from a List in SwiftUI without using ForEach?](https://stackoverflow.com/q/56553672/8697793) 55 | - [Remove extra line separators below List in SwiftUI](https://stackoverflow.com/q/56498045/8697793) 56 | - [How to make a SwiftUI List scroll automatically?](https://stackoverflow.com/q/57258846/8697793) 57 | - [How to scroll List programmatically in SwiftUI?](https://stackoverflow.com/q/60855852/8697793) 58 | - [How does onDelete() function handler work in a swiftUI List?](https://stackoverflow.com/q/62741650/8697793) 59 | - [Deleting list elements from SwiftUI's List](https://stackoverflow.com/q/63079221/8697793) 60 | - [SwiftUI: ListItem gestures](https://stackoverflow.com/q/62640289/8697793) 61 | - [Adding shapes in List row of SwiftUI](https://stackoverflow.com/q/62717688/8697793) 62 | - [Using enumerated with ForEach in SwiftUI](https://stackoverflow.com/q/65512565/8697793) 63 | 64 | ### TextField 65 | - [How do I create a multiline TextField in SwiftUI?](https://stackoverflow.com/q/56471973/8697793) 66 | - [How to detect live changes on TextField in SwiftUI?](https://stackoverflow.com/q/57875550/8697793) 67 | - [SwiftUI: How to make TextField become first responder?](https://stackoverflow.com/q/56507839/8697793) 68 | - [SwiftUI TextField with formatter not working?](https://stackoverflow.com/q/56799456/8697793) 69 | - [SwiftUI Optional TextField](https://stackoverflow.com/q/57021722/8697793) 70 | 71 | ### Toolbar 72 | - [How to change color of ToolbarItem with navigationBarLeading placement in SwiftUI](https://stackoverflow.com/q/64467504/8697793) 73 | - [SwiftUI Xcode 12.3 can't change button size in toolbar](https://stackoverflow.com/q/65672831/8697793) 74 | 75 | ### Sheet 76 | - [Multiple sheet(isPresented:) doesn't work in SwiftUI](https://stackoverflow.com/q/58837007/8697793) 77 | - [SwiftUI: How to show an alert after a sheet is closed?](https://stackoverflow.com/q/63968344/8697793) 78 | 79 | ## Custom 80 | 81 | ### Components 82 | - [How can I implement PageView in SwiftUI?](https://stackoverflow.com/q/58388071/8697793) 83 | - [Activity indicator in SwiftUI](https://stackoverflow.com/q/56496638/8697793) 84 | - [How to display a search bar with SwiftUI](https://stackoverflow.com/q/56490963/8697793) 85 | - [Pull down to refresh data in SwiftUI](https://stackoverflow.com/q/56493660/8697793) 86 | 87 | ### Shapes 88 | - [Round Specific Corners SwiftUI](https://stackoverflow.com/q/56760335/8697793) 89 | - [SwiftUI: How to draw filled and stroked shape?](https://stackoverflow.com/q/56786163/8697793) 90 | 91 | ### Animations 92 | - Wave: [Fill circle with wave animation in SwiftUI](https://stackoverflow.com/q/63397067/8697793) 93 | - Heartbeat: [Delay a repeating animation in SwiftUI with between full autoreverse repeat cycles](https://stackoverflow.com/q/65509795/8697793) 94 | 95 | ## iOS 14 96 | - [SwiftUI iOS14 - NavigationView + List - Won't fill space](https://stackoverflow.com/q/63938471/8697793) 97 | - [SwiftUI app life cycle iOS14 where to put AppDelegate code?](https://stackoverflow.com/q/62538110/8697793) 98 | - [How to remove List Separator lines in SwiftUI 2.0 in iOS 14](https://stackoverflow.com/q/62597493/8697793) 99 | - [Add EnvironmentObject in SwiftUI 2.0](https://stackoverflow.com/q/63172717/8697793) 100 | - [iOS 14 SwiftUI Keyboard lifts view automatically](https://stackoverflow.com/q/63958912/8697793) 101 | - [SwiftUI Section header - use non uppercase?](https://stackoverflow.com/q/62753308/8697793) 102 | - [iOS14 introducing errors with @State bindings](https://stackoverflow.com/q/63928736/8697793) 103 | - [iOS 14 has Changed (or broken?) SwiftUI GeometryReader](https://stackoverflow.com/q/63942247/8697793) 104 | 105 | ## Previews 106 | - [How can I preview a device in landscape mode in SwiftUI?](https://stackoverflow.com/q/56625931/8697793) 107 | - [How to create a simple Binding for previews](https://stackoverflow.com/q/56485304/8697793) 108 | 109 | ## Errors 110 | - [Argument type 'xxx' does not conform to expected type '_FormatSpecifiable'](https://stackoverflow.com/q/64765624/8697793) 111 | - [Result values in '? :' expression have mismatching types 'some View' and '…'](https://stackoverflow.com/q/57343163/8697793) 112 | - [SwiftUI -> Thread 1: Fatal error: No observable object of type MyObject.Type found (EnvironmentObject in sheet)](https://stackoverflow.com/q/57582813/8697793) 113 | - [SwiftUI picker driven by an enum: value not updated](https://stackoverflow.com/q/64276333/8697793) 114 | - [Issue with Menu title and decreased opacity](https://stackoverflow.com/q/64770871/8697793) 115 | --------------------------------------------------------------------------------