Hello, Everyone, I'm developing ios app and have a question. one case that screen of my app has multiple tab including each scrollview, when I change tab scroll offset is initialized. Search.Tag is identifiable and id is different each. and FeedListModel is identifiable also. what's the problem, please give me a tip. This is my screenshot and codes. TabView(selection: $model.selected) { ForEach(model.listByTag, id: .key) { (tag, list) in SearchMoreTab( model: model, feedList: list, tag: tag, stickyHeaderHeight: $stickyHeaderHeight, defaultStickyHeaderHeight: defaultStickyHeaderHeight) .tag(tag) } struct SearchMoreTab: View { @ObservedObject var model: SearchMoreModel @ObservedObject var feedList: FeedListModel let tag: Search.Tag @Binding var stickyHeaderHeight: Float let defaultStickyHeaderHeight: Float // scrollableHeight = contentHeight - scrollViewHeight @State var lastScrollOffset: CGFloat = .zero @State var scrollOffset: CGFloat = .zero @State var contentHeight: CGFloat = .zero @State var scrollHeight:
Search results for
column
2,071 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
DEĞERLİ: tommygod size vereceğim kodu kullanabilirsiniz if response.status_code == 200: try: # Yanıtın içeriğini gziple çözme buffer = io.BytesIO(response.content) with gzip.GzipFile(fileobj=buffer) as f: content = f.read().decode('utf-8') # İçeriği DataFrame'e dönüştürme data = [line.split('t') for line in content.split('n') if line] df = pd.DataFrame(data[1:], columns=data[0]) return df except Exception as e: return pd.DataFrame(columns=['Error'], data=[f'İşlem başarısız oldu. Hata: {e}']) else: return pd.DataFrame(columns=['Error'], data=[f'Beklenmeyen durum kodu alındı {response.status_code}: {response.text}']) apple turkiye gelişdirici fırat averbek saygılarımla
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
I am trying to create an API that connects to the apple app store, I already converted my p8 into a JWT, it works for other appstore information but not sales. Here is what I have so far, this is a mix of a lot of techniques I tried. Can someone give me the full code they use if they do something similar? import requests import json import zlib from io import StringIO Constants API_ENDPOINT = 'https://api.appstoreconnect.apple.com/v1/salesReports' Load JWT token from file with open(My location for my JWT file, r) as file: token = file.read().strip() def get_sales_report(): headers = { 'Authorization': f'Bearer {token}', 'Content-Type': 'application/a-gzip' } params = { 'filter[frequency]': 'DAILY', # For testing purposes, using DAILY frequency 'filter[reportType]': 'SALES', 'filter[vendorNumber]': 'My vendor', 'filter[reportDate]': '2022-08-01' # Sample date for testing } response = requests.get(API_ENDPOINT, headers=headers, params=params) if response.status_code == 200: try: # Decompress the gzipped content
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
App Store Connect
App Store Connect API
Hi There, I have found a suspicious memory leak when I use Scroll View, List or anything else to list a View. This is Scroll view with Lazy Grid define: struct TravelingView1: View { var body: some View { ScrollView { LazyVGrid(columns: [GridItem(.flexible())]) { ForEach(0..<10) {_ in Rectangle() .frame(height: 20) } } } .frame(height: 200) } } And Button Style in the View as: struct ScreenView1: View { @ObservedObject var drawRadioButtonViewModel: DrawRadioButtonViewModel1 var body: some View { RadioButton(type: .radioButton, toggle: drawRadioButtonViewModel.isRadioCheck, identifier: Quick Split, radioWidth: 302, action: { [weak drawRadioButtonViewModel] in drawRadioButtonViewModel?.updateToggleCheck() }, label: {}) .offset(x: -CGFloat(100)/2, y: CGFloat(100)) Button(drawRadioButtonViewModel.isRadioCheck ? Checked : Unchecked, action: { [weak drawRadioButtonViewModel] in drawRadioButtonViewModel?.updateToggleCheck() }) .offset(x: -CGFloat(100)/2, y: CGFloat(100) + 30) } } With Button Style as: st
A quick glance at the clang documentation on precompiled headers (https://clang.llvm.org/docs/PCHInternals.html) suggests that a precompiled file for C++ should be automatically ignored for C compilations, but… You can specify build settings on a per-source file basis by going to the Build Phases tab of your project and expanding the Compile Sources phase. Select the source files you care about, then double-click (one of the selected rows) under the Compiler Flags column header. The, enter the compiler options you want for those files. Please note that Xcode build settings don't specify inclusion of a PCH directly. Instead, you specify a prefix file, which you can choose to precompile. You might to use a combination of prefix and precompiled settings to get the selectivity you want.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
In SwiftUI, the inspectorColumnWidth modifier is meant to control the width of an inspector column within a TableView. The ideal parameter of this modifier should set the initial width of the inspector column, and the system should remember the user-adjusted width for subsequent launches. However, in the beta version of SwiftUI you're using, it seems that the ideal width might not be respected on initial launch. Workarounds: While waiting for potential updates or bug fixes from Apple, here are a few workarounds you can consider to achieve your desired behavior: Set Minimum Width to Ideal Width: Since you want to guarantee the initial width while allowing users to reduce the width, you can set the minimum width to the same value as the ideal width. This way, users won't be able to resize the inspector column to a width smaller than the ideal width. This could be a suitable approach if you're okay with users having a fixed minimum width of 550. TableView() .inspector(isPresented: $sta
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
Should this not set the inspector width to 550 every time? TableView() .inspector(isPresented: $state.presented) { InspectorFormView(selection: model[state.selection]) .inspectorColumnWidth(min: 150, ideal: 550, max: 600) } This is almost verbatim from the WWDC video (10161). This ideal parameter will be the size of the column at at first launch, but if the user resizes the inspector, the system will persist that size across launches. Inspector uses the minimum width (150) in every case. How can the ideal width be guaranteed upon initial launch? I could set the minimum to 550, but I'd like the user to be able to reduce the size of the inspector as well ... Thanks much & keep inspecting!🧐 (Sonoma, beta 5 / Xcode beta 6)
For things like linters, formatting tools, and more: We need a good way to inject into the Xcode UI. Can I create a Warning or Error in the buffer/Issue Navigator? Is there an example of how to mark lines/columns with a message/error/warning? Get the current file path or URL object? How can I place a view onto the Xcode source canvas? Like a popover or interactive window.
Hi all, I'm working on a SwiftUI app (macOS only) that uses a Table to show contents of a directory. Each Table Cell seems to have a padding / gap which I would like to remove. If you look at the picture, I want the red rectangle to fill the whole cell. Does anybody know how to achieve this? Here's my current code for that column: TableColumn(name, value: .name) { item in HStack { if item.type == .directory { Image(systemName: folder) .frame(width: 14) } else { Text() .frame(width: 14) } Text(item.name) Spacer() } .contentShape(Rectangle()) .gesture(TapGesture(count: 2).onEnded { print(item) doubleClick(path: item.path) }).simultaneousGesture(TapGesture().onEnded { self.selectedFileItem = item.id }) .background(.red) .padding(.all, 0) } I want this to be applied to all columns in the table. I only showed one column as a reference. The table style is .tableStyle(.bordered(alternatesRowBackgrounds: true))
I am learning SQLite queries. I use prepare statement and one or more calls to a step statement. The prepare statement knows the pointer to the database, the UFT8 select statement and the name of the pointer which will point to the complied SQL select statement. The first step call runs the compiled select statement and if data is returned, the first row is made available via column calls. It seems logical to me that the select statement returns all matching rows but if the first step statement only has access to the first row of data, the balance of matching rows must be stored somewhere. Is this the case and if so where are the query results stored? Or is does this work in some other manner?
This is most definitely a bug, probably in TabularData itself. I boiled your example down to this: import Foundation import TabularData func test() { let csv = c CCCCCCCCCCCCCCCC var dataFrame = try! DataFrame( csvData: Data(csv.utf8), columns: [c], types: [c: .string] ) dataFrame.removeRow(at: 0) } test() and it crashes in roughly the same way. I’m running this as a command-line tool on macOS 13.4. I tested with both Xcode 14.3 and Xcode 15 beta and it crashes either way. I then put this code into tiny iOS test project and ran it on the iOS 17 beta simulator. It doesn’t crash there, suggesting that the bug has already been fixed. The really interesting thing is that removing a single character from CCCCCCCCCCCCCCCC makes the problem go away. Share and Enjoy Quinn “The Eskimo!” @ DTS @ Apple
Topic:
Programming Languages
SubTopic:
Swift
Tags:
I am working with data in Swift using the TabularData framework. I load data from a CSV file into a DataFrame, then copy the data into a second DataFrame, and finally remove a row from the second DataFrame. The problem arises when I try to remove a row from the second DataFrame, at which point I receive an EXC_BAD_ACCESS error. However, if I modify the timings column (the final column) before removing the row (even to an identical value), the code runs without errors. Interestingly, this issue only occurs when a row in the column of the CSV file contains more than 15 characters. This is the code I'm using: func loadCSV() { let documentsDirectory = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first! let url = documentsDirectory.appendingPathComponent(example.csv) var dataframe: DataFrame do { dataframe = try .init( contentsOfCSVFile: url, columns: [user, filename, syllable count, timings], types: [user: .string, filename: .string, syllable count: .i
Finally, in iPadOS 17 beta 5, I tested it and it worked! Thanks for resolving this bug that had been causing me frustration for the past 2 years. I now realize it was not my fault. I believe it's important to extend this fix to older versions of iPadOS as well since 3-column apps are completely unusable on those versions.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
Certainly this iCloud upload being stuck bug is frustrating. My method to resolve it is as follows: Launch Activity Monitor, click on the CPU tab at the top, look for the bird process in the Process Name column, select it, and stop it (kill it) by clicking on the Stop icon on the tool bar (the one with an X inside a circle). You will noticed that the process id number listed in the PID column changes after a couple of seconds, which indicates that the bird process has been restarted by the system (The bird process is responsible of the iCloud background file synchronization). Most of the times this solution will work. If stopping the bird process did not solve the iCloud synching, then perform a full shutdown/restart of your computer. This is the ultimate fix that has always worked for me thus far.
Topic:
App & System Services
SubTopic:
Core OS
Tags:
I have a dataset with 3 columns item_id, user_id, rating. I created a coreML MLRecommender model from this dataset. I want to use this model to get the top 10 predictions for a new user (not in the original dataset) but who has rated a subset of the items in the dataset. I don't see any API in the Apple docs to do this. Both the recommendations APIs only seem to accept an existing user-id and get recommendations for that user. The WWDC tutorial talks about a prediction API to achieve this. But I dont see this in the Apple API documentation and code below from WWDC tutorial cannot be used since it does not give details on how to create the HikingRouteRecommenderInput class it passes into the prediction API. let hikes : [String : Double] = [Granite Peak : 5, Wildflower Meadows : 4] let input = HikingRouteRecommenderInput(items: hikes, k: 5) // Get results as sequence of recommended items let results = try model.prediction(input: input) Any pointers on how to get predictions for new user would be greatl